blackarch-AI MCP Server
blackarch-AI
범위 제한 MCP 서버 및 BlackArch Linux에서 레드팀 및 블루팀 보안 워크플로를 위한 Claude Code Skills 세트입니다.
이 프로젝트의 목적
MCP 서버 (
src/blackarch_ai_mcp/) — 로컬 보안 도구(nmap, gobuster, nikto, hydra, 로컬 블루팀 감사)를 MCP 도구로 래핑하여 모든 MCP 호환 클라이언트가 호출할 수 있도록 합니다.Claude Code Skills (
.claude/skills/) — 해당 도구를 사용하여 레드팀 및 블루팀 워크플로를 안내하는 마크다운 플레이북입니다.
Related MCP server: Pentest MCP
안전 모델: 범위 제한
명시적으로 승인되지 않은 대상에 대해 레드팀 도구가 실행되지 않습니다. 네트워크 대상을 다루는 모든 도구(nmap_scan, gobuster_dir, nikto_scan, hydra_bruteforce)는 먼저 scope.yaml을 확인하고, 대상이 유효하고 만료되지 않은 승인과 함께 나열되지 않은 경우 명확한 메시지와 함께 거부합니다.
cp scope.example.yaml scope.yaml
# edit scope.yaml: add host/cidr, authorized_by, authorization_ref, expiresscope.yaml은 gitignore 처리되어 로컬에만 존재하며 절대 게시되지 않습니다. 전체 계약은 docs/SCOPE.md를 참조하세요.
블루팀 도구(audit_listening_ports, audit_suid_world_writable, review_auth_log, lint_ssh_config, audit_pacman_packages, crack_hash_offline)는 로컬 전용이며 제한되지 않습니다. 타사에 절대 접촉하지 않습니다.
이 프로젝트는 어떤 것도 테스트할 권한을 부여하지 않습니다. 레드팀 도구를 대상에 지정하기 전에 명시적인 서면 허가를 받을 책임은 사용자에게 있습니다. 소유하지 않았거나 테스트에 대한 서면 허가를 받지 않은 시스템에 대한 무단 스캔/악용은 대부분의 관할권에서 불법입니다.
설치
sudo pacman -S --needed python-uv
uv syncMCP 서버 단독 실행
uv run python -m blackarch_ai_mcp.serverClaude Code에 등록
claude mcp add blackarch-ai -- uv --directory /path/to/blackarch-ai run python -m blackarch_ai_mcp.server그런 다음 Claude Code 세션에서 Skill을 호출하거나(예: "run a host audit" 또는 슬래시 호출이 활성화된 경우 /blue-team-host-audit) mcp__blackarch-ai__* 도구를 직접 호출합니다.
레이아웃
구성 요소가 어떻게 결합되는지는 docs/ARCHITECTURE.md를, 전체 도구 참조는 docs/TOOLS.md를 참조하세요.
테스트
uv run pytest라이선스
MIT — LICENSE 참조.
Available Tools
12 toolsaudit_listening_portsA
List listening ports (ss -tulnp) cross-referenced with firewall rules on this local host.
Inputs: no named parameters. Returns: result
audit_pacman_packagesA
Report orphan packages, available updates, and package integrity via pacman (read-only) on this local host.
Inputs: no named parameters. Returns: result
audit_suid_world_writableA
Find SUID and world-writable files under paths (default /usr /etc /opt /home) on this local host.
Inputs: paths. Returns: result
check_scopeA
Check whether target is authorized in scope.yaml before running any red-team tool.
Inputs: target (required). Returns: result
crack_hash_offlineB
Run an offline password-strength audit with hashcat/john against a hash file placed in data/hashes/.
Inputs: wordlist (required), hash_file (required), hash_mode (required), tool. Returns: result
gobuster_dirC
Directory-brute-force url with gobuster. Refuses if the host is not in scope.yaml.
Inputs: url (required), wordlist, extensions. Returns: result
hydra_bruteforceA
Credential brute-force target/service with hydra using local userlist/passlist files.
Requires confirm=True as an explicit double opt-in, and target must be in scope.yaml.
Inputs: target (required), service (required), passlist (required), userlist (required), +1 more. Returns: result
lint_ssh_configA
Check sshd_config at path against a baseline hardening ruleset on this local host.
Inputs: path. Returns: result
list_installed_toolsA
Inventory installed BlackArch security-tool packages, grouped by category (recon, exploitation, cracking, etc.).
Inputs: no named parameters. Returns: result
nikto_scanB
Run a nikto web vulnerability scan against target:port. Refuses if target not in scope.yaml.
Inputs: target (required), port. Returns: result
nmap_scanC
Run an nmap scan against target (profile: quick|full_tcp|service|udp). Refuses if target not in scope.yaml.
Inputs: target (required), profile. Returns: result
review_auth_logC
Summarize sshd auth log entries on this local host since since.
Inputs: since. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools have clearly distinct purposes: scanning (nmap, nikto, gobuster), credential attacks (hydra), local auditing (audit_*, lint_*, review_*), and offline cracking (crack_hash_offline). However, check_scope is a utility tool that could be considered overlapping with the scope checks built into other tools, but it serves as a proactive check rather than a reactive refusal.
The naming pattern mixes styles: verbs like 'check_', 'nmap_scan', 'gobuster_dir', and 'hydra_bruteforce' use a tool_name format, while others like 'audit_listening_ports' and 'review_auth_log' use verb_noun. The category for local auditing tools is consistent, but the overall set lacks a single unified pattern.
12 tools is a reasonable count for a security auditing server covering reconnaissance, brute-forcing, local system auditing, and offline cracking. It's slightly high but each tool has a specific role, and no tool feels redundant. The scope is well-defined for a BlackArch-oriented toolset.
The toolset covers external scanning, web vulnerability scanning, brute-forcing, local host auditing, and password cracking. However, there are gaps: no network sniffing, exploitation, or privilege escalation tools, and no reporting or logging of results. For a comprehensive security assessment suite, these missing capabilities could hinder an agent's workflow.
Related MCP Connectors
MEOK MCP Hardening MCP — automated security red-team for any MCP server. Maps OWASP LLM Top 10
Offline methodology engine for authorized penetration testing, CTF, and security research.
Find, vet, and run MCP tools through a secure audited gateway with prompt-injection risk scoring
Secure Linux sandboxes for AI agents, as MCP tools.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceExposes 21 tools over stdio that let any MCP-capable AI agent run real Kali-container security tools (nmap, nuclei, sqlmap, Metasploit), search a local 59,000+ CVE vulnerability database, and browse a 5,266-entry GitHub security tool index. Built-in guardrails refuse government, education, and military domains, and only whitelisted in-container executables can be invoked.3-
- AlicenseNot gradedqualityAmaintenanceEnables professional penetration testers to run reconnaissance, exploitation, brute-force, and credential-cracking tooling (nmap, gobuster, nikto, John the Ripper, hashcat, subfinder, httpx, ffuf, nuclei, hydra, sqlmap, tcpdump) through MCP clients over stdio or HTTP. It also captures engagement records and generates client reports with scope-of-work handling and bearer/OIDC authentication.157 npmGPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables professional penetration testers to run reconnaissance, scanning, brute-force, exploitation, traffic capture, and reporting workflows through a unified MCP interface with STDIO, Streamable HTTP, and deprecated SSE transports plus bearer/OIDC authentication. Supports tools including nmap, gobuster, nikto, JtR, hashcat, subfinder, httpx, ffuf, nuclei, hydra, sqlmap, and wordlist generation.157 npmGPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables professional penetration testers to drive recon and exploitation tooling — nmap, gobuster, nikto, John the Ripper, hashcat, subfinder, httpx, ffuf, nuclei, hydra, sqlmap, and tcpdump — plus wordlist building and traffic capture from an MCP client. It also stores structured engagement records and generates client reports with scope-of-work handling, over stdio or authenticated Streamable HTTP (SSE deprecated).157 npmGPL 3.0