#55th of 5 in Security

pentestgpt

Autonomous pentest agent that drives Claude Code or Codex against a target

Stars
15.9k
License
MIT
Last commit
Jul 2026
Last release
Dec 2025
Language
Python

Missed the latest GitHub check; these facts may be older.

Overview

PentestGPT runs a staged pipeline against a target IP or URL, using Claude Code or Codex as the backend to run tools and reason. CTF mode goes recon, exploit, walkthrough; pentest mode goes asset discovery, vulnerability identification, report. A separate pentestgpt-legacy mode keeps the interactive three-session design from the USENIX Security 2024 paper and supports several providers plus Ollama.

Who it is for: Pentesters and CTF players running authorized tests with LLM agents

Strengths

  • Staged pipelines for CTF and pentest modes, with saved and resumable sessions
  • Legacy interactive mode supports OpenAI, Anthropic, Gemini, DeepSeek, xAI, Qwen, Kimi and Ollama
  • Docker image bundles Claude Code and Codex CLIs, with logins persisted in volumes
  • Backed by a USENIX Security 2024 paper; reports 90/104 on an XBOW suite run in Dec 2025

Weaknesses

  • Autonomous pipeline supports only Claude Code and Codex backends
  • Needs an authenticated Claude Code or Codex CLI, so a paid account or API access
  • Sends anonymous usage telemetry to Langfuse by default; opt out with a flag
  • XBOW result is historical; the shipped CLI has no XBOW runner

What it needs

  • no GPU
  • Docker + Compose
  • Needs Python 3.12+, uv, Claude Code CLI, Codex CLI, Langfuse (telemetry, can be disabled)
  • Models: Claude, OpenAI, Google Gemini, DeepSeek, xAI Grok

Also in Security

See all 5
Also in Security
RankProjectScore
1shannonAutonomous pentester that exploits web apps and APIs using source code analysis48.9k starsAGPL-3.076 out of 100
2StrixAutonomous AI pentesting agents that validate vulnerabilities with working exploits68.6k starsApache-2.075 out of 100
3pentagiAutonomous multi-agent penetration testing system with sandboxed security tools25.3k starsMIT71 out of 100
#4ifixaiPython CLI that audits AI agents for policy, access and reliability failures24.2k starsApache-2.059 out of 100