AIセキュリティポータル K Program

VeilPRBench: Can Code Review Agents Catch Vulnerabilities in Pull Requests That Resolve Real Issues?

Share
Abstract
Code review is a critical line of defense for software security. As the volume of pull requests (PRs) grows, automated review agents increasingly support review and merge decisions. However, a PR can genuinely resolve its reported issue while introducing logic vulnerabilities. To quantify this risk in automated code review, we introduce VeilPRBench, a benchmark for evaluating whether code review agents block such PRs while accepting benign repairs. The benchmark contains 192 manually constructed attack PRs across 14 open-source projects and 29 historical issue families, together with 135 benign repairs covering 13 projects and 27 families, across Python, C, and JavaScript. Independent functional tests verify the intended repairs, and executable security checks establish the target consequences of the attacks against applicable reference states. Benign repairs pass the prescribed functional and security checks within their validation scope. Our evaluation of 16 deployed review workflows reveals a substantial security gap, attack blocking averages only 25.0%, and the highest blocking rate is 55.2%. VeilPRBench provides an executable testbed for evaluating and improving the security of automated code review.
Expectations, outcomes, and challenges of modern code review
Alberto Bacchelli, Christian Bird
Published: 2013
Identifying the characteristics of vulnerable code changes: an empirical study
A. Bosu, J. C. Carver, M. Hafiz, P. Hilley, D. Janni
Published: 2014
DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detection
Yizheng Chen, Zhoujie Ding, Lamya Alowain, Xinyun Chen, David Wagner
Published: 2023.4.2
Automated code review in practice
Umut Cihan, Vahid Haratian, Arda İçöz, Mert Kaan Gül, Ömercan Devran, Emircan Furkan Bayendur, Baykal Mehmet Uçar, Eray Tüzün
Published: 2025
Agentdojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents
E. Debenedetti, J. Zhang, M. Balunovic, L. Beurer-Kellner, M. Fischer, F. Tramèr
Published: 2024
On the impact of security vulnerabilities in the npm package dependency network
Alexandre Decan, Tom Mens, Eleni Constantinou
Published: 2018
Detlogic: A black-box approach for detecting logic vulnerabilities in web applications
Ganesan Deepa, P Santhi Thilagam, Amit Praseed, Alwyn R Pais
Published: 2018
Ac/c++ code vulnerability dataset with code changes and cve summaries
J. Fan, Y. Li, S. Wang, T. N. Nguyen
Published: 2020
Toward automated detection of logic vulnerabilities in web applications
Viktoria Felmetsger, Ludovico Cavedon, Christopher Kruegel, Giovanni Vigna
Published: 2010
AI control: Improving safety despite intentional subversion
Ryan Greenblatt, Buck Shlegeris, Kshitij Sachan, Fabien Roger
Published: 2024
Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection
Kai Greshake, Sahar Abdelnabi, Shailesh Mishra, Christoph Endres, Thorsten Holz, Mario Fritz
Published: 2023.2.24
Repoaudit: An autonomous LLM-agent for repository-level code auditing
Jinyao Guo, Chengpeng Wang, Xiangzhe Xu, Zian Su, Xiangyu Zhang
Published: 2025
Automating code review activities by large-scale pre-training
Z. Li, S. Lu, D. Guo, N. Duan, S. Jannu, G. Jenks, D. Majumder, J. Green, A. Svyatkovskiy, S. Fu, et al.
Published: 2022
Crscore: Grounding automated evaluation of code review comments in code claims and smells
Atharva Naik, Marcus Alenius, Daniel Fried, Carolyn Rose
Published: 2025
Logiceval: A systematic framework for evaluating automated repair techniques for logical vulnerabilities in real-world software
Syed Md Mukit Rashid, Abdullah Al Ishtiaq, Kai Tu, Yilu Dong, Tianwei Wu, Ali Ranjbar, Tianchang Yang, Najrin Sultana, Shagufta Mehnaz, Syed Rafiul Hussain
Published: 2026
Adversarial Testing of Automated Program Repair Agents for Security Vulnerabilities
Fares Trad, Simin Chen, Hung Viet Pham, Gias Uddin, Baishakhi Ray
Published: 2026.9.15
Towards automating code review activities
Rosalia Tufano, Luca Pascarella, Michele Tufano, Denys Poshyvanyk, Gabriele Bavota
Published: 2021
Ai-assisted assessment of coding practices in modern code review
Manushree Vijayvergiya, Małgorzata Salawa, Ivan Budiselic, Dan Zheng, Pascal Lamblin, Marko Ivankovic, Juanjo Carin, Mateusz Lewko, Jovan Andonov, Goran Petrović
Published: 2024
How to shop for free online–security analysis of cashier-as-a-service based web stores
Rui Wang, Shuo Chen, XiaoFeng Wang, Shaz Qadeer
Published: 2011
On the feasibility of stealthily introducing vulnerabilities in open-source software via hypocrite commits
Qiushi Wu, Kangjie Lu
Published: 2021
InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents
Qiusi Zhan, Zhixiang Liang, Zifan Ying, Daniel Kang
Published: 2024.3.5
Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networks
Yaqin Zhou, Shangqing Liu, Jingkai Siow, Xiaoning Du, Yang Liu
Published: 2019.9.9
Small world with high risks: A study of security threats in the npm ecosystem
Zimmermann, M., Staicu, C., Tenny, C., Pradel, M.
Published: 2019
Share