Autonomous AI penetration testing and CTF agent
open sourceMITfree
PentestGPT is an AI penetration testing agent, from research published at USENIX Security 2024. Its autonomous pipeline drives Claude Code or Codex to run tools and reason through staged phases: recon, exploitation and a walkthrough for capture-the-flag challenges, or asset discovery, vulnerability identification and a report for penetration tests, across web, crypto, reversing, forensics, binary exploitation and privilege escalation, with live progress and saved sessions. An interactive legacy mode works with OpenAI, Anthropic, Gemini, DeepSeek, xAI, Qwen, Moonshot and local Ollama models. It runs locally with uv or in Docker.
Problems it solves
- AI agent that solves CTF challenges
- automate recon and vulnerability finding in an authorized pentest
- LLM assistant for penetration testing
Features
- autonomous staged pentest and CTF pipeline
- drives Claude Code or Codex
- web, crypto, reversing, forensics, pwn and privilege escalation
- live walkthrough and saved sessions
- interactive mode with many LLM providers and Ollama
- Docker setup
Alternatives
The same job
These do what PentestGPT does.
- reverse-skill Skill router pack for reverse engineering, CTFs and authorised penetration testing with coding agents
- PentAGI Self-hosted multi-agent system for autonomous penetration testing
- ARTEX Self-hosted, model-agnostic AI autonomous penetration testing platform with evidence-backed findings
- Strix (AI pentesting) Open source AI penetration testing agents that find and fix your app's vulnerabilities
- HexStrike AI MCP server that lets AI agents run 150+ security tools for authorized penetration testing and bug bounty work
- Shannon Autonomous AI pentester that proves web app vulnerabilities with real exploits
