claude-pentest
A full penetration testing framework for Claude Code with Kali MCP integration containing 15 agents, 6 skill coordinators and 63 attack categories.
Structured, human-in-the-loop, evidence-driven.
English | 简体中文 | Français
For authorized security testing only. Always obtain written permission before testing any system you do not own.
What this is
claude-pentest is a Claude Code plugin that gives Claude structured penetration testing capabilities. It is not a script or scanner, it is an agent coordination framework: the /pentest:pentest command coordinates the engagement from the main session — it runs reconnaissance, asks a planner agent for a deployment plan, then deploys specialized executor agents (each following a strict 4-phase workflow) in parallel, spending the time budget on escalation, and requiring operator approval before any active exploitation begins. Every finding ships with a working PoC, captured HTTP evidence, and a Playwright screenshot.
Key principles:
- Human-in-the-loop at every escalation point — Claude cannot proceed to exploitation without your confirmation
- Evidence-first — no theoretical findings, only verified PoCs with
poc.py and poc_output.txt
- Structured outputs — every engagement writes machine-readable JSON + markdown analysis to
outputs/{engagement}/
- Breadth — 11 attack domains, 63 sub-categories, 25+ security tools referenced
Install
First Add Marketplace
# Add marketplace from inside claude code
/plugin marketplace add Stickman230/claude-pentest
Then Install plugin
# Install plugin from inside claude code
/plugin install pentest@claude-pentest
The plugin installs into your project's .claude/ directory. Once installed, all agents, skills, and slash commands are available in any Claude Code session.
Optional: Kali Server (MKS)
For server-side testing (nmap, sqlmap, gobuster, Metasploit, etc.), the plugin can connect to a remote Kali Linux REST API. Without it, agents fall back to whatever tools are available locally via Bash.
Setup: Deploy MCP-Kali-Server on a Kali Linux host reachable from your machine, then run /pentest:pentest-kali in Claude Code to connect and save the configuration. The server URL and tool availability are written to .pentest-mks.json and picked up automatically at engagement launch.
Quick Start
The recommended way to start an engagement is via the guided slash command:
/pentest:pentest
This walks you through scope collection, attack profile selection, optional Kali server configuration, then runs the engagement itself (pre-flight → recon → planning → executor deployment → time-budget loop → report). See Slash Commands below for the full command reference.
Slash Commands
Five slash commands are included for guided session management. They are auto-discovered by Claude Code and invoked by name.
/pentest:pentest
Purpose: Guided engagement launcher and orchestrator — collects scope, attack profile, and Kali server configuration, then runs the engagement from the main session (the command owns dispatch because the harness allows only one level of subagent nesting).