Defeating Secure Code Review GPT Hallucinations
Analysis of when and why large language models hallucinate during automated code review, and how misleading identifier names induce errors.
Summary
LLMs in Automated Code Analysis
Large language models are increasingly used for code security analysis tasks including semantic code search, vulnerability detection, and code clone analysis. However, their probabilistic nature introduces significant risks of false positives and hallucinated conclusions.
Mechanisms of Review Hallucinations
Empirical testing shows that popular LLMs rely heavily on semantic variable and function naming conventions rather than true control-flow and data-flow semantics. Misleading or obfuscated identifier names consistently induce incorrect security assessments.
Mitigating AI Code Review Pitfalls
Understanding failure modes in LLM-assisted code review enables security engineers to design hybrid validation pipelines combining AI heuristics with deterministic static analysis tools.
Related talks
App Sec Village·27 min
Javan Rasokat · Andra Lezza
Practical insights and defensive strategies from real-world development and hardening of production LLM applications.
Briefings·26 min
Jiashuo Liang · Guancheng Li
Introduces a novel gradient-based prompt-injection technique that can generate universal triggers to manipulate open-source Large Language Model (LLM) outputs.
Eye on Tech·19 min
Security researchers examine technical aspects of Targeting AI Podcast: Writers' AI and LLM Strategy.


