Skip to main content
Glama

Keel

スキャナーのノイズをハンター級の非破壊的証明に変えるMCPコントロールプレーン

Python License MCP PyPI Registry Version

13のMCPツール。セマンティックな重複排除。ホストごとのレート制限。ターゲットを傷つけずにハンターができることを示す安全な証明。

Keel の理由 · インストール · クライアント · 証明 · ツール


エージェントに150個のツールを放り込むのは簡単です。難しいのは、ツール間の重複排除、悪用可能かノイズか、そしてターゲットを過剰に叩かないことです。Keelはこれら3つのためのコントロールプレーンです。

AIクライアントはhttpxやnuclei、シェルではなくKeelと通信します。Keelは一度に1つのウェーブを設計し、スコープとレート制限を強制し、スキャナーのヒットをセマンティックカードに統合し、テスター所有のデータに対するGET専用プレイブックを実行します。プレイブックがprovenを返すと、ハンターが追跡できるcurlリプレイが得られます — それでも書き込み、シェル、ペイロードのスパムはありません。

テストを許可されたプログラムでのみ使用してください。

Keel の理由

難しい問題

スキャナーダンプがすること

Keelがすること

ツール間の重複排除

1行に1つのNucleiテンプレートID。同じIDORが5回出現する

脆弱性クラス + 正規化されたルート + メソッド + パラメータからセマンティックキーを生成。UUID/id/hexトークンは折りたたまれる。互換性のある観測結果はマージされる。

悪用可能かノイズか

高重大度 = 「出荷だ」

カードはobserved → hypothesis → corroborated → proven / refutedの順に移動します。情報提供とハードニングは非表示のままです。型付きの悪用可能性は、欠落している証拠とネガティブコントロールを明示します。

ターゲットを過剰に叩かない

すべてのテンプレートを一度に発射し、429でリトライする

ホストごとに1つのアクティブウェーブ、トークンバケット、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]
  1. テストを許可されたホスト名でbegin_engagementを実行します。

  2. draft_wavesは到達可能性とテンプレートのマイクロウェーブを提案します。まだトラフィックはありません。

  3. execute_waveは即座にジョブを返します。wave_statusをポーリングします。cancel_waveはスキャナーを停止します。

  4. query_cardsはハンターに関連するカードを返します。assess_exploitabilityは何がそれを証明するかを示します。

  5. 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-pentest

setupは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-pentest

OpenCode: "command": ["keel-pentest"]。

Python 3.10以上。pip install keelを実行しないでください — それは別のプロジェクトです。OSの注意点とpip/venv: INSTALL.md。クライアントの形状: clients/README.md。

後で任意: スコープ、テンプレートID、証明ターゲットを固定するチームマニフェスト用のKEEL_APPROVAL_FILE。デフォルトモードは自己証明 — begin_engagementが承認です。レート制限、ホストごとの1ウェーブ、署名済みテンプレート、サニタイズされた証拠は引き続き適用されます。

それでも影響を証明する安全な証明

スキャナーの出力は仮説です。Keelは使い捨てのテスターアカウントと一意のカナリアでそれを証明(または反証)します。すべてのプレイブックはGET専用で、予算が設定され、curlリプレイを返します。リプレイはレポートの成果物です: これが修正されない場合、通常のアカウントを持つハンターがこれを実行できます。

プレイブック

証明するもの

損害なしの方法

cross_account_read

IDOR / BOLA

テスターAは自分のカナリアを読み、テスターBは同じA所有のURLをGETします。同一のカナリア + 2xx = proven。401/403/404またはカナリアなしの2xx = protected(反証)。

reflected_marker

反射型XSS / HTMLインジェクション

一意のマーカーと無害な<keel>プローブを注入します。エスケープされていない反射 = proven。HTMLエンコードされた反射 = protected。コントロールGETにはプローブがすでに含まれていてはなりません。

open_redirect_canary

オープンリダイレクト

リダイレクトパラメータをhttps://keel-proof.invalid/<marker>に向けます。Locationホストがそのカナリアである3xx = proven。

unauth_access_probe

認可の欠如

テスターAのベースラインはカナリアを示す必要があります。資格情報なしの同じURLは示してはいけません。2xx + カナリア未認証 = proven。

own_session_marker

到達可能性のみ

Aは自分のカナリアを読みます。これはcorroboratedであり、脆弱性の証明ではありません。

execute_proofはステータスコード、カナリアのブール値、切り詰めフラグ、ハッシュ、ハンターの影響テキスト、再現スクリプトを保存します。応答本文やシークレットは永続化しません。

cross_account_read / unauth_access_probeの前に、テスター所有のオブジェクトに非シークレットのカナリアを植えます。反射型XSSとオープンリダイレクトはマーカーを自分で注入します。

MCPツール

ツール

役割

begin_engagement

スコープとトラフィック上限を登録

draft_waves

到達可能性 + テンプレートのマイクロウェーブを提案。トラフィックなし

execute_wave

1つのバックグラウンドジョブをキューに入れる

wave_status

ステージ、進捗、結果。job_idを省略すると一覧表示

cancel_wave

キュー済みまたは実行中のスキャナーを停止

query_cards

優先順位付けされたセマンティックカード

second_look

元のNucleiテンプレートのみを再実行

assess_exploitability

候補となる影響、欠落している証拠、ネガティブコントロール、プレイブック

state_impact

ハンターの仮説を記録

draft_proof

許可リストに登録された証明プラン。トラフィックなし

execute_proof

GET専用プレイブックを実行

engagement_health

クールダウン、予算、保留中のウェーブ

engagement_audit

追記のみのアプリケーションイベント

begin_engagementにはengagement_idとscope_hosts(プレーンなホスト名、例: target.example)が必要です。デフォルト: 3 req/s、一度に1ホスト、ウェーブごとに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.

トラフィック制御

  • ドラフト、受理、取り込み、証明における正確なスコープと除外

  • ホストごとに1ウェーブ。同じホストのジョブは待機

  • 共有のグローバルおよびホストごとのトークンバケット

  • 永続的なリクエスト予約。リトライは新しい予約を消費

  • Nuclei: 署名済みHTTPテンプレート、OASTなし、リダイレクトなし、リトライなし、dos/fuzz/bruteforce/intrusiveを除外

  • 分離された空のスキャナー設定。プロキシとProjectDiscovery-cloudの環境変数は削除

  • 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にマッピングします。

keel MCP server

ライセンス

MIT. Copyright (c) 2026 Lutfi Z.P.

PyPI: keel-pentest. MCP Registry: io.github.lutfizp/keel. ソース: github.com/lutfizp/keel.

keel MCP server

Available Tools

9 tools
begin_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

    C2.9/5.0

    Scored across 9 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      An MCP server for authorized bug bounty work that enforces an evidence-driven workflow with session management, preflight checks, surface discovery, and verified scanning.
      12
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables authorized bug bounty automation via a scope-enforced MCP bridge, supporting web, secrets, mobile, and LLM red-team scanning, with reporting and advisory.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables 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 npm
      GPL 3.0