This is the authors' abstract. We don't add key points for this paper.
This paper presents a systematic analysis of security patches generated by large language models (LLMs) such as GPT-4, Claude, and DeepSeek. We compare them with human-written patches across diverse vulnerability types and programming languages, using a corpus of 2,161 patches. Our evaluation reveals that AI-generated patches show comparable effectiveness to human patches (3.72% difference, p=0.0803) but tend to fail in predictable ways, exposing them to targeted bypass attacks. Human-written patches focus on structural corrections, while AI patches often rely on minimalistic input validation. These findings highlight the risks of relying solely on LLMs for vulnerability remediation and underscore the importance of hybrid human-AI patching workflows and adversarial security testing.Our adversarial evaluation framework offers a reproducible methodology for testing the security reliability of large language models (LLMs), advancing research in safe and trustworthy AI.
Answers are grounded in this paper and cite their sources.
No takes yet. Share an insight, caveat, or question.
Mahmud et al. (2025) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: