AI Safety
Study reveals developers struggle to spot security flaws in AI-generated code
A new observational study finds that trust and lack of verification skills may be leaving developers vulnerable to dangerous vulnerabilities in code suggested by AI assistants.
Artificial intelligence coding assistants have become common tools in modern software development, but a growing body of research shows they frequently produce insecure code. A new study reveals an overlooked dimension of this problem: developers may not be equipped to catch these vulnerabilities when they review AI suggestions.
The evaluation challenge#
Security in AI-assisted development depends not just on what the AI generates, but on whether developers can identify and filter out flawed code. Researchers from a computer science lab conducted an observational study with 100 participants to understand this critical evaluation step in isolation. The study focused on how developers actually assess AI-generated code—what warning signs they notice, what reasoning guides their choices, and how their trust in AI influences their decisions.
Study design and findings#
Participants tackled four programming tasks in C, each involving linked-list implementations. For each task, they could browse through five different AI-generated suggestions, compare their security and functionality, pick one, and then modify it as needed. The researchers tracked which options participants selected and why.
The study also gathered qualitative insights: all participants completed a survey on their decision-making and AI perception, and 23 took part in deeper interviews about their choices.
Why this matters#
This research highlights a blind spot in AI-assisted development. While earlier work has measured whether developers using AI assistants ultimately produce secure code, this study isolates the evaluation phase itself—the moment when a developer must decide whether to trust, modify, or reject what an AI tool suggests. That judgment call is foundational to safe development with any form of AI tool, from auto-complete features to conversational chat interfaces to autonomous agents.
The findings suggest that developers' ability to verify security in AI-generated code may lag behind their willingness to use it.

