(Don't) Trust, but (Don't) Verify: Developers' Attention to Security in AI-Generated Code
Hamza Khalid, Ronald E. Thompson, Alejandra Sabater, Perucy Mussiba, Kelsey R. Fulton, Daniel Votipka
Abstract
AI coding assistants are rapidly transforming software development, but are known to produce insecure code. Prior work has measured whether AI-assisted developers produce secure code, but less is known about how they evaluate AI-generated code: whether they can identify vulnerabilities, what cues they use, and how trust shapes their decisions. This evaluation step is foundational to secure development with AI, whether using auto-complete, chat tools, or AI agents. As a first step, we conducted a remote observational study with 100 participants isolating this evaluation stage. Participants were tasked with producing secure and functional code for four C linked-list tasks. For each, participants were able to cycle through five AI-generated suggestions varying in security and functionality, select one, and edit their choice into a final submission. Participants also completed a post-study survey about their decision-making and perception of AI-generated code's security and 23 completed a more in-depth interview.
Create a lesson
Metadata
- Categories
- cs.CR, cs.SE
- Comments
- To appear at IEEE Security and Privacy (S&P) '27
Related papers
Trust, but Validate the Instrument: Auditing AI-Generated RTL Verification Plans on Authored Security-Regression Proxies
Shared title terminologycs.CRHang Xiao, Chuhong Xu, Kainan Zhou et al.
The Model Proposes, the Code Disposes: A Pre-Registered Ablation of a Verifier-and-Acceptance Stage in an LLM-Orchestrated Offensive-Security Agent
Shared title terminologycs.CRTheodoros Moutesidis
Are DNSSEC Islands of Security a Practical Concern? Transport-Layer Fallbacks for Trust Recovery
Shared title terminologycs.CRAmogh R, Aditya Kulkarni, Tamal Das
Verifiable Differential Privacy for Secure Aggregation in Malicious Settings
Shared title terminologycs.CRFuyi Wang, Jiahuai Mao, Wei Song
Now You See It, Now You Don't: Manipulating Perception and Attention in Code Vulnerability Detection LLM Agents
Shared title terminologycs.CRShanquan Yang, Boyu Kuang, Chunyi Zhou et al.
SICP Industry Summit 2026-07: AI and Secure Software Development Summit
Shared title terminologycs.CRAnna Lena Rotthaler, Yasemin Acar, Stefanie Borchert et al.