Skip to content
AiTM
All articles
AI Refusals

Best AI Model for Pentesting: ChatGPT, Claude, Gemini, Grok

ChatGPT, Claude, Gemini and Grok compared for security work using vendor policies, model cards and independent papers. Access now matters more than the model.

Admin15 min read
Best AI model for pentesting: ChatGPT, Claude, Gemini and Grok offer no offensive tier to an individual tester, while the AiTM AI Agent plans the task
On this pageShow

The best AI model for pentesting is none of the four by default. As of November 2026, ChatGPT, Claude, Gemini and Grok all restrict offensive security work for ordinary accounts. They differ in how they block it, who can get verified access, and what they cost. This comparison uses published evidence only: vendor policies, vendor model cards and independent papers. We ran no tests of our own.

Key takeaways

  • OpenAI and Anthropic publish the most detail. Both block most offensive work by default and unlock it only for approved organizations.
  • On OpenAI's own test, its general model completed 1.5% of advanced offensive requests. On Anthropic's, an unverified account was blocked in all 50 trials.
  • Google's cyber models go to governments and critical infrastructure through the Fairwind Program. Gemini refused least in one early-2026 study, and its newest model ships with real-time cyber safeguards.
  • Grok is not an open door. Its maker's own model card reports that Grok 4.7 complied with about 4% of harmful and dual-use requests on an internal test.
  • A November 2026 benchmark found the closed models that refused every risky request also refused 28% to 62% of safe ones.

A note on bias: this comparison is published by AiTM (aitm.io), which sells an alternative to all four. We have not tested any of these models, so the article ranks nothing by answer quality. Every figure is attributed to the party that published it.

Everything below assumes you have written authorization and a defined scope for the systems you test. The article contains no jailbreaks or prompt tricks.

Which is the best AI model for pentesting?

It depends on who you are, because access now matters more than the model.

  • A testing firm or in-house red team that can get approved: Claude with Red Team Access or ChatGPT with Daybreak Red. These are the only routes where a vendor reports its frontier model completing offensive tasks without blocks.
  • An individual tester: none of the four gives you an offensive tier. All four still help with reporting, code review, tooling and defensive work.
  • A team that cannot send client data to a provider: none of the four. That needs a model on your own hardware.

The rest of this article is the evidence behind that answer.

How did we compare the four?

We compared the four on five things you can check yourself.

  1. What the policy says about security work.
  2. How the policy is enforced: by the model, by separate classifiers, or both.
  3. Whether a verified route exists and who qualifies.
  4. What has been measured: refusal and completion figures from the vendor or from independent papers.
  5. What it costs an individual per month.

Vendor pages were read on November 30, 2026. Two limits apply. Vendor figures come from each vendor's own tests and are not comparable with each other. And no independent study covers current models from all four vendors at once.

The four at a glance

ChatGPT (OpenAI) Claude (Anthropic) Gemini (Google) Grok (xAI)
Default for offensive work Refused or blocked Blocked by classifier Real-time cyber safeguards on its newest model Trained to refuse cyber offense
Verified route Daybreak Blue and Red Cyber Verification Program Fairwind Program None found on its site
Offensive tier for individuals No No No Not applicable
Entry paid plan $20 $20 $19.99 $8
Coding agent Codex Claude Code Antigravity Grok Build

Comparison of ChatGPT, Claude, Gemini and Grok for security work: default handling of offensive requests, verified-access route, and entry price in November 2026

ChatGPT for pentesting

ChatGPT refuses or blocks most offensive work by default, and OpenAI is open about it.

Policy and enforcement. OpenAI's Usage Policies prohibit malicious cyber activity. Enforcement is layered: the model is trained to refuse some requests, separate classifiers screen others, and flagged accounts can be restricted.

What has been measured. In its August 2026 Daybreak post, OpenAI reported that its general model completed 1.5% of advanced offensive requests under standard safeguards. With the defensive tier it completed 2.0%. The cyber model behind the offensive tier completed 95.0%.

Verified route. Daybreak has two tiers. Individuals can apply for Daybreak Blue, the defensive tier, with a paid plan and a hardware security key. Daybreak Red, the offensive tier, is for approved organizations.

Price. ChatGPT Plus is $20 a month, and Pro comes in tiers at $100, $200 and $500.

Fits: general work, defensive tasks, and organizations that can get Daybreak Red. We cover the detail in why ChatGPT refuses security questions.

Claude for pentesting

Claude blocks offensive work by classifier on its newest models, and Anthropic publishes the clearest numbers on what that means.

Policy and enforcement. Anthropic's Usage Policy permits security testing on systems you own or are authorized to test. The block comes from real-time classifiers that treat penetration testing and exploit development as high-risk dual use.

What has been measured. In an October 2026 test, Anthropic ran its Opus 5.5 model through 50 offensive-security trials. Without verification, all 50 were blocked on the first prompt. With Red Team Access, none were blocked and the model completed 34.

Verified route. The Cyber Verification Program has three tiers. Individuals can reach Defense Access only. Red Team Access is for organizations on Enterprise and API plans.

Direction of travel. Anthropic said in September 2026 that Claude Code users could expect around 60% fewer safeguard interventions per session, and that its newer model can be used to discover vulnerabilities, though not to develop exploits.

Price. Claude Pro is $20 a month billed monthly, and Max starts at $100.

Fits: source-code review, defensive work, and organizations that can get Red Team Access. See why Claude blocks pentesting requests.

Gemini for pentesting

Gemini has moved from the most permissive of the four to much the same position as the others. Google's policy restricts offensive work, its newest model runs behind real-time cyber safeguards, and the unguarded version is reserved for a narrow group.

Policy and enforcement. Google's generative AI policy says not to compromise the security of others' services, including by generating content that facilitates malware or phishing. For developers, the Gemini API documentation describes adjustable safety filters, including one for dangerous content, which are off by default on current models because Google relies on the model's own behavior.

Verified route. The Fairwind Program gives access to Gemini for cyber models. Google says it prioritizes governments and partners most critical to societal resilience. Organizations that get in may grant access only to internal security, incident response or penetration testing teams. It is not a route for an individual tester or a typical consultancy.

What has been measured. A May 2026 preprint on cybersecurity refusals in AI agents is the one study we found that put Gemini beside Claude and GPT models. Given only a production web address and no scope, Gemini 3.1 Pro refused 13% of the time, against 85% to 100% for the Claude and GPT models. The authors call Gemini's result a general resistance to refusing offensive tasks and note that it also represents increased risk. Those models have since been replaced.

Later reports point the other way. In a small test published by a developer in June 2026, run against their own vulnerable app, the same Gemini 3.1 Pro scored 0 of 10 with what the author called immediate refusal for security reasons. A user on Google's developer forum reported refusals on bug bounty tasks the same month. These are individual reports.

Newest model. Google's model card for Gemini 4 Argon says it cannot rule out that the model has reached its critical capability level for cybersecurity, and that it applies safeguards in response. Its October 2026 safety post describes three layers of real-time protection that can cut off an agent mid-stream. The launch post says trusted defenders in the Fairwind Program get the model without cyber guardrails.

Price. Google AI Pro is $19.99 a month in the US, with Ultra from $99.99.

Fits: general and defensive work. Treat any report that Gemini is more permissive as a snapshot of one model version.

Grok for pentesting

Grok has a reputation for answering what others will not. The company's own documents do not support that for offensive security.

Policy and enforcement. The acceptable use policy on x.ai, effective August 14, 2026, lists hacking and phishing among prohibited activities. Unlike Anthropic's policy, its text has no stated exception for authorized security testing. The company's Frontier AI Framework, effective June 30, 2026, says it trains its models to refuse requests whose intentions are to perform cyber offense, and adds moderation filters and monitoring of production deployments.

What has been measured. The Grok 4.7 model card, dated September 21, 2026, reports results from an internal test suite run with production safeguards. Grok 4.7 complied with 3.31% to 4.02% of the harmful and dual-use requests, depending on the reasoning setting. We read those values from the card's chart. It refused between 0% and 0.31% of the benign tasks. The same table shows an OpenAI model complying with 35.7%.

Two cautions. The suite is internal, and the card does not publish its tasks. And "harmful and dual-use" are counted together, so the figure does not say how much legitimate dual-use work is declined. It does say that Grok, as shipped, is tuned to refuse in this area more than its reputation suggests.

Verified route. We found no verified-access program for security professionals on the company's site as of November 30, 2026. The model card mentions that an unrestricted configuration was provided to third-party evaluators.

Price. The pricing page lists Plus at $8 a month, Premium at $30, Super at $100 and Ultra at $200. The site and documents now carry SpaceX branding.

Fits: general work at a low entry price. There is no published route to offensive access.

What do independent tests show?

Independent tests show two things: the vendors now behave alike on exploit work, and results age within months.

Bar chart from a May 2026 preprint: share of offensive web tasks refused when the agent was given only a production address. Gemini 3.1 Pro 13%, Gemini 3 Flash 70%, Claude Opus 4.5 85%, Claude Sonnet 4.5 100%, GPT-5.2 100%, GPT-5.1 Codex 100%

Early 2026: wide differences. The May preprint above tested eight models on web offensive-security tasks. With only a production address, refusal ranged from 13% for Gemini 3.1 Pro to 100% for Claude Sonnet 4.5 and both GPT models. When the prompt added a scope and rules of engagement, six of the eight models showed near-zero refusal, and only GPT-5.2 refused often, at 62%. The scope text was never verified, which the authors treat as a weakness.

Late 2026: convergence. CyberDualEval, a preprint from November 23, 2026, ran 430 vulnerability tasks through seven closed models from Anthropic and OpenAI and three open-weight models. Five of the seven closed models refused every proof-of-concept and exploit request. They also refused 28% to 62% of the requests the authors rated safe. The paper reports that 99.5% of the closed models' recorded refusals came from provider content filters and model fallbacks.

The same paper shows why capability still matters. Anthropic's Opus 5.5 complied with only 37.6% of safe requests, the lowest rate, and succeeded 78.1% of the time when it did comply.

Verified access is not a clean fix. MobileCybench, a September 2026 preprint, found Claude Code refusing in 25.0% to 42.4% of runs despite cyber-verified access, before Anthropic's October tier changes.

Neither late-2026 paper tested Gemini or Grok, and we found no 2026 study that tests current models from all four vendors with their safeguards on. All three are preprints. We explain why this keeps happening in why dual-use AI can't tell testers from attackers.

How capable are they once access is granted?

Very capable, by the vendors' own accounts, and that is the reason they restrict access.

These figures are vendor-reported, come from different tests, and cannot be compared with each other:

Vendor Reported result Condition
OpenAI 95.0% of advanced offensive requests completed Cyber model under Daybreak Red
Anthropic 34 of 50 offensive tasks completed Opus 5.5 under Red Team Access
xAI 80.3% of CyberGym tasks reproduced Grok 4.7 with safeguards removed for testing
Google All 12 simulated end-to-end attack scenarios solved Gemini 4 Argon, Google's own tests

The xAI figure deserves a note. Its model card measures capability with safeguards switched off, a configuration ordinary users do not get.

The practical reading: if your organization can get an offensive tier, a frontier model is a strong tool. If it cannot, that capability is not available to you, whatever the model could do in principle.

Which model should you pick for security work?

Pick by your situation. For most of the work a tester does outside exploitation, any of the four is useful.

Decision guide matching five situations to a choice of AI model: approved organization, individual tester, defensive work, tight budget, and client data that must stay local

Your situation Choice Why
Organization that can be approved Claude with Red Team Access or ChatGPT with Daybreak Red The only published routes to unblocked offensive work
Individual doing defensive work Claude Defense Access or ChatGPT Daybreak Blue Open to individuals with identity checks
Individual doing offensive work None of the four No offensive tier for individuals
Reporting, tooling, code review Any of the four Not blocked work; pick on price and preference
Client data must stay local None of the four All four are hosted

Whichever you use, keep expectations current. A model that helped last quarter may block this quarter, and the reverse.

What if none of the four fits?

If none of the four fits, you have three other routes, and each has a cost.

One of the tools in the first group is ours. The AiTM AI Agent is an unrestricted AI agent for authorized security work that runs on your own machine and carries an in-scope task through.

Where does the AiTM AI Agent fit?

AiTM (aitm.io) is built for the group the four vendors serve least: individual testers and small teams doing authorized offensive work.

  • The AiTM AI Agent is an unrestricted AI agent for macOS, Windows and Linux. It plans a task, reads and edits files, runs shell and PowerShell, searches the web, drives a browser and verifies its work, in your own environment. Three permission modes, Manual, Accept-edits and Full auto, set how much it does without asking. According to AiTM, the platform keeps no transcript and no source code, and you can bring your own provider key.
  • Unrestricted AI is the chat assistant for recon, scripting, exploitation notes, CVE research and reporting. It reads images and PDFs and searches the live web.

As of November 30, 2026, the site offers a 7-day free trial of the assistant and the agent with no card needed. Paid plans run from $30 to $300 a month, with agents included from the $150 Business plan.

The limits: AiTM is a new product, paid plans are billed in Bitcoin only, and the underlying model is not disclosed, so it cannot be placed in a model comparison like this one. No independent benchmark covers it. It is for authorized, in-scope security work only, and accounts can be suspended for abuse.

FAQ

Which AI is best for penetration testing?

No general assistant is best by default. As of November 2026, ChatGPT, Claude, Gemini and Grok all restrict offensive security work on ordinary accounts. Approved organizations can unlock Claude through Red Team Access or ChatGPT through Daybreak Red. Individual testers doing offensive work need a tool built for it or a model they run themselves.

Is Claude or ChatGPT better for pentesting?

For unverified accounts they behave alike on offensive work: both block most of it. Anthropic reports 50 of 50 offensive trials blocked without verification, and OpenAI reports 1.5% of advanced offensive requests completed. Both offer an offensive tier to approved organizations only. For defensive work and code review, either is useful.

Does Grok refuse hacking questions?

Yes, by its maker's own account. The Grok 4.7 model card reports that the model complied with about 3% to 4% of harmful and dual-use requests on an internal test with production safeguards. The company's acceptable use policy prohibits hacking, and its safety framework says its models are trained to refuse cyber offense.

Is Gemini less restricted for security work?

It was in one May 2026 study, where Gemini 3.1 Pro refused offensive web tasks far less often than Claude and GPT models of the time. Later individual reports describe immediate refusals, and Google says its newest model, Gemini 4 Argon, runs behind real-time cyber safeguards. The unguarded version goes to Fairwind Program partners, mainly governments and critical infrastructure.

Can an individual pentester get verified access to any of these models?

Only to defensive tiers. Individuals can apply for Anthropic's Defense Access and OpenAI's Daybreak Blue, both with identity checks. The offensive tiers at both are for organizations. Google's Fairwind Program prioritizes governments and critical partners. We found no verified-access program on xAI's site as of November 30, 2026.

Do these models help with security work that is not offensive?

Yes. Report writing, code review, secure coding, log analysis and tooling that has nothing offensive in it are generally not blocked. Anthropic lists secure coding, log analysis, incident response and malware reverse engineering as allowed for everyone. Even so, a November 2026 benchmark found closed models refused 28% to 62% of requests rated safe.

The short version

The best AI model for pentesting depends on access. ChatGPT and Claude are strong once an organization is approved for an offensive tier, and blocked for offensive work otherwise. Gemini's cyber models are reserved for governments and critical partners. Grok is tuned to refuse cyber offense and has no published verified route. For individuals doing offensive work, none of the four is the answer.

To run authorized security work with an agent built for it, try the AiTM AI Agent or create an account.

#ai refusals#penetration testing#chatgpt#claude#ai guardrails#dual-use ai
Back to all articles