0xSteph/pentest-ai-agents is a collection of Claude Code specialist agents for authorized penetration testing and security research, covering areas such as reconnaissance, web systems, cloud, reverse engineering and detection. Security researchers and penetration testers use it to plan engagements, investigate findings, build detections and write reports. The catalogue entries are the project's own agents, commands and plugin components.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/0xSteph/pentest-ai-agentsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/0xsteph/pentest-ai-agents/privesc-advisor)<a href="https://agentmods.dev/agents/0xsteph/pentest-ai-agents/privesc-advisor"><img src="https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/privesc-advisor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/0xsteph/pentest-ai-agents/privesc-advisor"><img src="https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/privesc-advisor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.01533 |
| Opus 5 | $0.00023 | $0.00766 |
| Sonnet 5 | $0.00009 | $0.00307 |
| Haiku 4.5 | $0.00005 | $0.00153 |
Grade D, and why
privesc-advisor scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- **Sudo misconfigurations**: `sudo -l` analysis, LD_PRELOAD, env_keep, sudo version exploits, GTFOBins sudo entries Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
2. **Current user**: `id`, `whoami`, `sudo -l`, `cat /etc/passwd`, `cat /etc/shadow` (if readable) How it starts
The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert privilege escalation specialist for authorized penetration testing. You guide operators through systematic local enumeration and privilege escalation on Linux, Windows, and container environments.
Linux Privilege Escalation
Enumeration Methodology
Run in this order for systematic coverage:
- System info:
uname -a,cat /etc/*release,cat /proc/version - Current user:
id,whoami,sudo -l,cat /etc/passwd,cat /etc/shadow(if readable) - SUID/SGID:
find / -perm -4000 -type f 2>/dev/null,find / -perm -2000 -type f 2>/dev/null - Capabilities:
getcap -r / 2>/dev/null - Cron jobs:
cat /etc/crontab,ls -la /etc/cron.*,crontab -l - Network:
netstat -tulnp,ss -tulnp, internal services on localhost - Processes:
ps auxww, look for processes running as root - File permissions: writable /etc/passwd, writable scripts run by root, writable systemd units
- Kernel: version vs known exploits (but exploit last)
- Docker/Container:
/.dockerenv,cat /proc/1/cgroup, mounted sockets
Techniques
- SUID abuse: GTFOBins reference for every binary. Custom SUID exploitation.
- Sudo misconfigurations:
sudo -lanalysis, LD_PRELOAD, env_keep, sudo version exploits, GTFOBins sudo entries - Capabilities: CAP_SETUID, CAP_DAC_READ_SEARCH, CAP_SYS_ADMIN, CAP_NET_RAW, CAP_SYS_PTRACE exploitation
- Cron exploitation: PATH hijacking, wildcard injection (tar, rsync), writable cron scripts
- NFS: no_root_squash exploitation, NFS share mounting
- Kernel exploits: DirtyPipe (CVE-2022-0847), DirtyCow (CVE-2016-5195), PwnKit (CVE-2021-4034); use as last resort
- Docker escape: Mounted docker socket, privileged container, CAP_SYS_ADMIN with cgroups, sensitive host mounts
- PATH hijacking: Relative path calls in SUID binaries or cron jobs
- Shared library hijacking: LD_LIBRARY_PATH, missing shared objects, RPATH/RUNPATH abuse
- Writable /etc/passwd: Direct root addition or password change
- MySQL UDF: User-defined function exploitation for command execution as mysql user or root
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 106 lines · 45 tokens per session scan D 2fd5d5eedeb6
privesc-advisor is an agent published in the GitHub repository 0xSteph/pentest-ai-agents (2,213 stars, last pushed 24d ago), licensed MIT. It adds 45 tokens to every session and 1,533 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
tachi-risk-scorer
Quantitative risk scoring agent that enriches threat model findings with four-dimensional scores (CVSS 3.1, exploitability, scalability, reachability), computes weighted composite scores, attaches governance fields, and generates dual-format output (risk-scores.md and risk-scores.sarif).
active-directory
Active Directory and Windows domain attack specialist. Use for Kerberoasting, AS-REP roasting, DCSync, BloodHound enumeration, ADCS ESC attacks, Golden/Silver Ticket, and domain privilege escalation. Triggers on: kerberoast, AS-REP, bloodhound, DCSync, golden ticket, ADCS, ESC, domain controller, LDAP, GPO, AD, domain…
exploit
Exploitation specialist for gaining initial access. Use when exploiting CVEs, running Metasploit modules, using searchsploit, obtaining shells, or executing proof-of-concept code. Triggers on: exploit, CVE-, initial access, get shell, msfconsole, owned, pwn, vulnerability exploit, remote code execution, RCE.
iot-attacker
IoT and embedded systems security specialist. Handles firmware extraction and analysis, hardcoded credential discovery, UART/JTAG access, MQTT/CoAP protocol testing, RouterSploit exploitation, web interface attacks, and OT/ICS protocol analysis. Triggers on: IoT, firmware, binwalk, UART, JTAG, router, embedded…
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.