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.
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 vulnerable | GPT-6.2 Astra | GPT-6.2 Astra + LeoPrevent | GPT-6 Astra |
|---|---|---|---|
| Flawed apps: hole still there at the end | 85 of 99 | 31 of 99 | 86 of 99 |
| Flawed apps: hole in the agent’s own new code | 21 of 99 | 9 of 99 | 26 of 99 |
| Real CVEs, all 64 tasks: exploit still works | 52 of 192 | 28 of 192 | not run |
| Real CVEs, 25 web tasks | 17 of 75 | 0 of 75 | 22 of 75 |
| Real CVEs, 39 C tasks | 35 of 117 | 28 of 117 | not 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.