P.K. SHARMA

Cyber security intelligence, AI governance, practitioner analysis

AI Security

1Password had frontier models write 6,080 security patches. Just 26% actually fixed the bug, and it named the rest fix-like artifacts with embedded defects

Off-by-1 Labs generated 6,080 patches for six CVEs that needed real fixes. Only 26.0% fully resolved the bug. 53.9% were FLAWED, fix-like artifacts that pass the demonstrated exploit and leave the vulnerability reachable. A pipeline that merges when the exploit stops working is built to ship them.

By Parminder Kumar Sharma · · 6 min read

A small adhesive plaster stuck over a crack that clearly continues past both its ends, on a dark surface under crimson light, captioned the patch passed the test, the bug is still there, 1 in 4 AI-generated patches is a real fix

What 1Password measured

There is a comfortable assumption behind a lot of the enthusiasm for AI in security: that if a model writes a patch and the exploit no longer works, the bug is fixed. 1Password’s Off-by-1 Labs set out to test that assumption at scale, and published the result on 6 August 2026 in a paper with a pointed title, Frontier Models’ Vulnerability Patches are Often F.L.A.W.E.D.

They had two frontier, cyber-capable reasoning models generate 6,080 patches for six recently disclosed open-source CVEs, chosen specifically because each needed a real, non-trivial fix rather than a one-line change. Patches were produced in sets of twenty, across three environment configurations and nine prompt templates per vulnerability, then graded by model validators cross-checked against each other and spot-checked by humans.

A quarter are fixes. The rest are fix-shaped

The headline number is the one to sit with.

26.0%

were a full fix

Fully resolved the vulnerability without materially changing application behaviour.

53.9%

were FLAWED

Fix-Like Artifacts with Embedded Defects: did not resolve the bug, added a new vulnerability, or both.

6,080

patches graded

Generated for six recently disclosed CVEs that each needed a complex fix.

1 in 3

of the fixes were fragile

Over a third of the successful patches blocked the demonstrated exploit with a narrow check while leaving the vulnerable code in place.

Figures from Off-by-1 Labs, Frontier Models' Vulnerability Patches are Often F.L.A.W.E.D., 6,080 patches across six CVEs, two frontier reasoning models.

The acronym is the whole argument. A FLAWED patch is a Fix-Like Artifact with an Embedded Defect: it has the shape of a fix, it compiles, it often makes the demonstrated exploit stop working, and it does not fix the vulnerability. More than half the patches were like that.

What the models actually produced

Outcome of the AI-generated patchShare
A full, correct fix, behaviour unchanged26.0%
FLAWED: did not resolve it, or added a new bug, or both53.9%
Fixed the bug but changed how the application behaves20.1%
Shares of 6,080 graded patches, from the F.L.A.W.E.D. paper. The three outcomes are the study's and sum to the whole set.

Why "the exploit stopped working" is not "the bug is fixed"

The most useful part of the study is the failure mode it names. The researchers flagged over a third of the successful patches as fragile: they blocked the one exploit that had been demonstrated, with a narrow check, while leaving the vulnerable code exactly where it was.

What a fragile fix actually fixes

WHAT A FRAGILE FIX ACTUALLY FIXESAn AI patch that blocks the demonstrated exploit grades as a fix, root cause or not.vulnerable coderoot cause, unchangeddemonstrated exploit (PoC)AI patcha narrow checkPoC blockedanother path, never testedgoes around the check, reaches the root causeThe patch guards the path that was tested. The root cause, and every other path to it, is untouched.Over a third of the patches that graded as fixes were fragile like this.
Mechanism from 1Password’s study of 6,080 AI-generated patches. A fragile patch, in the researchers’ words, blocks the demonstrated exploit with a narrow check while leaving the vulnerable code sitting there. An automated grader that replays the proof of concept sees a fix.
A narrow check on the demonstrated path passes an automated grader replaying the proof of concept. The root cause, and any other path to it, is untouched.

This is why an automated pipeline is the worst possible consumer of these patches. A CI job that regenerates a patch, replays the proof-of-concept exploit, sees it fail, and merges, is doing exactly what makes a fragile patch look like a fix. The grader and the attacker are testing different things: the grader asks "does the demonstrated exploit still work", and the attacker asks "is the vulnerable code still reachable by any path at all". The FLAWED patch answers the first question and not the second.

The same story this site keeps telling

An artefact that satisfies the narrow test it was measured against, mistaken for one that answers the broad question you actually care about. It is the CWE label that is defensible but not exact, consumed as ground truth. It is the GhostSplice fragments that each pass the filter and only compose into an attack. Here the artefact is a patch, the narrow test is a single proof-of-concept, and the broad question is whether the software is actually safe to ship.

The researchers’ own conclusion is the one to quote to anyone proposing autonomous patching: understanding a patch well enough to certify its security "takes at least as much work as writing a known-good patch would have." The labour does not disappear, it moves from writing to reviewing, and the review is the hard part.

What to do

Take this with you

For anyone letting AI near vulnerability remediation

  • Never merge an AI-generated patch that no human with domain expertise has reviewed. At a 26% full-fix rate, an unreviewed AI patch has negative expected value, in the study’s framing. Treat it as a draft, not a fix.
  • Grade against the root cause, not the proof of concept. A pipeline that merges once the demonstrated exploit stops working is optimised to ship fragile patches. Require the reviewer to find the vulnerable code and confirm it is actually gone.
  • Budget the review honestly. Certifying an AI patch takes at least as much skilled effort as writing a correct one, so AI patching is not a headcount saving on the part that is scarce, which is the senior reviewer.
  • Watch for behaviour changes, not just security. One in five patches fixed the bug and quietly changed what the application does. A security fix that alters behaviour is a production incident waiting for a deploy.
  • Keep AI patching away from anything that auto-deploys. The failure mode is a patch that looks fixed, passes the test, and ships the vulnerability. An automated path from model to production is the one place that failure is most expensive.

The position

The finding is not that AI cannot write patches. It writes a full, correct fix a quarter of the time, which for a first draft is genuinely useful. The finding is that the output is fix-shaped whether or not it is a fix, and that the shape is exactly what a fast, automated remediation pipeline is built to trust. The more the pipeline removes the human, the more reliably it ships the 53.9%.

There is no model upgrade that closes this, because the gap is not competence, it is verification. A patch that stops the demonstrated exploit and leaves the bug is not a model being wrong, it is a model answering the question it was implicitly asked. Until the thing grading the patch asks "is the vulnerable code still reachable" rather than "did the exploit stop", the fix-like artifact will keep passing, and someone downstream will keep shipping it.

Sources

  1. PrimaryOff-by-1 Labs: AI-generated vulnerability patches require human review (Frontier Models' Vulnerability Patches are Often F.L.A.W.E.D.), 6 August 20261Password (Off-by-1 Labs)accessed 2026-08-26
  2. Reported byThree in four AI-generated vulnerability patches leave something brokenHelp Net Securityaccessed 2026-08-26

Share this briefing

Know someone who owns this problem? Send it to them.

Related briefings

The briefing, in your inbox

Practitioner analysis of cyber and AI security news. No vendor noise.

One email per briefing. Unsubscribe any time.