
如果你用 DeepSeek、元宝AI、Copilot 等 AI 代为编写轩辕镜像的 docker pull、修改 compose 镜像地址,或排查拉取失败等问题,请让 AI 先读规则再动手,只要在 AI 对话里直接发送下面这句话即可:
生成 docker pull、修改 compose 的 image,或排查拉取失败前,请先阅读并严格遵守 https://xuanyuan.cloud/agents.md 中的规则。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
MCP-based Autonomous Pentesting Framework
All custom images are published to a single Docker Hub repository, differentiated by tag.
| Repository | https://hub.docker.com/r/crhacky/blhackbox |
| Registry | https://hub.docker.com/r/crhacky/blhackbox |
| Source | https://github.com/valITino/blhackbox |
| License | MIT |
Four custom images are published to crhacky/blhackbox on Docker Hub:
| Service | Tag | Dockerfile | Base Image |
|---|---|---|---|
| Kali MCP | crhacky/blhackbox:kali-mcp | docker/kali-mcp.Dockerfile | kalilinux/kali-rolling |
| WireMCP | crhacky/blhackbox:wire-mcp | docker/wire-mcp.Dockerfile | debian:bookworm-slim |
| Screenshot MCP | crhacky/blhackbox:screenshot-mcp | docker/screenshot-mcp.Dockerfile | python:3.13-slim |
| Claude Code | crhacky/blhackbox:claude-code | docker/claude-code.Dockerfile | node:22-slim |
Official images (pulled directly, no custom build):
| Image | Purpose |
|---|---|
portainer/portainer-ce:latest | Docker management UI |
docker/mcp-gateway:latest | MCP Gateway (optional, --profile gateway) |
neo4j:5 | Knowledge graph (optional, --profile neo4j) |
bashdocker compose pull # pull ALL images (custom + official) in one command
In v2, **Claude (or *) IS the orchestrator natively via MCP.
Claude Code ──┬──▶ Kali MCP (SSE :9001) (container) │ 70+ tools: nmap, sqlmap, hydra, msfconsole, msfvenom… │ ├──▶ WireMCP (SSE :9003) │ 7 tools: packet capture, pcap analysis, credential extraction │ ├──▶ Screenshot MCP (SSE :9004) │ 4 tools: web screenshots, element capture, annotations │ │ After collecting raw outputs, Claude structures them directly: │ get_payload_schema() → parse/dedup/correlate → aggregate_results() │ ▼ output/ Host-mounted directory for reports, screenshots, sessions Portainer Docker UI (https://localhost:9443) Neo4j Cross-session memory (optional)
Claude Desktop ──▶ MCP Gateway (localhost:8080/mcp) ──┬──▶ Kali MCP (host app) ├──▶ WireMCP └──▶ Screenshot MCP
bashgit clone https://github.com/valITino/blhackbox.git cd blhackbox ./setup.sh # interactive wizard: prereqs, .env, pull, start, health
bashgit clone https://github.com/valITino/blhackbox.git && cd blhackbox cp .env.example .env # REQUIRED: set ANTHROPIC_API_KEY=sk-ant-... in .env mkdir -p output/reports output/screenshots output/sessions docker compose pull docker compose up -d
bashmake claude-code # builds + launches Claude Code in Docker
bashmake up-gateway # starts core + gateway on port 8080
bashdocker compose --profile neo4j up -d
bashmake status # container status table make health # MCP server health check
| Service | Image | Port | Profile | Role |
|---|---|---|---|---|
kali-mcp | crhacky/blhackbox:kali-mcp | 9001 | default | Kali Linux security tools + Metasploit (70+) |
wire-mcp | crhacky/blhackbox:wire-mcp | 9003 | default | Wireshark / tshark (7 tools) |
screenshot-mcp | crhacky/blhackbox:screenshot-mcp | 9004 | default | Screenshot MCP (headless Chromium, 4 tools) |
portainer | portainer/portainer-ce:latest | 9443 | default | Docker management UI (HTTPS) |
claude-code | crhacky/blhackbox:claude-code | — | claude-code | Claude Code CLI client (Docker) |
mcp-gateway | docker/mcp-gateway:latest | 8080 | gateway | Single MCP entry point (host clients) |
neo4j | neo4j:5 | 7474 / 7687 | neo4j | Cross-session knowledge graph |
The Claude Code container's .mcp.json connects directly to each server:
json{ "mcpServers": { "kali": { "type": "sse", "url": "http://kali-mcp:9001/sse" }, "wireshark": { "type": "sse", "url": "http://wire-mcp:9003/sse" }, "screenshot": { "type": "sse", "url": "http://screenshot-mcp:9004/sse" } } }
Add to claude_desktop_config.json:
json{ "mcpServers": { "blhackbox": { "transport": "streamable-http", "url": "http://localhost:8080/mcp" } } }
Requires --profile gateway (make up-gateway).
| Variable | Default | Description |
|---|---|---|
ANTHROPIC_API_KEY | — | Required for Claude Code in Docker |
MCP_GATEWAY_PORT | 8080 | MCP Gateway host port (optional) |
MSF_TIMEOUT | 300 | Metasploit command timeout in seconds |
NEO4J_URI | bolt://neo4j:7687 | Neo4j connection URI (optional) |
NEO4J_USER | neo4j | Neo4j username (optional) |
NEO4J_PASSWORD | — | Neo4j password, min 8 chars (optional) |
SCREENSHOT_MCP_PORT | 9004 | Screenshot MCP server port |
OPENAI_API_KEY | — | For OpenAI MCP clients (optional) |
crhacky/blhackbox:kali-mcp| Base | kalilinux/kali-rolling |
| Transport | SSE on port 9001 |
| Privileged | Yes (raw socket access) |
| Entrypoint | entrypoint.sh (starts PostgreSQL for MSF DB, then MCP server) |
Tools (70+): nmap, masscan, hping3, subfinder, amass, fierce, dnsenum, dnsrecon, theharvester, nikto, gobuster, dirb, dirsearch, ffuf, feroxbuster, whatweb, wafw00f, wpscan, arjun, dalfox, sqlmap, hydra, medusa, john, hashcat, mapexec, evil-winrm, enum4linux-ng, responder, netexec, air-ng, ***, binwalk, foremost, exiftool, steghide, curl, wget, netcat, socat, msfconsole, msfvenom, and more.
Metasploit: Integrated via CLI (msfconsole -qx) — no msfrpcd daemon needed. Includes PostgreSQL for Metasploit DB support.
MCP Tools: run_kali_tool, run_shell_command, list_available_tools, msf_search, msf_module_info, msf_run_module, msf_payload_generate, msf_console_execute, msf_status
crhacky/blhackbox:wire-mcp| Base | debian:bookworm-slim |
| Transport | SSE on port 9003 |
| Privileged | Yes (packet capture) |
| Entrypoint | WireMCP server (server.py) |
Tools (7): capture_packets, read_pcap, get_conversations, get_statistics, extract_credentials, follow_stream, list_interfaces
Inspired by: https://github.com/0xKoda/WireMCP, https://github.com/khuynh22/mcp-wireshark
crhacky/blhackbox:screenshot-mcp| Base | python:3.13-slim |
| Transport | SSE on port 9004 |
| Entrypoint | Screenshot MCP server (FastMCP + Playwright headless Chromium) |
Tools (4): take_screenshot (full-page web capture), take_element_screenshot (CSS selector targeting), annotate_screenshot (labels and highlight boxes), list_screenshots (evidence inventory)
crhacky/blhackbox:claude-code| Base | node:22-slim |
| Entrypoint | claude-code-entrypoint.sh (health checks + launch) |
| MCP config | Direct SSE to each server (no gateway dependency) |
| Requires | ANTHROPIC_API_KEY in .env |
Portainer CE provides a web dashboard for all blhackbox containers.
| URL | https://localhost:9443 |
| First run | Create an admin account within 5 minutes of startup |
| Missed the window? | docker compose restart portainer |
Note: Your browser will warn about the self-signed HTTPS certificate. This is expected — click "Advanced" and proceed.
| Volume | Service | Purpose |
|---|---|---|
neo4j_data | neo4j | Neo4j graph database (optional) |
neo4j_logs | neo4j | Neo4j logs (optional) |
portainer_data | portainer | Portainer configuration |
wordlists | — | Fuzzing wordlists |
| Host Path | Container Path | Contents |
|---|---|---|
./output/reports/ | /root/reports/ | Generated pentest reports (.md, .pdf) |
./output/screenshots/ | /tmp/screenshots/ | PoC evidence screenshots (.png) |
./output/sessions/ | /root/results/ | Aggregated session JSON files |
Four custom images are built and pushed to Docker Hub via GitHub Actions:
PR opened ─────▶ CI (lint + test + pip-audit) │ PR merged ─────▶ CI ─────▶ Build & Push (4 images) ─────▶ Docker Hub (on CI success) Tag v* ──────────────────▶ Build & Push (4 images) ─────▶ Docker Hub Manual ──────────────────▶ Build & Push (4 images) ─────▶ Docker Hub
bashmake setup # Interactive setup wizard (first-time setup) docker compose pull # Pull all pre-built images docker compose up -d # Start core stack (4 containers) make up-gateway # Start with MCP Gateway (5 containers) make claude-code # Launch Claude Code in Docker make health # Health check all MCP servers make status # Container status table make logs-kali # Kali MCP logs make logs-wireshark # WireMCP logs make logs-screenshot # Screenshot MCP logs make gateway-logs # MCP Gateway logs make down # Stop all services make clean # Stop + remove volumes
/var/run/docker.sock. This grants effective root on the host. Never expose ports 8080 or 9443 to the public internet..env. Never use defaults in production.This tool is for authorized security testing only. Unauthorized access to computer systems is illegal.
https://github.com/valITino/blhackbox · https://hub.docker.com/r/crhacky/blhackbox
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
发给 Cursor、ChatGPT、豆包等 AI 的说明文档
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务