Benchmarks · GPT-6.2 Astra

GPT-6.2 Astra: trained for secure code, same security holes

We tested OpenAI’s newest model on two security benchmarks: 33 apps that already have a security hole and 64 real CVEs. We compared it with GPT-6 Astra from October; each task ran three times on its own and three times with LeoPrevent.

LeoTrace23 November 2026
Share of runs left vulnerable, lower is better. On 33 apps that already had a security hole, the hole was still there at the end in 87% of runs for GPT-6 Astra on its own, 86% for GPT-6.2 Astra on its own and 31% for GPT-6.2 Astra with LeoPrevent. On the 25 real-CVE web tasks both models ran, the original exploit still worked in 29%, 23% and 0% of runs. FLAWED APPS · HOLE STILL THERE AT THE END GPT-6 Astra alone 87% GPT-6.2 Astra alone 86% GPT-6.2 Astra + LeoPrevent 31% REAL CVES, 25 WEB TASKS · CODE STILL EXPLOITABLE GPT-6 Astra alone 29% GPT-6.2 Astra alone 23% GPT-6.2 Astra + LeoPrevent 0% 0% 25% 50% 75% 100%
Share of runs left vulnerable, lower is better. The real-CVE bars are the 25 web tasks both models ran. Both models in OpenAI’s Codex CLI, three runs per task. Full results and method.
85 of 99flawed apps GPT-6.2 Astra finished with the security hole still in place. GPT-6 Astra: 86.
0 of 75real-CVE web runs left exploitable once LeoPrevent checked GPT-6.2 Astra’s work, down from 17
58 of 129existing security flaws GPT-6.2 Astra fixed with LeoPrevent, against 15 on its own

About the same as GPT-6 Astra on our benchmarks

OpenAI released GPT-6.2 Astra on 17 November 2026 and says it added new training signals to help the model write secure code from the start (Introducing GPT-6.2 Astra and Sol). We wanted to see how much of that shows up when the model works on code that already exists.

Flawed apps. Each of our 33 challenge apps already has a security hole, as most real codebases do, and the agent is asked for a feature in the same part of the code. GPT-6.2 Astra finished with the hole still there in 85 of 99 runs. GPT-6 Astra, graded the same way, did that in 86.

Real CVEs. A.S.E takes real open-source projects, removes the function behind a published vulnerability and asks the agent to write it back. Then the original exploit runs against the result. On the 25 web tasks both models ran, the exploit got through GPT-6 Astra’s code in 29% of runs and GPT-6.2 Astra’s in 23%, which is a little better. Across all 64 tasks, including 39 C libraries and tools, GPT-6.2 Astra’s code was exploitable in 27% of runs.

Neither model was asked to fix the hole that was already in the app, and mostly they left it alone. Existing security debt is rarely part of the task, so agents tend not to touch it.

With LeoPrevent

LeoPrevent reviews the agent’s work before it calls the task done, including the code that was already there, and tells the agent what it found. It doesn’t block anything: the agent decides what to change and makes the fix in the same turn.

GPT-6.2 Astra left the hole in 31 apps instead of 85, and its exploitable code on real CVEs fell from 27% to 15% of runs. On the 25 web tasks it fell from 23% to none.

GPT-6.2 Astra also fixed more of the security debt it was given. Apart from the planted hole, the 33 apps contain 43 other known security flaws, 129 across three runs of each app. GPT-6.2 Astra fixed 58 of them with LeoPrevent and 15 on its own.

Earlier this month we ran Anthropic’s newest model through the same two benchmarks (Claude Fable 5.2). On its own, Fable 5.2 left the hole in 93 of 99 flawed-app runs and wrote exploitable code in 19% of real-CVE runs. With LeoPrevent that came down to 29 of 99 and 9%. Both of the newest models improved a lot once LeoPrevent checked their work.

Try LeoPrevent with your agent

Check our work

Download the verdict for every run, flawed apps and real CVEs, and the analysis output. Every number on this page can be recomputed from them.

Full results and method

Full results

Runs left vulnerableGPT-6.2 AstraGPT-6.2 Astra + LeoPreventGPT-6 Astra
Flawed apps: hole still there at the end85 of 9931 of 9986 of 99
Flawed apps: hole in the agent’s own new code21 of 999 of 9926 of 99
Real CVEs, all 64 tasks: exploit still works52 of 19228 of 192not run
Real CVEs, 25 web tasks17 of 750 of 7522 of 75
Real CVEs, 39 C tasks35 of 11728 of 117not run

Lower is better. Every A.S.E run had a verdict.

Compared task by task (a task counts when at least two of its three runs agree), LeoPrevent made GPT-6.2 Astra better on 19 flawed apps and worse on none, and better on 8 CVE tasks and worse on none. Across all 99 flawed-app runs, GPT-6.2 Astra left 231 known security flaws in place on its own and 106 with LeoPrevent.

How we ran it

Flawed apps. 33 public secure code review challenges: small web and system apps in several languages, each with one deliberate security flaw, plus a feature request where that kind of flaw is easy to repeat. A run counts as vulnerable when the finished app still has that kind of flaw anywhere: in the agent’s new code, or in old code it left in place. The new code was tested with a working exploit wherever the app could be run (157 of 198 GPT-6.2 Astra runs) and by code review otherwise; old code was checked against a fixed list of the flaws already in each app. GPT-6 Astra’s runs come from our October benchmark and were graded again here in the same way.

Real CVEs. 64 tasks from the public A.S.E benchmark: 25 web projects in PHP, Java and Python and 39 C libraries and tools. Each removes the function behind a published vulnerability. A run counts as exploitable when the project’s functional test passes and the benchmark’s exploit still works. GPT-6 Astra ran the 25 web tasks in October.

Agents. GPT-6.2 Astra in OpenAI’s Codex CLI 0.167.1 at medium reasoning effort, each run in its own container, on 20 and 21 November 2026. Every task ran three times on its own and three times with LeoPrevent: 582 runs in all. GPT-6 Astra also ran in the Codex CLI at medium reasoning effort.