PentestGPT runs staged security testing workflows using large language models, including CTF and pentest pipelines. It can drive Claude Code or Codex tools with saved sessions.
Overview
PentestGPT is an agent framework for authorized penetration testing and capture-the-flag work powered by large language models. The current agentic release walks through fixed stages—reconnaissance, exploitation, and walkthrough for CTFs, or asset discovery, vulnerability identification, and reporting for pentests—passing results from each phase forward.
The autonomous mode orchestrates Claude Code or Codex to run security tools and reason with minimal manual steps. Sessions can be saved and resumed. A Docker image bundles the tool with those CLIs so authentication persists in named volumes across runs.
A legacy interactive mode keeps three cooperating LLM roles that maintain a pentesting task tree while you step through commands. That path supports many cloud and local model providers through official SDKs when API keys are configured.
Challenge categories called out include web, crypto, reversing, forensics, PWN, and privilege escalation, with live activity feedback. The project was published at USENIX Security 2024 and is intended for education and permitted testing only.
Key features
- Multi-stage CTF and pentest pipelines
- Claude Code and Codex backends
- Session save and resume
- Legacy interactive PTT mode
- Multi-provider LLM configuration
- Docker bundle with persistent logins
- Live walkthrough activity tracking
- Broad CTF category coverage
Use cases
- Authorized pentest report workflows
- CTF practice with an autonomous agent
- Interactive LLM-guided security labs
- Repeatable Docker-based test environments
Does the same job as
PentestGPT doesn't name these products itself, but its own description shows it does the same job.