paper-with-me

홈 › Papers

Can Adversarial Code Comments Fool AI Security Reviewers -- Large-Scale Empirical Study of Comment-Based Attacks and Defenses Against LLM Code Analysis

2026-02-18 · Scott Thornton arxiv

AI-assisted code review is widely used to detect vulnerabilities before production release. Prior work shows that adversarial prompt manipulation can degrade large language model (LLM) performance in code generation. We test whether similar comment-based manipulation misleads LLMs during vulnerability detection. We build a 100-sample benchmark across Python, JavaScript, and Java, each paired with eight comment variants ranging from no comments to adversarial strategies such as authority spoofing and technical deception. Eight frontier models, five commercial and three open-source, are evaluated in 9,366 trials. Adversarial comments produce small, statistically non-significant effects on detection accuracy (McNemar exact p > 0.21; all 95 percent confidence intervals include zero). This holds for commercial models with 89 to 96 percent baseline detection and open-source models with 53 to 72 percent, despite large absolute performance gaps. Unlike generation settings where comment manipulation achieves high attack success, detection performance does not meaningfully degrade. More complex adversarial strategies offer no advantage over simple manipulative comments. We test four automated defenses across 4,646 additional trials (14,012 total). Static analysis cross-referencing performs best at 96.9 percent detection and recovers 47 percent of baseline misses. Comment stripping reduces detection for weaker models by removing helpful context. Failures concentrate on inherently difficult vulnerability classes, including race conditions, timing side channels, and complex authorization logic, rather than on adversarial comments.

📄 PDF Abstract BibTeX arXiv:2602.16741

Code (0)

등록된 구현이 없습니다.

Tasks

Vulnerability DetectionCode Generation

Similar Papers 제목 키워드 기반

FuncFooler: A Practical Black-box Attack Against Learning-based Binary Code Similarity Detection Methods

2022-08-26 · Lichen Jia, Bowen Tang, Chenggang Wu, Zhe Wang 외

The binary code similarity detection (BCSD) method measures the similarity of two binary executable codes. Recently, the learning-based BCSD methods have achieved great success, outperforming traditional BCSD in detectio…

Adversarial RobustnessCode Generation

Adversarial-Playground: A Visualization Suite Showing How Adversarial Examples Fool Deep Learning

2017-08-01 · Andrew P. Norton, Yanjun Qi

Recent studies have shown that attackers can force deep learning models to misclassify so-called "adversarial examples": maliciously generated images formed by making imperceptible modifications to pixel values. With gro…

Adversarial AttackAdversarial DefenseDeep Learningimage-classification+1

NeRFool: Uncovering the Vulnerability of Generalizable Neural Radiance Fields against Adversarial Perturbations

2023-06-10 · Yonggan Fu, Ye Yuan, Souvik Kundu, Shang Wu 외

Generalizable Neural Radiance Fields (GNeRF) are one of the most promising real-world solutions for novel view synthesis, thanks to their cross-scene generalization capability and thus the possibility of instant renderin…

Adversarial RobustnessNovel View Synthesis

No more Reviewer #2: Subverting Automatic Paper-Reviewer Assignment using Adversarial Learning

2023-03-25 · Thorsten Eisenhofer, Erwin Quiring, Jonas Möller, Doreen Riepel 외

The number of papers submitted to academic conferences is steadily rising in many scientific disciplines. To handle this growth, systems for automatic paper-reviewer assignments are increasingly used during the reviewing…

Topic Models

StyleFool: Fooling Video Classification Systems via Style Transfer

2022-03-30 · Yuxin Cao, Xi Xiao, Ruoxi Sun, Derui Wang 외

Video classification systems are vulnerable to adversarial attacks, which can create severe security problems in video verification. Current black-box attacks need a large number of queries to succeed, resulting in high …

Adversarial AttackClassificationDenoisingStyle Transfer+1