本文へスキップ
Skillpedia
コネクタ(MCP)6.5k · #14016

kali-mcp-bridge

できること

このスキルは、AIエージェントがKali Linuxのテストツールを管理された方法で実行できるようにするブリッジの設定と使い方を説明します。テストを許可されたシステムだけで作業するセキュリティテスター向けです。

使う場面

  • ✓認可されたテストで、AIエージェントが構造化されたインターフェースを通してKaliのツールを実行する必要があるとき。
  • ✓テスターのマシンとKaliのサーバーの間に、安全なトンネルを設定する必要があるとき。
  • ✓Kaliの出力がAIに見せられる際、安全な扱いのルールが必要なとき。

スキルのリンク

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/decepticon/kali-mcp-bridge/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/decepticon/kali-mcp-bridge/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“認可されたテストのために、AIアシスタントを安全なトンネル経由でKaliのサーバーに接続する手伝いをしてもらえますか。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、Kaliのマシンでサーバーを設定し、暗号化されたトンネル経由で接続し、構造化された結果を返す標準のインターフェースを通してツールの呼び出しを渡します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Kali MCP Bridge — Operator Playbook

Drive Kali Linux tools (nmap, gobuster, sqlmap, metasploit, hydra, john, nikto, enum4linux, raw commands) through a FastMCP bridge during authorized engagements. This skill covers server deployment, SSH tunnel hardening, tool-call interface, and the critical prompt-injection hygiene rules required when Kali output re-enters the AI context.

AUTHORIZED USE ONLY. This skill is for use exclusively on systems you own or have explicit written authorization to test. Unauthorized use is illegal.


1. Architecture

┌──────────────┐    MCP stdio    ┌─────────────────┐    HTTP/REST    ┌──────────────────┐
│ Decepticon   │ ◄────────────► │ client.py (MCP) │ ◄────────────► │ server.py (Kali) │
│ (AI agent)   │                 │ on attacker host│                 │ Flask API :5000  │
└──────────────┘                 └─────────────────┘                 └──────────────────┘
  • server.py: Flask API on Kali, wraps each tool, exposes /api/tools/<tool> and /api/command.
  • client.py: FastMCP server that registers tools and relays calls to server.py via HTTP.
  • AI agent: Calls MCP tools; receives structured JSON output.

2. Deployment

2a. Kali server (on engagement jump box / VM)

# OS package (Kali 2024.1+)
sudo apt install mcp-kali-server
kali-server-mcp --ip 127.0.0.1 --port 5000   # localhost only — NEVER bind 0.0.0.0

# OR bleeding edge
git clone https://github.com/Wh0am123/MCP-Kali-Server.git
cd MCP-Kali-Server
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
./server.py --ip 127.0.0.1 --port 5000 --debug

Verify health:

curl -s http://127.0.0.1:5000/health | python3 -m json.tool
# Expected: {"status": "healthy", "all_essential_tools_available": true, "tools_status": {...}}

2b. SSH tunnel (when client and server are on different machines)

Always route through SSH — never expose server.py directly on a routable interface.

# On attacker/orchestrator host — forward local :5000 to Kali :5000
ssh -N -L 5000:localhost:5000 <user>@<KALI_IP>

# Keep tunnel alive for long engagements
ssh -N -o ServerAliveInterval=60 -o ServerAliveCountMax=3 \
    -L 5000:localhost:5000 <user>@<KALI_IP>

2c. MCP client registration (Claude Desktop / Decepticon)

claude_desktop_config.json or equivalent:

{
  "mcpServers": {
    "kali": {
      "command": "python3",
      "args": ["/abs/path/to/client.py", "--server", "http://127.0.0.1:5000"],
      "timeout": 300
    }
  }
}

3. Tool Call Reference

All tools return {"success": bool, "output": str, ...}. Check success before using output.

3.1 nmap_scan

target: str           # IP, hostname, CIDR
scan_type: str        # "-sV" (default), "-sS", "-sU", "-sC", "-A"
ports: str            # "22,80,443" or "1-1024" (empty = default)
additional_args: str  # "-T2 -oX /tmp/scan.xml"

3.2 gobuster_scan

url: str              # "http://target.local"
mode: str             # "dir" (default), "dns", "vhost", "fuzz"
wordlist: str         # "/usr/share/wordlists/dirb/common.txt"
additional_args: str  # "-x php,html -o /tmp/gobuster.txt"

3.3 dirb_scan

url: str
wordlist: str
additional_args: str  # "-r -z 100"    (-z = ms delay between requests)

3.4 nikto_scan

target: str           # URL or IP
additional_args: str  # "-Tuning 1234" (1=files, 2=misconfigs, 3=info, 4=inject)

3.5 sqlmap_scan

url: str              # "http://target/page?id=1"
data: str             # POST body: "user=foo&pass=bar" (empty for GET)
additional_args: str  # "--level=3 --risk=2 --batch --dbs"

3.6 metasploit_run

module: str           # "auxiliary/scanner/portscan/tcp"
options: dict         # {"RHOSTS": "10.0.0.1", "PORTS": "22,80"}

Common module patterns:

# SMB version detection
module: "auxiliary/scanner/smb/smb_version"
options: {"RHOSTS": "<target>", "THREADS": "4"}

# EternalBlue check (scan only — do NOT exploit without explicit RoE auth)
module: "auxiliary/scanner/smb/smb_ms17_010"
options: {"RHOSTS": "<target>"}

3.7 hydra_attack

target: str           # IP or hostname
service: str          # "ssh", "ftp", "http-post-form", "smb"
username: str         # single user (mutually exclusive with username_file)
username_file: str    # path to userlist
password: str         # single pass
password_file: str    # "/usr/share/wordlists/rockyou.txt"
additional_args: str  # "-t 4 -V" (
よくある質問

どのシステムでも使えますか?

いいえ。所有しているか、書面でテストの許可を得たシステムに限ります。

なぜトンネルの設定が重要なのですか?

Kaliのサーバーはlocalhostにのみバインドし、安全なトンネル経由でだけ到達できるようにすることを強調しています。

プロンプトインジェクションの衛生とは何ですか?

スキャン結果の中のテキストがAIを誘導できないように、ツールの出力を扱うためのルールです。

詳細

作者による元の説明

Deploy and drive Kali Linux tools via MCP-Kali-Server — structured tool-call interface, SSH tunnel setup, prompt-injection hygiene for AI-assisted engagements.

repo: BitterSecurity/Decepticon

人気

GitHubのスター
6.5k
ランキング
#14016
ライセンス
Apache-2.0
更新日
2026/11/1

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル