Brifing

AI struggles to autonomously fix security vulnerabilities

Research shows only 26% of LLM-generated patches work flawlessly without human oversight.

1Low success rate of AI-generated patches

1Password's Off-by-1 Labs team analyzed 6,080 security patches generated by ChatGPT 5.5 and Claude Opus 4.8 models. Only 26% of patches completely resolved vulnerabilities without side effects. 20% fixed the original issue but altered application behavior, while 2.3% introduced new security flaws. Researchers found that even among successful patches, one-third were classified as 'fragile' solutions.

2Incorrect guidance drastically reduces success

LLM patch success heavily depends on proper guidance. With correct instructions, models achieved 65% success rate, but this dropped to 15.2% with misleading information. Human developers demonstrated better ability to detect flawed guidance. The research highlights vulnerabilities in fully automated patch generation processes and underscores the risks of incorrect initial inputs.

3FLAWED: Automated patches with embedded defects

Researchers coined the term FLAWED (Fix-Like Artifacts With Embedded Defects) to describe LLM-generated patches. The study concluded that fully automated, unreviewed patches create 'net-negative value'. When accounting for failed attempts, the average cost per successful patch was calculated at $6.74. This cost-benefit analysis challenges the economic viability of fully autonomous patching systems.

4Cognitive overload for engineers

The research warns that reviewing mountains of mostly incorrect, subtly different LLM-generated patches creates significant cognitive load for engineers. This process often requires more effort than traditional human-led patching with LLM assistance. The 25% success rate of autonomous patching poses substantial long-term organizational risks. Human-in-the-loop approaches prove more efficient for vulnerability remediation.

5Patch evaluation tool released

The team released FLAWED, a patch evaluation framework organizations can use to assess security fixes. This tool helps measure the quality of automated patches and detect behavioral changes or new vulnerabilities. Researchers emphasize that LLMs aren't ready for fully autonomous security remediation. The tool facilitates identification of patches that alter application logic or introduce new security issues.

6Unintended application behavior changes

20% of analyzed patches fixed vulnerabilities while unexpectedly modifying application logic - for instance, converting 'allow list' to 'deny list' functionality. These changes could cause applications to behave unpredictably. Researchers note this demonstrates LLMs' limited contextual understanding. Human oversight remains crucial to maintain intended application behavior during security updates.

7Patches that create new vulnerabilities

2.3% of patches resolved the original issue while introducing new security flaws, and 2.2% both failed to fix the vulnerability while adding new exploit paths. These outcomes reveal unexpected consequences of automated patching. Researchers attribute this to LLMs' inability to perform deep security analysis. Human review proves essential to identify and prevent such regression issues.

8Long-term risks and recommendations

The study strongly cautions against fully autonomous patching systems given their 25% success rate. Researchers recommend maintaining human oversight in LLM-assisted security remediation. Standard coding assistance with developers in control proves more effective than autonomous systems. The findings clearly demonstrate AI's current limitations in independent security vulnerability resolution.

Original article: www.theregister.com - Articles (theregister.co.uk) — Yapay zeka güvenlik açıklarını insansız düzeltmekte zorlanıyor