VeilPRBench: Can Code Review Agents Catch Vulnerabilities in Pull Requests That Resolve Real Issues?
Xinhao Song, Xiaofei Yin, Yuxuan Xiao, Ji He, Lijun Li, Yan Teng, Gongshen Liu, Huijia Zhu, Jie Li
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.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI
- Comments
- 54 pages, 16 figures, 41 tables
Related papers
LegoReview: Scaling Code Review Data with Verification from Pull Request Histories
Shared title terminologycs.SERuoyu Wang, Jierun Chen, Yuxin Jiang et al.
Information Needs in Code Review: What Can an Agent's Trajectory Answer?
Shared title terminologycs.SEHannah Estes, Saba Khanmohammadi, Amirali Rayegan et al.
Residual-Guided Model Selection for Terminal-Based Coding Agents
Shared title terminologycs.SEChang Zhou, Zhaoling Chen, Qian Zhang
Don't Over-Engineer It: AI Coding Agents Write Too Much Code, and a Short Prompt Reduces It
Shared title terminologycs.SEJay Desai, Fanyou Wu, Srinivasan H. Sengamedu
Locally Correct, Globally Wrong: The Defects Humans Had to Catch in an Agent-Built System
Shared title terminologycs.SEDing Lin Lee, Jiaxin Dai, Ivonne Wijaya et al.
ProgramGen: Scalable Environment Construction for Long-Horizon Coding Agents
Shared title terminologycs.SEConghao Xiong, Chaofan Tao, Jierun Chen et al.