keel
Keel
将扫描器噪音转化为猎人级、非破坏性证据的 MCP 控制平面
十三个 MCP 工具。语义去重。按主机限速。展示猎人能力的安全证据——不损害目标。
为什么选择 Keel · 安装 · 客户端 · 证据 · 工具
向代理倾倒 150 个工具很容易。真正的难题是跨工具去重、可利用性与噪音的区分,以及不猛击目标。Keel 就是解决这三个问题的控制平面。
AI 客户端与 Keel 对话,而不是与 httpx、nuclei 或 shell 对话。Keel 一次起草一波请求,强制执行范围和速率限制,将扫描器命中合并为语义卡片,并在测试者拥有的数据上运行仅 GET 的剧本。当剧本返回 proven 时,你会得到一个猎人可跟随的 curl 重放——仍然没有写入、shell 或载荷轰炸。
仅在你获得授权测试的项目上使用。
为什么选择 Keel
难题 | 扫描器转储的做法 | Keel 的做法 |
跨工具去重 | 每行一个 Nuclei 模板 ID;同一个 IDOR 出现五次 | 基于漏洞类别 + 规范化路由 + 方法 + 参数的语义键。UUID/id/hex 令牌折叠。兼容的观察结果合并。 |
可利用性与噪音 | 高严重性 = "直接上报" | 卡片经历 |
不猛击目标 | 一次性触发所有模板,429 时重试 | 每主机一个活跃波次,令牌桶,Nuclei 并发为 1,无 OAST,无重定向,无未签名模板,排除 dos/fuzz/bruteforce/intrusive 标签。HTTP 429 变为冷却期。 |
一个包装了庞大工具箱的封装层没有这一层。Keel 有——在调度器、适配器和证据代理中。
Related MCP server: apex
架构
flowchart TD
A[AI coding client] -->|stdio MCP| B[Keel]
B --> C[Scope and rate gate]
C --> W[Background job and wave scheduler]
W --> H[httpx: one target]
W --> N[nuclei: HTTP templates, bounded]
C --> P[Proof broker: GET only]
P --> T[Tester-owned resource]
H --> S[Semantic card store]
N --> S
P --> S
S --> Q[Triage and evidence states]使用你获授权测试的主机名调用
begin_engagement。draft_waves提议可达性加模板微波次。此时不产生流量。execute_wave立即返回一个任务。轮询wave_status。cancel_wave终止扫描器。query_cards返回与猎人相关的卡片。assess_exploitability说明什么可以证明它。draft_proof然后execute_proof针对测试者数据运行仅 GET 的剧本。proven表示不变量成立。protected表示对照生效。
安装
macOS(Homebrew)。pipx 是独立工具——先安装它。Apple 的 /usr/bin/python3 通常是 3.9,无法安装 Keel。
brew install pipx python@3.12
pipx ensurepath
# open a new terminal, then:
pipx install keel-pentest
keel-pentest setup
keel-pentest doctor如果机器上已有 python3.12 且你不想用 Homebrew pipx:
python3.12 -m pip install --user pipx
python3.12 -m pipx ensurepath
python3.12 -m pipx install keel-pentestsetup 将 ProjectDiscovery 的 httpx 和 nuclei 下载到 ~/.keel/bin。即使 GUI 客户端的 PATH 很薄,Keel 也能在那里找到它们。首次扫描无需额外的 KEEL_HTTPX_BIN。
然后将你的 MCP 客户端指向 keel-pentest 可执行文件:
claude mcp add --scope user --transport stdio keel -- keel-pentest
codex mcp add keel -- keel-pentest
hermes mcp add keel --command keel-pentestOpenCode:"command": ["keel-pentest"]。
Python 3.10+。不要 pip install keel——那是另一个项目。操作系统说明和 pip/venv:INSTALL.md。客户端形态:clients/README.md。
可选后续:KEEL_APPROVAL_FILE 用于团队清单,固定范围、模板 ID 和证据目标。默认模式为自我声明——begin_engagement 即授权。速率限制、每主机一波、签名模板和脱敏证据仍然生效。
不会造成损害却仍能证明影响的安全证据
扫描器输出是一个假设。Keel 使用一次性测试者账户和唯一金丝雀来证明(或反驳)它。每个剧本都是仅 GET、有预算的,并返回一个 curl 重放。重放就是报告工件:如果此问题未修复,拥有普通账户的猎人就能做到这一点。
剧本 | 证明什么 | 如何做到,且不造成损害 |
| IDOR / BOLA | 测试者 A 读取其金丝雀;测试者 B 对同一 A 拥有的 URL 发起 GET。金丝雀相同且 2xx = |
| 反射型 XSS / HTML 注入 | 注入唯一标记加一个无害的 |
| 开放重定向 | 将重定向参数指向 |
| 缺少授权 | 测试者 A 基线必须显示金丝雀;同一 URL 在无凭据时必须不显示。2xx + 未认证金丝雀 = |
| 仅可达性 | A 读取自己的金丝雀。这是 |
execute_proof 存储状态码、金丝雀布尔值、截断标志、哈希、猎人影响文本和复现脚本。它不持久化响应体或机密。
在 cross_account_read / unauth_access_probe 之前,在测试者拥有的对象中植入一个非机密金丝雀。反射型 XSS 和开放重定向自行注入标记。
MCP 工具
工具 | 作用 |
| 注册范围和流量上限 |
| 提议可达性 + 模板微波次;不产生流量 |
| 排队一个后台任务 |
| 阶段、进度、结果;省略 |
| 停止排队中或运行中的扫描器 |
| 按优先级排序的语义卡片 |
| 仅重新运行原始 Nuclei 模板 |
| 候选影响、缺失证据、阴性对照、剧本 |
| 记录猎人假设 |
| 白名单证据计划;不产生流量 |
| 运行仅 GET 的剧本 |
| 冷却期、预算、待处理波次 |
| 仅追加的应用程序事件 |
begin_engagement 需要 engagement_id 和 scope_hosts(纯主机名,例如 target.example)。默认值:3 req/s,一次一个主机,每波 120 秒 / 120 个请求。allow_safe_proof=true 启用证据。仅传递测试者凭据名称;将机密放入 KEEL_CREDENTIALS_FILE。
示例提示词
Use only Keel MCP tools. Do not shell out to httpx, nuclei, curl, or exploit tools.
1. begin_engagement for bb-2026-01 with scope_hosts ["target.example"], 3 req/s.
Set allow_safe_proof true if I will run proofs.
2. draft_waves for https://target.example.
3. execute_wave for each wave. Poll wave_status until completed, retryable_failed,
terminal_failed, or cancelled.
4. query_cards (include_noise false), then assess_exploitability on candidates.
5. For a card with a safe playbook, draft_proof then execute_proof using tester
credential names and the canary I planted. Treat protected as refuted.
6. Summarize duplicates, evidence state, hunter_impact, and the repro_script.
Claim exploitable only when Keel reports proven.流量控制
在起草、准入、摄取和证据阶段严格执行范围和排除项
每主机一波;同主机任务等待
共享的全局和每主机令牌桶
持久化请求预留;重试消耗新的预留
Nuclei:签名 HTTP 模板,无 OAST,无重定向,无重试,排除 dos/fuzz/bruteforce/intrusive
隔离的空扫描器配置;剥离代理和 ProjectDiscovery 云环境变量
HTTP 429 停止波次并遵循 Retry-After
有界响应读取;证据不含原始响应体
故障排查
keel-pentest doctor
keel-pentest setup # if doctor reports missing httpx/nuclei客户端重启后调用 begin_engagement 可恢复 SQLite 参与记录。如果更改了范围,请使用新的 engagement_id。
证据需要 allow_safe_proof=true,对于会话剧本,还需要 KEEL_CREDENTIALS_FILE,将 tester-a 之类的名称映射到 Authorization 或 Cookie。
许可证
MIT。版权所有 (c) 2026 Lutfi Z.P.
PyPI:keel-pentest。MCP Registry:io.github.lutfizp/keel。源码:github.com/lutfizp/keel。
Available Tools
9 toolsbegin_engagementC
Register scope, rate limits, and proof flags for one engagement.
Inputs: scope_hosts (required), engagement_id (required), exclude_hosts, allow_safe_proof, +4 more.
draft_proofD
Describe an allowlisted proof without sending traffic.
Inputs: card_id (required), playbook_id (required), engagement_id (required).
draft_wavesA
Propose probe_alive then template_scan waves without executing them.
Inputs: seed_url (required), engagement_id (required).
engagement_healthC
Report registered engagements, cooldowns, and pending waves.
Inputs: engagement_id.
execute_proofC
Run an allowlisted proof. Requires allow_safe_proof and operator_confirmed.
Inputs: card_id (required), session_a (required), playbook_id (required), engagement_id (required), +1 more.
execute_waveC
Run one admitted wave behind the per-host token bucket.
Inputs: wave_id (required), engagement_id (required).
query_cardsB
Return hunter-relevant cards. Informational and hardening are hidden by default.
Inputs: engagement_id (required), include_noise.
second_lookC
Re-run a bounded template scan on a single card URL.
Inputs: card_id (required), engagement_id (required).
state_impactC
Record hunter impact_class and preconditions on a card.
Inputs: impact (required), card_id (required), hunter_why (required), engagement_id (required), +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct resource and action: engagements, waves, proofs, and cards are cleanly separated. The two execute tools are disambiguated by proof vs wave, and the two draft tools by waves vs proof, so an agent should not confuse them.
Most tools follow a clear verb_noun snake_case pattern like execute_proof, begin_engagement, draft_waves, and query_cards. engagement_health and second_look break the pattern by using noun phrases, but the overall convention remains readable and predictable.
Nine tools is a well-scoped size for this domain, covering engagement setup, wave and proof execution, and card interaction without unnecessary redundancy or bloat.
The core loop is represented, but there is no explicit admission step for drafted waves before execute_wave, and engagements lack update/close lifecycle operations. These are notable workflow gaps that could stall end-to-end operations.
Maintenance
Related MCP Connectors
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
Find, document and execute authenticated API calls across 1000+ apps via one MCP server
Find, vet, and run MCP tools through a secure audited gateway with prompt-injection risk scoring
AI pentesting: run scans, triage vulnerabilities, review PRs, manage schedules and assets.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server for authorized bug bounty work that enforces an evidence-driven workflow with session management, preflight checks, surface discovery, and verified scanning.12MIT
- AlicenseNot gradedqualityBmaintenanceEnables authorized bug bounty automation via a scope-enforced MCP bridge, supporting web, secrets, mobile, and LLM red-team scanning, with reporting and advisory.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to carry out a compliant, non-destructive, auditable authorized security-testing workflow — project intake, scope reading, asset discovery, non-destructive verification, evidence collection, and report-draft generation with manual submission tracking — where every outbound action is gated by scope checks, one-time human confirmation tokens, rate limits, and append-only audit logging.MIT
- AlicenseNot gradedqualityAmaintenanceEnables professional penetration testers to run reconnaissance, network and web scanning, content fuzzing, vulnerability templates, brute-force checks, SQLi extraction, traffic capture, and engagement report generation through MCP clients.157 npmGPL 3.0