Human Reviewers' Attitudes Toward LLM-generated Security Patches: A Controlled Experiment
Emanuele Iannone, Maria Camporese, Nicolás E. Díaz Ferreyra, Gábor Antal, Péter Hegedűs, Fabio Massacci, Riccardo Scandariato
Abstract
Existing research in Automated Vulnerability Repair (AVR) has predominantly focused on developing techniques that produce more effective patches. With the rise of generative AI (GenAI) models powering AVR tools, understanding how humans perceive AI-generated security patches becomes relevant, particularly how useful and trustworthy they are considered. This paper presents a controlled experiment involving 111 Master's students from three universities and 14 professionals from three companies working in software development and cybersecurity. The experiment highlights the factors and motivations that influence human acceptance of AI-generated security patches. Participants analyzed four real-world vulnerabilities, evaluated two plausible patches for each, selected the one they believed to be the most adequate fix, and explained their choice. The two patches were generated by two LLMs, namely GPT-4o and Claude 3.7 Sonnet, though the participants were not aware of their involvement. After each selection, participants were told that one of the two originated from a human, and given the opportunity to reconsider their choice and to motivate it. The results show that, beyond correctness, participants favor patches that clearly explain how the vulnerability was fixed, preserved the original functionality, and appeared easy to install. There were also signals of a provenance-based bias: a tendency to switch from the initially selected patch to the other attributed to a human, even though all patches originated from GenAI. This bias was even explicitly admitted by some participants. Participants who acknowledged patch provenance were also more likely to switch patches; nevertheless, most neglected this information altogether. The paper concludes with recommendations for AVR researchers and tool developers on how to leverage these findings.
Create a lesson
Metadata
- Categories
- cs.CR, cs.SE
- Comments
- This work was partially supported by EU-funded project Sec4AI4Sec (grant no. 101120393)
Related papers
Real Package, Wrong Controller: Static Auditing of Vendor--Protocol Mismatches in LLM-Generated PLC Code
Shared title terminologycs.CRS M Zia Ur Rashid, Sazidul Islam Hira, Suman Rath
Enhancing Protocol Fuzzing via LLM-Generated Semantic-Aware Mutators
Shared title terminologycs.CRKeyi Wang, Yiutak Choi, Pengda Li et al.
Reinforcement Building: Toward Self-Improving Harnesses for Defensive Software Security Agents
Shared title terminologycs.CRAmine Lbath, Aurelien Delaitre, Vadim Okun et al.
Incentive-Driven Access Control Framework with Smart Contracts for Secure P2P Networks
Shared title terminologycs.CRSaurav Ghosh, Batuhan Tanrikulu, Reshmi Mitra et al.
Evaluating LLM Security Review Agents with Operationally Sourced Ground Truth
Shared title terminologycs.CRMudita Khurana, Karim Liman-Tinguiri
GATE-DT: Trust-Gated Operational Digital Twins for Secure Distributed Retail and E-Commerce
Shared title terminologycs.CRPradnil Uday Rajankar, Rohit Singh, Kshitij Sharma et al.