kali-mcp-bridge
Skill này làm gì
Skill này giải thích cách thiết lập và dùng một cầu nối cho phép agent AI chạy các công cụ kiểm thử Kali Linux một cách có kiểm soát. Skill dành cho người kiểm thử bảo mật chỉ làm việc trên hệ thống họ được phép kiểm thử.
Khi nào nên dùng
- ✓Khi một đợt kiểm thử được ủy quyền cần agent AI chạy công cụ Kali qua một giao diện có cấu trúc.
- ✓Khi bạn cần thiết lập đường hầm an toàn giữa máy của người kiểm thử và máy chủ Kali.
- ✓Khi kết quả công cụ Kali sẽ được đưa cho AI và bạn cần quy tắc xử lý an toàn.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/decepticon/kali-mcp-bridge/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể giúp tôi kết nối trợ lý AI của chúng tôi với một máy chủ Kali cho một kiểm thử được ủy quyền, qua đường hầm an toàn không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent thiết lập một máy chủ trên máy Kali, kết nối qua đường hầm được mã hóa, và chuyển các lệnh gọi công cụ qua giao diện chuẩn trả về kết quả có cấu trúc.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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" (
Câu hỏi thường gặp
Có thể dùng trên mọi hệ thống không?
Không. Skill chỉ dành cho hệ thống bạn sở hữu hoặc có văn bản cho phép kiểm thử.
Vì sao thiết lập đường hầm lại quan trọng?
Skill nhấn mạnh việc giữ máy chủ Kali chỉ gắn vào localhost và chỉ truy cập được qua đường hầm bảo mật.
Vệ sinh chống prompt injection là gì?
Đó là các quy tắc xử lý đầu ra công cụ để văn bản trong kết quả quét không thể điều khiển AI.
Chi tiết
Mô tả gốc của tác giả
Deploy and drive Kali Linux tools via MCP-Kali-Server — structured tool-call interface, SSH tunnel setup, prompt-injection hygiene for AI-assisted engagements.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14016
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
Skill tương tự
mcporter
394kGiúp agent của bạn liệt kê, gọi và kiểm tra các máy chủ MCP cùng công cụ của chúng qua HTTP hoặc stdio, và quản lý cài đặt đăng nhập.
fastmcp
260kGiúp bạn xây dựng, kiểm thử và triển khai một máy chủ MCP bằng Python, cấp cho trợ lý AI quyền truy cập API, cơ sở dữ liệu hoặc file của bạn dưới dạng công cụ.
mcp-oauth-remote-gateway
260kHướng dẫn bạn đăng nhập OAuth cho máy chủ MCP từ xa khi Hermes chạy trên máy chủ, nơi đăng nhập bằng trình duyệt thông thường không thể truy cập được.