pentest-ai
Open-source AI pentester that proves every finding. Machine oracles re-run each exploit; verified bugs ship a proof capsule you can replay yourself.
Install / Use
claude mcp add 0xSteph -- npx -y github:0xSteph/pentest-aiIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
SecuritySupported Platforms
Our assessment of pentest-ai
pentest-ai scores 92/100 on our quality scale, 381st of 1,099 Security skills we index (top 35%).
Its MCP Server is 9.0 KB long, well organised into 11 sections with 7 code examples: a thorough specification that gives an agent plenty to work with.
With 1,803 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 2 days ago, so pentest-ai is actively maintained.
- Our last check on 2026-10-17 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
pentest-ai compared with similar skills
All 4 of these similar skills score higher than pentest-ai; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| pentest-ai (this skill)by 0xSteph | 92 | 1.8k | 2d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 109.2k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.9k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.8k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 97.9k | today | MCP Server |
Frequently asked questions
- How do I install pentest-ai?
- Run
claude mcp add 0xSteph -- npx -y github:0xSteph/pentest-ai. The install tabs above show the steps for each supported agent. - Which AI agents does pentest-ai work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is pentest-ai safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is pentest-ai still maintained?
- The repository was last updated 2 days ago, so pentest-ai is actively maintained.
Skill content
View source on GitHub
Website · Quick start · Verification · Documentation · Issues
Pentest-AI connects an AI client or model to a penetration-testing workflow. It investigates applications, records findings, and uses machine oracles to check whether an exploit can be reproduced. Verified findings carry evidence you can replay.
Use it through MCP, from the CLI, or in CI. The model helps drive the investigation; an oracle determines whether a finding earns a verified verdict.
Test only systems you own or have explicit authorization to assess. Read the acceptable-use policy and terms before running an engagement.
Quick start
Recommended: Codex or Claude Code
Use Python 3.10–3.14 and install pipx
first. Run pipx ensurepath and reopen your terminal if needed. pipx isolates
Pentest-AI's dependencies and makes its commands available across folders.
pipx install ptai
ptai setup --mcp
Install your AI client's CLI first. Setup asks before connecting all detected supported clients, including both Codex and Claude Code when installed. It preserves existing registrations. Restart your client afterward.
The wizard uses user-wide settings. It does not install clients, sign you in,
download models or configure Ollama. Your AI client supplies the model; no separate
model API key is required by the MCP server. Use ptai setup --mcp --dry-run to
preview changes. See single-client and per-repository setup
for Codex .codex/config.toml and Claude Code .mcp.json instructions.
For upgrades, use pipx upgrade ptai. In an existing activated virtual environment,
python -m pip install --upgrade ptai is also supported; keep that environment
available after registering it with your AI client.
Alternative: Ollama and local models
Install Pentest-AI as above, but skip MCP setup for this route.
Install and start Ollama, then pull a model
with tool-calling support. Use ollama list to find its exact installed name.
export PENTEST_AI_LLM_PROVIDER=ollama
export PENTEST_AI_MODEL="your-installed-model"
ptai start https://your-authorized-target.example --no-sync
In PowerShell:
$env:PENTEST_AI_LLM_PROVIDER = "ollama"
$env:PENTEST_AI_MODEL = "your-installed-model"
ptai start https://your-authorized-target.example --no-sync
Replace the placeholders before running. A local model needs no cloud API key. Model quality and available memory affect results. See the model guide for endpoint configuration.
Try the bundled demo
No API key or external target required.
pipx install ptai
ptai demo
The demo tests a bundled vulnerable application, replays a finding from its proof capsule, and checks the hardened routes. Inspect the evidence workflow before configuring a real engagement.
Other model providers
For standalone cloud models and optional scanner dependencies, see the installation guide and provider guide. Keep API keys out of source control.
How verification works
- Find a candidate. A probe or scanner identifies behaviour worth investigating.
- Reproduce it and check a control. A named oracle repeats the exploit and compares it with a control that should not demonstrate the weakness.
- Keep the evidence. A verified finding records the oracle and its results in a portable proof capsule. Use
ptai replayto check it again.
For example, a trusted-header bypass must return privileged content with the attack header and deny access without it. A server that answers every request with HTTP 200 is not sufficient evidence.
The model cannot award a verified verdict. Third-party scanner output remains unverified until an oracle independently proves it. Findings without a supported verification recipe remain candidates.
A verified verdict applies to the tested conditions. It does not mean the entire application is secure. Proof capsules are unsigned; rerunning the check is the trust mechanism.
What you can do
| Workflow | What Pentest-AI provides | | --- | --- | | Investigate web applications | Probes for injection, access control, request handling and other application weaknesses | | Work through an AI client | MCP tools for engagements, investigation and verification | | Reproduce a finding | Oracle results and replayable proof capsules | | Check a fix | Rerun the recorded check against the updated target | | Report to your team | Reports and SARIF output for existing engineering workflows | | Keep engagement data local | Findings stored on your machine in SQLite |
Coverage varies by probe and oracle. Optional scanners need their own binaries, and some integrations provide raw output rather than structured findings. Consult the documentation and changelog for your version; main may contain unreleased work.
View the capability inventory checked by CI.
Put verified findings into CI
Configure your model provider, an authorized target and first-run consent in your CI environment. Keep secrets in the CI provider's secret store.
ptai start https://your-authorized-target.example --ci --fail-on verified --no-sync
Export verified findings using the engagement ID from the run:
ptai export YOUR_ENGAGEMENT_ID --sarif pentest.sarif
--sarif is an export option, not a ptai start option. Retain the engagement ID and run the export even when the finding gate fails if you want evidence for failed builds. Upload the resulting file through your CI provider's SARIF integration.
Evidence, benchmarks and limits
Benchmark findings, challenge completion and oracle-verified findings are different measurements. These reports record the versions, targets and methodology behind their results:
- Benchmark reports and artifacts
- Juice Shop methodology
- Vulnerable test harness
- Clean-application checks
Expect incomplete coverage. A scan with no verified findings is not a security assessment of everything an application does. Authentication, application state, unsupported bug classes and environmental changes affect what can be found and reproduced. Review results and keep a human involved in the engagement.
Data and network behaviour
Findings are stored locally. Anonymous usage counters are opt-in through ptai telemetry enable.
Local storage does not mean every operation stays on your machine: model-provider calls and installed scanners have their own network behaviour. Blind-vulnerability checks can use an external out-of-band collaborator; callback metadata is visible to that service.
Use your own collaborator where required, or disable callbacks:
ptai start https://your-authorized-target.example --oast-server https://your-collaborator.example
ptai start https://your-authorized-target.example --no-oast
Get involved
Use Issues for reproducible bugs and Discussions for questions and ideas. See the agent and contributor guide for build and test instructions.
The optional pentest-ai-agents repository contains Claude Code subagent files.
Pentest-AI is open source under the MIT license.
Related Skills
Agent-Reach
109.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.8kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
97.9k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
