JP — ITmedia
Three in Four AI-Generated Security Patches Are Flawed, 1Password Study of 6,080 Tests Finds
Security2 min read
A security research team at 1Password tested whether AI-written fixes can really close software security holes. Most of the fixes they tested were flawed.
What happened
1Password's security team, called Off-by-1 Labs, published a paper in August. It checked whether AI-made "patches" (fixes for bugs) can properly close security holes. The team built a test system called FLAWED to measure this. They used Claude Opus 4.8 and GPT 5.5 on six serious, complex security holes. These holes were in Linux, Google Chrome, Spring AI, Exim, ActiveMQ, and Gemini CLI.
Key numbers
- The team analyzed 6,080 valid patches made by the AI.
- Only 26.0% (about 1 in 4) were fully correct. They fixed the hole, kept the app working, and blocked every way to attack it.
- 51.5% did not fully close the original hole.
- 20.1% closed the hole but changed how the app worked in ways no one wanted.
- 4.5% added a new, different security hole to the code. Some cases were counted in more than one group.
Why the AI failed
The AI often failed when it got bad hints. With no fix direction at all, 24.7% of patches were fully correct. But when the prompt included a fix that looked right but was wrong, the success rate dropped to 7.4%. The AI also sometimes kept following its first wrong instruction, even after its own tool checks showed the instruction was wrong. It also tended to fix only the exact route the test showed and miss nearby routes with the same flaw. It sometimes missed related code in other files.
Why it matters
More companies want AI agents to find and fix security holes on their own. This study shows that AI-made fixes often look right but fail. Teams that use AI for security fixes still need careful human checks and strong tests before they trust a patch.
What to watch
- Whether AI tools get better at closing every attack route without breaking the app.
- Whether companies add stronger tests before accepting AI-made patches.
- How security teams change their review steps as AI-written fixes become more common.
Glossary
- 1Password
- A company that makes password management tools that store and protect login details.
- Off-by-1 Labs
- The security research team at 1Password that wrote this study.
- FLAWED
- The test system the researchers built to check how well AI fixes security holes.