AI penetration testing: the tools, the agents and where an LLM helps
AI pentesting tools compared: Strix, Shannon, PentAGI, PentestGPT and more, with licenses, model support and custom endpoints, plus where LLMs help and fail.
AI pentesting is the use of large language models to plan, run or write up parts of an authorized penetration test, from summarizing recon to drafting the report. All 7 open-source agents we checked on 2026-12-02 let you point them at your own OpenAI- or Anthropic-compatible endpoint. None of them removes the need for a human to confirm findings and approve actions.
What AI pentesting means
AI pentesting means using a large language model inside a penetration test: to read scanner output, plan next steps, drive tools through an agent loop or write the report. The term has a second meaning, testing AI systems themselves for prompt injection and data leakage. This page covers the first. For testing your own LLM app, see AI red teaming tools and AI red teaming.
Only for systems you own or have written permission to test.
Disclosure. Abliterator sells abliterated models behind an OpenAI- and Anthropic-compatible API, so we have an interest in which model your tools call. None of the tools below requires Abliterator. We read each repository's README, docs and source on 2026-12-02. We did not run any of them, so test a tool against a lab target before you use it on an engagement.
AI pentesting tools compared
We checked seven open-source agents and four commercial products. The open-source ones all let you choose the model. In the commercial ones the vendor chooses it. Stars, releases and commit dates change weekly; these were checked 2026-12-02 from the GitHub API.
| Tool | What it does | License | Latest release | Last commit | GitHub stars |
|---|---|---|---|---|---|
| Strix | Agents run your app, look for vulnerabilities and confirm each one with a proof of concept; runs in Docker and in CI | Apache-2.0 | v1.8.0 (2026-11-30) | 2026-11-30 | 78,645 |
| Shannon | White-box pentester for web apps and APIs: reads your source, then tests the running app to confirm what it found | AGPL-3.0 | v3.6.1 (2026-11-20) | 2026-12-02 | 52,566 |
| PentAGI | Self-hosted multi-agent system that runs 20+ standard tools in an isolated Docker sandbox and writes a report | MIT, plus an EULA | v2.2.0 (2026-10-05) | 2026-10-23 | 35,472 |
| PentestGPT | Staged pipeline from asset discovery to report; the research tool from the USENIX Security 2024 paper | MIT | v1.0.0 (2025-12-24) | 2026-07-14 | 16,701 |
| CAI | Agent framework for security research by Alias Robotics; archived, no further fixes | MIT parts plus a research-only license | no GitHub releases | 2026-08-22 (archive) | 9,887 |
| hackingBuddyGPT | Research framework for building small LLM testing agents (privilege escalation, web, web API) | MIT | no GitHub releases | 2026-10-24 | 1,358 |
| Nebula | Engagement workbench where agents work toward goals inside the scope, approvals and budgets you set | BSD-2-Clause | v3.0.46 (2026-11-09) | 2026-12-01 | 1,177 |
Which models each one can call, and where you set your own endpoint:
| Tool | Model providers in its docs | Custom endpoint | Where it's documented |
|---|---|---|---|
| Strix | 100+ through LiteLLM: OpenAI, Anthropic, Vertex, Bedrock, OpenRouter, local | Yes: LLM_API_BASE with an openai/<model> name |
configuration.mdx, local.mdx |
| Shannon | Anthropic, OpenAI, xAI, Bedrock, plus any provider in the Pi catalogue | Yes: a models.json provider with "api": "openai-completions", passed with --models-config |
ai-providers.md, "Custom model configuration" |
| PentAGI | OpenAI, Anthropic, Gemini, Bedrock, Ollama, DeepSeek, Kimi, Qwen and others | Yes: LLM_SERVER_URL, LLM_SERVER_KEY, LLM_SERVER_MODEL |
README, "Custom LLM Provider Configuration" |
| PentestGPT | Agent mode: Claude Code or Codex CLI. Legacy mode: OpenAI, Anthropic, Gemini, DeepSeek, xAI, Qwen, Moonshot, Ollama | Agent mode: through Claude Code's ANTHROPIC_BASE_URL. Legacy mode has --base-url, but sends a placeholder key for custom model names |
claude_code.py, openai_compatible.py |
| CAI | OpenAI, Anthropic, DeepSeek, Ollama and others through CAI_MODEL |
Yes: OPENAI_BASE_URL |
cai_installation.md |
| hackingBuddyGPT | Any LiteLLM provider; defaults to OpenRouter | Yes: llm.api_base |
README, configuration table |
| Nebula | Claude, OpenAI, Gemini, Bedrock, OpenRouter, Ollama, vLLM; Codex, Claude and Grok as harnesses | Yes: "Custom OpenAI-compatible endpoint" profile | providers.py |
Licenses need a second look before client work. CAI's license allows its Alias Robotics components only for non-commercial research, and the repository is archived. PentAGI's EULA limits use to lawful penetration testing. Shannon is AGPL-3.0, and its maker Keygraph sells commercial licenses and hosted editions.
None of the commercial products documents a way to bring your own model (checked 2026-12-02):
| Product | What it does | Model choice |
|---|---|---|
| XBOW | Autonomous testing of web apps and APIs; its site says findings come with reproduction steps and "are reviewed before you see them" | Not published |
| Horizon3.ai NodeZero | Autonomous internal, external, cloud and Kubernetes pentests; internal tests run from a Docker host or OVA you deploy | Not published |
| RunSybil | Continuous testing of code, APIs, cloud and infrastructure, with feedback on every pull request | Not published |
| Burp AT in Burp Suite Professional | Agentic AI that works inside your open Burp project, with per-tool permissions that range from approving every action to fully autonomous | OpenAI and Anthropic models chosen by PortSwigger; on whether customers can choose, its trust page says "Not currently" |
Burp extensions can call other providers, but PortSwigger's extension rules say an extension "must use Burp AI as the default AI provider."
Where an LLM helps in an authorized engagement
An LLM helps most with reading and writing, the work that fills the hours between tool runs. These five jobs come up on most engagements, and none of them requires an agent to touch a target:
- Recon summaries. Paste the output of your discovery tools for in-scope ranges and ask for a list of hosts, exposed services and what each one suggests testing next. A long scan export fits in the 1,048,576-token context in one request.
- Scanner triage. Feed it the findings export from your scanner and ask it to merge duplicates, flag likely false positives and say what a tester should confirm by hand.
- CVE applicability. Give it a CVE ID, the vendor advisory and your asset's exact version and configuration, and ask whether the conditions for the bug are met. It should quote the affected version range, so you can check it.
- Report writing. Turn your notes, screenshots and request logs into findings with impact, evidence and a fix the client's developers can act on. Give it one finding at a time with the evidence, and keep the severity call yours.
- Retest notes. Compare the original finding with the retest evidence and draft a closed, partially fixed or still open verdict, with the reason.
A triage call looks like this. The system prompt records the engagement and the scope, which keeps answers relevant and documents intent in your own logs:
import os
from openai import OpenAI
client = OpenAI(base_url="https://abliterator.ai/v1", api_key=os.environ["ABL_API_KEY"])
SYSTEM = (
"You support engagement EX-2026-114 for Example Corp. Written authorization "
"is on file. In scope: *.example.com and 203.0.113.0/24. Nothing else is in "
"scope. Be specific, say when you are unsure, and never invent a finding."
)
FINDINGS = """\
1. TLS 1.0 enabled - mail.example.com:443
2. TLS 1.0 enabled - mail.example.com:443 (second plugin)
3. Missing Strict-Transport-Security header - app.example.com
4. Apache httpd 2.4.49 banner - legacy.example.com:80 (CVE-2021-41773 match)
5. Directory listing enabled - files.example.com/backup/
"""
resp = client.chat.completions.create(
model="deepseek-v4.1-flash-abliterated",
messages=[
{"role": "system", "content": SYSTEM},
{
"role": "user",
"content": "Triage these scanner findings. Merge duplicates, rank by "
"likely risk, mark which ones a banner match alone cannot confirm, and "
"for each say what the tester should verify by hand.\n\n" + FINDINGS,
},
],
)
print(resp.choices[0].message.content)
print("cost USD:", getattr(resp.usage, "cost", None))
A good answer merges findings 1 and 2, and says that finding 4 is a version banner match: the tester still has to confirm the version and the configuration the advisory requires before it goes in the report.
Where LLMs fail
LLMs fail in three predictable ways in a pentest: they report findings that don't exist, they drift outside scope, and agents act before a human has looked. Each one has a known control.
Findings that don't exist. A model will describe a vulnerability with confidence and no evidence. curl's maintainer Daniel Stenberg wrote in The I in LLM stands for intelligence (2024) about AI-written security reports that fell apart under questioning, and noted that the more convincing a fake report is, the longer it takes to close. Tool authors design around this: hackingBuddyGPT checks its task_solved tool against ground truth so a "hallucinated or conceding" success cannot count, and Nebula requires a goal to finish "with a summary and cited evidence." Treat every model finding as unconfirmed until a tester reproduces it.
Scope creep. Agents follow links, resolve new hostnames and chase interesting services. A prompt that lists the scope is not a control. On our own measurements, abliteration makes a restrictive system prompt weaker: off-topic requests declined fell from 95% to 75% on DeepSeek V4.1 Flash Abliterated (benchmarks). Put the allowlist in the tool code instead, so a call to an out-of-scope host fails whatever the model asks for. Nebula, for example, can limit container network traffic to the project's scope.
Unsafe autonomy. An agent with a shell runs real commands. hackingBuddyGPT's README warns that it "executes real commands on live systems." Burp AT shows a good pattern: each tool has a permission level, and "Burp AT can propose any action, but it can't carry out an action your settings don't allow." Default to read-only tools and require human approval for anything that sends traffic to a target.
One more failure is quieter: data leaving through the tool. PentestGPT sends anonymous usage data to Langfuse unless you pass --no-telemetry, and Strix's telemetry is on by default until STRIX_TELEMETRY=0 turns off PostHog, Scarf and OpenTelemetry (both checked 2026-12-02). Read a tool's telemetry section before you point it at client data.
Why mainstream models interrupt authorized testing
The major model providers run cyber safeguards on their frontier models, and those safeguards can block or refuse legitimate pentest work unless your account is approved. The providers say so themselves (checked 2026-12-02):
- Anthropic's Cyber Verification Program says you may need it "if Claude blocks your security work," and names "running authorized penetration tests" as an example. Individuals can apply only for its Defense Access tier, and enrolled users may still see "some model refusals and classifier blocks for allowed security work."
- OpenAI's Daybreak says its Blue tier "offers fewer refusals for authorized defensive cybersecurity work," with separate approval for each tier.
- Google DeepMind's Fairwind Program gives Gemini for cyber models to vetted partners, prioritizing governments and critical infrastructure.
The tools feel this. Shannon's AI providers guide says that if a safeguard engages, "the model can refuse, and the scan fails partway through rather than at the start." Strix's README marks the frontier OpenAI, Anthropic and Gemini models as needing one of those programs. For a consultant, an agent that stops halfway through a scan costs more than an upfront refusal, because the run's state is unclear and has to be redone.
An abliterated model makes that failure rare. Abliteration removes the refusal direction from the model's weights (how it works), so the model refuses far less. On DeepSeek V4.1 Flash Abliterated, refusals fell from 94% to 1%; on Kimi K3.1 Pro Abliterated, from 94% to 3% (benchmarks). Abliterator serves both models through an OpenAI-compatible API at https://abliterator.ai/v1 and an Anthropic-compatible one at https://abliterator.ai, which is what the endpoint settings above expect.
Three trade-offs to weigh before you switch an agent:
- Agent performance. Kimi K3.1 Pro Abliterated scored 62.3 on Terminal-Bench 4.0 against 66.6 for the original, a drop on agentic coding that is plausible but not statistically shown. Test your agent on a lab target before you rely on it.
- System prompts. As above, a restrictive system prompt is followed less strictly. Enforce limits in code.
- Cost. On DeepSeek V4.1 Flash Abliterated, answers used 2% to 16% more output tokens than the original model, depending on the benchmark, and you pay for those tokens.
Removing refusals doesn't remove the law or our terms. Some uses are always prohibited; see the acceptable use policy.
Pointing a pentest agent at Abliterator
You point a tool at Abliterator by setting its custom endpoint to https://abliterator.ai/v1, its key to your Abliterator key and its model to kimi-k3.1-pro-abliterated or deepseek-v4.1-flash-abliterated. The settings below come from each tool's own docs; we have not run these agents, so check them on a lab target first. Step-by-step guides: Strix, PentAGI and PentestGPT. To choose the model itself, see best LLM for cybersecurity.
| Tool | Settings | Notes |
|---|---|---|
| Strix | STRIX_LLM=openai/kimi-k3.1-pro-abliterated, LLM_API_BASE=https://abliterator.ai/v1, LLM_API_KEY set to your key |
Set STRIX_API_TYPE=chat_completions: Abliterator does not serve the Responses API. LiteLLM naming is explained in our LiteLLM guide |
| PentAGI | LLM_SERVER_URL=https://abliterator.ai/v1, LLM_SERVER_KEY, LLM_SERVER_MODEL=kimi-k3.1-pro-abliterated |
PentAGI marks LLM_SERVER_* as experimental; one model serves every agent unless you add a provider config file. Its vector memory needs an embedding provider (EMBEDDING_*), which Abliterator does not offer |
| Shannon | A models.json provider with "baseUrl": "https://abliterator.ai/v1" and "api": "openai-completions", then SHANNON_AI_MODEL=<provider>:kimi-k3.1-pro-abliterated and SHANNON_AI_API_KEY |
The openai: prefix needs the Responses API, so use a custom provider |
| PentestGPT | Agent mode with the Claude backend: Claude Code's ANTHROPIC_BASE_URL=https://abliterator.ai and model variables |
See Claude Code. The Codex backend needs the Responses API |
| hackingBuddyGPT | llm.api_base=https://abliterator.ai/v1, llm.model=openai/kimi-k3.1-pro-abliterated, llm.api_key |
LiteLLM model naming |
| Nebula | A "Custom OpenAI-compatible endpoint" provider with base URL https://abliterator.ai/v1 |
Set in Nebula's provider settings |
For Strix, scanning your own repository, that is:
export STRIX_LLM="openai/kimi-k3.1-pro-abliterated"
export LLM_API_BASE="https://abliterator.ai/v1"
export LLM_API_KEY="$ABL_API_KEY"
export STRIX_API_TYPE="chat_completions"
export STRIX_TELEMETRY=0
strix --target ./your-app
Which model for which job:
| Job | Model | Why |
|---|---|---|
| Agent runs, report writing, CVE applicability | kimi-k3.1-pro-abliterated |
Strongest reasoning, 1,048,576-token context; $4.00 per 1M input tokens |
| Scanner triage, log and recon summaries in bulk | deepseek-v4.1-flash-abliterated |
$1.00 per 1M input tokens for high volume |
Both models support tool calling. On Kimi, forcing a named function in tool_choice needs reasoning_effort: "none". New accounts get $10 in signup credit for a first test on a lab target; create a key at /keys.
Scope, rules of engagement and logging
An AI-assisted test needs the same paperwork as any other test, plus controls for what the model can do on its own. Settle these before the first agent run:
- Written authorization and rules of engagement. Name the targets, the testing window, what is off limits and who to call when something breaks. NIST SP 800-115 (Scarfone et al., 2008) covers planning a technical security test. Add one line about AI: which tools and model providers will see client data.
- Scope as code. Load the scope file into the tools, and make every tool that touches the network check it. Tools such as Nebula and Burp AT enforce limits outside the model; use that kind of control rather than a sentence in a prompt.
- A human in the loop. Keep read-only tools on by default. Anything that sends traffic to a target, writes files on it or changes an account needs an approval from a named tester.
- Your own logs. Abliterator does not store prompt or completion text, only request metadata such as time, model, token counts and cost (privacy). If your rules of engagement need an audit trail, log each prompt, each output and the
X-Abl-Generation-Idresponse header in your own system, next to the tool's own run logs. - Confirm before you report. Every finding in the report is one a tester reproduced, with the evidence attached.
Only for systems you own or have written permission to test. For the wider case for an uncensored model in security work, including detection rules and threat intelligence, see cybersecurity.
Frequently asked questions
What is the best AI for pentesting?
It depends on the job. Long-context reasoning models suit report writing and agent runs, cheap fast models suit bulk triage, and either has to answer security questions without stopping. Strix's docs say frontier OpenAI, Anthropic and Gemini models need a cyber access program for security testing (checked 2026-12-02).
Are there free, open-source AI pentesting tools?
Yes. Strix is Apache-2.0, PentAGI, PentestGPT and hackingBuddyGPT are MIT, Nebula is BSD-2-Clause and Shannon is AGPL-3.0 (checked 2026-12-02). The tools are free, but you pay for the model they call.
Can AI replace a human penetration tester?
Not today. Agents speed up recon, triage and writing, but LLMs report findings that don't exist and miss business context. Even XBOW, an autonomous platform, says its findings are reviewed before customers see them.
Why does ChatGPT or Claude refuse pentesting questions?
Their providers run cyber safeguards that can block or refuse security work. Anthropic says you may need its Cyber Verification Program if Claude blocks authorized penetration tests, and OpenAI offers fewer refusals to approved defenders through Daybreak (checked 2026-12-02).
Is PentestGPT still maintained?
It is not archived, but updates are infrequent: the latest release is v1.0.0 from 2025-12-24 and the last commit was on 2026-07-14 (checked 2026-12-02). Version 1.0 drives Claude Code or Codex as its agent, and the older interactive mode remains as pentestgpt-legacy.
Can I run an AI pentesting agent against any website?
No. Run it only against systems you own or have written permission to test, inside a scope you can enforce in the tool. Agents act fast and can reach hosts you never meant to test.