Analyze the Code, Not the Comments: Comment-Stripped Analysis Fully Defends LLM-Based Code Vulnerability Detectors Against Adversarial Comment Injection
Large language models are increasingly used to detect security vulnerabilities in source code, but recent work has shown that adversarial comments embedded in the code under review can suppress detection, causing a model to miss genuine vulnerabilities. Because these attacks operate entirely through natural-language co...