1. Home
  2. Knowledge Center
  3. Blog
  4. AI for pentesting: Claude, GPT, Mistral, GLM, Qwen compared
News

AI for penetration testing: Claude, GPT, Mistral, GLM and Qwen compared (October 2026)

In 2026, AI models find vulnerabilities by the tens of thousands and write exploits. Yet Claude, GPT, Mistral, GLM and Qwen are not in the same league. Here is what the numbers really say, who gets access to what, and what it changes for defending a small business.

Nestor
ByNestor
9 min read
Five AI models are compared around an isolated security testing environment.

Your security provider now advertises “AI-augmented” testing. A competitor boasts of an autonomous agent that finds flaws overnight. And attackers have access to the same tools. Five model families dominate the field: Claude (Anthropic), GPT (OpenAI), Mistral (Mistral AI), GLM (Z.ai, formerly Zhipu) and Qwen (Alibaba). They are not equal, and above all they are not distributed in the same way.

This comparison is based on public data as of mid-October 2026. It does not try to crown a champion; it aims to help you read the announcements and ask the right questions.

129,000
verified vulnerabilities found with Claude by Project Glasswing partners between April and July 2026, with more than 33,000 rated critical or high once Anthropic’s own scans are included
Source: Anthropic, 6 October 2026

Two philosophies: verified access or open weights

The first difference is not technical; it is about distribution.

Claude GPT Mistral GLM Qwen
Vendor Anthropic (United States) OpenAI (United States) Mistral AI (France) Z.ai (China) Alibaba (China)
Leading cyber models Mythos 5.1, Opus 5.5 GPT-6 Astra, GPT-5.6 Sol Large 4 (preview) GLM-5.2, GLM-5.3 Qwen 3.5
Distribution Online service Online service Online, weights announced for end of October Open weights Open weights
Cyber safeguards Strong, relaxed for verified organisations Strong, relaxed for verified organisations Moderate, relaxed for vetted partners Judged weak by NIST (GLM-5.2) Removable (modified versions in circulation)
Strength Exploitation, long reasoning Exploitation, benchmark coverage European hosting, finding and fixing flaws Vulnerability discovery Small local models

An open-weight model can be downloaded and run on your own servers: nobody sees what you ask it. That is good for confidentiality. It is also a gift to attackers, who can use it without any oversight.

What the numbers say, and their limits

Three benchmarks keep appearing in announcements: CyberGym (identifying and reproducing real vulnerabilities), ExploitBench (writing a working exploitExploitA program or technique that takes advantage of a specific vulnerability to make a system do something it should not: run code, bypass authentication, read data.) and sets of CTF challenges (ethical hacking contests). Here is the only published comparison of three leading models on the same tests:

Model Finding a flaw (CyberGym) Writing an exploit (ExploitBench)
GLM-5.3 (Z.ai) 84.5% 54.4%
Claude Mythos 5 (Anthropic) 83.8% 78%
GPT-5.6 Sol (OpenAI) 83.6% 76.5%

Since then, two models have reshuffled the deck, again according to their vendors. OpenAI says GPT-6 Astra reaches the maximum score on ExploitBench. Mistral says Large 4 scores 82% on a test that requires reproducing and then patching a real open-source vulnerability, the best score measured, and solves 93% of Cybench challenges.

Figures published by the vendors

The table comes from Z.ai’s testing, reported by CSO Online in August 2026, competitors’ scores included. The Astra and Large 4 scores are OpenAI’s and Mistral’s own. No independent body has reproduced them. Mistral also points out that Claude Opus 5.5 and GPT-6 Astra score close to zero on its test because they refuse the task: a benchmark measures safeguards too. BenchLM, which aggregates these results, declines to publish a single ranking.

Two independent studies fill in the picture, with slightly older models:

  • Complex CTF challenges. The University at Albany (SUNY) ran ten models against the 200 challenges of the NYU CTF Bench. Claude 4.5 Opus solved 59%, Gemini 3 Pro 52%, GLM-5 19.5%, GPT-5.2-Codex 18% and Qwen 3.5 (397 billion parameters) only 3.5%. The authors note that a single attempt per challenge makes the figures indicative.
  • Simple web challenges, run locally. TrustedSec ran eight classic web challenges (SQL injection, authentication bypass, file disclosure) 100 times each against a deliberately vulnerable application. The 27-billion-parameter version of Qwen 3.5, running on a single machine, passed 97.5% of attempts.

The lesson is useful: for common, well-documented flaws, a small local model is already enough. For long attacks that require chaining several steps, the gap with the best models remains huge.

Claude: exploitation, subject to access

Anthropic reserves its offensive capabilities for verified organisations. Since 6 October 2026, its Cyber Verification Program has three tiers, all including Claude Opus 5.5, Sonnet 5.5 and Mythos 5.1:

Anthropic measured the effect of these tiers on 50 attack scenarios: with Red Team Access, Opus 5.5 completed 34, as many as with no safeguards at all; with Defense Access, 46 of the 50 runs were blocked at some point. Without Red Team Access, most exploitation scenarios are therefore blocked, even for legitimate use.

GPT: a model rated “critical”

OpenAI crossed a threshold in September 2026 with GPT-6 Astra, which it rates “critical” for cybersecurity, the highest level of its risk framework. According to OpenAI, as reported in the press, Astra finds unknown vulnerabilities and exploits them without step-by-step human instructions. As a result, full access was first reserved for a few major security companies (Cisco, Cloudflare, Palo Alto Networks), and the public version declines requests that could serve a cyberattack, sometimes blocking legitimate uses along the way.

The previous model, GPT-5.6 Sol, rated “High” in July, already offered a valuable hint in its safety card: it found vulnerabilities and pieces of exploits, but could not carry out an autonomous end-to-end attack against hardened targets. Verified defenders go through the Trusted Access for Cyber programme, which reduces refusals for vulnerability analysis, reverse engineering or patch validation.

Mistral: the European choice

On 6 October 2026, Mistral AI unveiled a preview of Mistral Large 4, a model with around a trillion parameters. According to the vendor, it ranks among the top five models worldwide on the Artificial Analysis cyber index and leads open-weight models developed outside China by a wide margin. Internally, Mistral found it useful for malware analysis, vulnerability prioritisation and writing detection rules.

Three points set it apart:

  • Hosting. The model is trained and served in Mistral’s data centres in Europe, and will be able to run on a private cloud or on your own servers once the weights are published, which the vendor has announced for the end of October.
  • Safeguards. Mistral says it refuses dangerous cyber requests more often than other open models, and reserves a less moderated version for vetted partners and public authorities, with whom it is testing the model in real-world conditions.
  • Limits. It is a preview, and every cyber score published so far comes from Mistral.
Self-hosting yes, an API outside Europe with care

GLM or Mistral weights run on your own servers without sending anything to the vendor, but the largest models need data-centre-class hardware. Using an API hosted outside the European Union, in China or elsewhere, to analyse a client’s systems or data means transferring that data outside the EU, which the GDPR strictly regulates.

GLM: the Chinese surprise

GLM is the model that shook the sector most in 2026. In July, the AI evaluation centre of the US NIST (CAISI) judged GLM-5.2’s cyber capabilities to be similar to those of Claude Opus 4.6, released in February 2026. The same report notes that its safeguards allow assistance with exploit development by an autonomous agent.

GLM-5.3, launched in mid-August and released as open weights at the end of that month, posts the best CyberGym score according to Z.ai, but lags far behind on exploit writing (54.4% against 76 to 78% for Claude and GPT). The vendor itself admits that its cyber capability “developed faster than we expected”.

Qwen: the local Swiss Army knife

Qwen is not the strongest, but it is the most practical. Its small versions (9 or 27 billion parameters) can be downloaded freely and run on a single graphics card; check the licence of each version before commercial use. They shine at repetitive tasks: sorting scanner output, analysing logs, drafting remediation notes.

The flip side: modified versions with their refusals stripped out circulate freely. They are no better at security, only more compliant, and nobody vouches for how they behave.

What it changes for defending a small business

The most important point is not about providers but about attackers. Models close to the state of the art for vulnerability discovery can now be downloaded and used with no oversight. The direct consequence: the gap between a CVECVEA unique public identifier given to a known vulnerability (for example CVE-2021-44228), so that everyone can talk about the same flaw without ambiguity. being published and the first attacks is shrinking, and the everyday flaws on your exposed websites will be found faster than before.

Your provider uses AI: the questions to ask

AI changes nothing in criminal law

Unauthorised access to a computer system remains an offence under article 323-1 of the French Criminal Code, punishable by 3 years’ imprisonment and a €100,000 fine, up to 7 years and €300,000 depending on the case. An AI agent that strays outside the authorised scope makes the company that launched it liable, not the model’s vendor.

Our take

  • For an in-depth penetration test, Claude and GPT, used within their verified-access programmes, remain the only options combining strong exploitation skills with a clear authorisation framework.
  • For data that must not leave Europe, Mistral Large 4 is now a credible option, pending independent evaluations.
  • For data that must not leave your premises, a self-hosted model (Mistral or GLM for power, Qwen for a light footprint) is a sound answer, provided you surround it with your own controls.
  • In every case, AI speeds up discovery; it replaces neither the expert who validates, nor the written authorisation, nor the retest.

KrakenShield’s non-destructive penetration test, launched from the console on a domain whose ownership you have proved and under your authorisation, lets you regularly check what a well-equipped attacker would see of your websites (see what it covers). And should an attacker get through anyway, our article Ransomware attack: what to do covers the first hours. To understand everything AI changes, in attack as in defence, read the AI and cybersecurity chapter of “Cyber A to Z”.

Key takeaways

  1. For finding vulnerabilities, the best closed and open models are now neck and neck, according to published figures. For writing an exploit that works, Claude and GPT keep a clear lead.
  2. Claude and GPT reserve their offensive capabilities for verified organisations. Mistral, GLM and Qwen publish their weights: their models run on your servers, and on attackers’ too.
  3. Mistral Large 4 is the first European model on a par with the best in cybersecurity, and it is hosted in Europe: a serious option when data must not leave the EU.
  4. Most scores are published by the vendors themselves, on different benchmarks: read them as trends, not as a league table.
  5. Attackers now have near state-of-the-art tools with no oversight: the gap between a flaw being published and being exploited is shrinking, so patch faster.
  6. If your penetration testing provider uses AI, ask which model, where your data goes and who validates each finding before it reaches the report.

Frequently asked questions

What is the best AI model for cybersecurity in 2026?

There is no single winner. For writing exploits, GPT-6 Astra and Claude Mythos lead, but full access is reserved for verified organisations. For finding and fixing flaws, Mistral Large 4 and GLM-5.3 report comparable scores. The right choice depends on the use case, the access framework and where your data is allowed to go.

Can ChatGPT or Claude be used for a penetration test?

Yes, on two conditions. First, written authorisation from the owner of the systems, as for any test. Second, the right level of access: in standard use, both refuse most exploitation requests. Anthropic and OpenAI run verified-access programmes for security teams and penetration testing firms.

Is Mistral a good option for a European business?

For confidentiality, yes: Mistral Large 4 is trained and served in Mistral’s European data centres, and its weights should let you install it on your own servers. Its cybersecurity scores are among the best announced, but they are the vendor’s own. As with any model, have an expert validate every result.

Are Chinese models such as GLM or Qwen dangerous?

The model itself sends nothing anywhere if it runs on your own servers. The risk comes from two things: using the vendor’s hosted API for client data, which is a transfer outside the European Union, and weak safeguards, which any attacker can take advantage of since the weights are public.

Will AI replace penetration testers?

Not in the near term. The best models find many flaws and are starting to exploit them on their own, but you still need an expert to verify, measure real impact, stay within the authorised scope and explain the fixes to management.

Is an AI-assisted penetration test legal?

Yes, provided it is authorised in writing by someone with authority over the systems. The tool changes nothing in criminal law: an AI agent that strays outside the scope makes whoever launched it liable.

Sources

Go furtherAI and cybersecurityCyber A to Z, chapter 20

More from the blog

From theory to practice

So how does your system measure up?

Create your account and get an A+ to F grade for your domains’ encryption in minutes, with every finding explained and the fix to apply.

Run the audit from your account: an A+ to F grade for your domains’ encryption in minutes, with every finding explained and the fix to apply.

Belinda

Contact us

A question, a project, a partnership? Write to us: the team answers by email, usually within one business day.

Your details are only used to answer you. Do not include passwords or vulnerability details.