用途与定位 Pentest AI Killer(简称 Pentakill)是一个综合性渗透测试自动化服务器,将 69 款以上安全工具与 AI 助手通过 Model Context Protocol(MCP)集成,并对外提供统一的 REST API 和可选 CLI。它用于执行侦察、漏洞评估、网络发现、密码破解与云安全测试等任务。该技能属于 ara.so 的 Security Skills 集合。
主要能力
- 集成大量安全工具,按类别组织并可单独启用或禁用,类别包括:Web 侦察(httpx、nuclei、subfinder、gospider、katana、hakrawler、gau、waybackurls、paramspider、arjun)、漏洞评估(sqlmap、nikto、wpscan、dalfox、wapiti、gobuster、ffuf、xsstrike、commix、noSQLMap、wafw00f、zap)、网络发现(nmap、rustscan)、综合渗透(autorecon、legion)等。
- 提供 REST API,所有端点需 X-API-KEY 请求头。可按工具执行,也可按类别扫描,包括 /web-reconnaissance、/network-discovery、/vulnerability-assessment、/password-cracking、/comprehensive-pentest、/cloud-security-assessment、/kubernetes-security-assessment、/container-security-assessment、/iac-security-assessment、/multi-cloud-assessment。
- 提供可选 pentakill CLI(Go 构建),可在不集成 MCP 的情况下调用 REST API,支持 health、tools、categories、run 等命令与 JSON 参数。
- 支持 MCP 集成,可接入 Claude Desktop、Cursor、LibreChat 等 AI 助手,通过自然语言下达渗透测试指令。
- 提供基于模板的工作流(如 01_full_pentest、02_reconnaissance、05_fast_web_pentest),以及报告读取与管理能力。
- 支持自定义命令与新增自定义工具,可在 config.py 中登记工具,并支持自定义工具命令。
使用方式
- Docker Compose(推荐):git clone https://github.com/vietjovi/pentest-ai-killer.git,进入目录后 docker-compose up -d。默认使用 Dockerfile.base(约 500MB-1GB,含基础工具);如需完整工具集(约 2GB-4GB),在 docker-compose.yml 中将 dockerfile 从 Dockerfile.base 改为 Dockerfile。
- 手动安装(Ubuntu 20.04+):git clone,sudo bash install_pentest_tools.sh,python3 -m venv venv && source venv/bin/activate,pip install -r requirements.txt。
- 可选构建 CLI:go build -o bin/pentakill ./cmd/pentakill(含交叉编译示例)。
- 配置:首次运行前编辑 config.py,修改默认 API 密钥 X_API_KEY,并在 PENTEST_TOOLS 中启用/禁用工具。
- 启动服务:source venv/bin/activate && python3 pentest_ai_killer_server.py,服务运行在 http://localhost:8080。
- REST 调用示例:curl -X POST http://localhost:8080/tools/nmap -H "Content-Type: application/json" -H "X-API-KEY: ${PENTAKILL_API_KEY}" -d '{"targets": "scanme.nmap.org"}'。
- CLI 示例:./bin/pentakill run tool nmap -target scanme.nmap.org;./bin/pentakill run category web-reconnaissance -target example.com;./bin/pentakill run tool nuclei -target testphp.vulnweb.com -custom-command "nuclei -u testphp.vulnweb.com -t cves/ -severity critical"。类别名支持下划线或连字符,如 comprehensive_network_pentest 映射到 /comprehensive-pentest。
- MCP 集成:pip install -r requirements_mcp.txt,然后在 Claude Desktop 的 claude_desktop_config.json 或 Cursor 的 ~/.cursor/mcp.json 中配置 mcpServers,命令指向 python3 与 pentest_ai_killer_mcp.py,环境变量设置 PENTEST_API_URL,重启 AI 助手即可。可通过自然语言指令调用,也可在 MCP 应用中用 Python 类 PentestAIKillerMCP 调用 mcp_execute_tool、mcp_vulnerability_assessment、mcp_execute_template、mcp_get_latest_reports、mcp_read_report 等方法。
适用场景 适用于经过授权的安全测试,包括 Web 侦察、漏洞评估、网络发现、密码破解、综合渗透、云安全(AWS)、Kubernetes、容器与 IaC 安全评估以及多云评估等。
限制与安全注意事项 该工具仅限授权安全测试使用,未授权使用属违法行为。部署前应修改 config.py 中的默认 API 密钥;生产环境应使用 HTTPS(通过 nginx/traefik 反向代理);应通过防火墙规则或 VPN 限制网络访问;应安全存储 API 密钥(环境变量或密钥管理);启用危险功能前应审查工具配置;应监控执行日志;应谨慎限定目标范围以避免意外扫描。资料中未提供明确的收费或价格信息。