Codit-Bench - Can Large Language Models Find Bugs in Code Auditing?
Abstract
Large language models (LLMs) are increasingly used in code auditing, yet their ability to find unknown bugs remains insufficiently evaluated. Existing benchmarks emphasize fixing known bugs, reviewing code changes, or exposing bugs through execution and repair. We introduce Codit-Bench to evaluate models' ability to find bugs in code auditing. An automated pipeline converts real GitHub issues and linked pull requests into tasks with bounded call graphs, behavioral specifications, and hidden ground truth. Models inspect the repository through read-only tools without execution feedback. Evaluation checks predicted faulty functions and uses LLM judges to match root-cause explanations against ground truth. Codit-Bench contains 516 tasks from 39 repositories. Evaluating 11 LLMs yields pass rates of 12.02--48.06%. In a paired comparison, bug-fixing pass rates exceed bug-finding pass rates by 48--50 percentage points, indicating that finding unknown bugs is more difficult than fixing known ones. Further analyses reveal where models struggle from code inspection to bug reporting, how stronger models outperform weaker ones, and why models fail on difficult tasks. These results highlight the need to directly evaluate LLMs' ability to find bugs in code auditing.
Create a lesson
Related papers
A Large Language Model-Based Framework for Automated Game Quest Testing
Shared title terminologycs.SEEnhong Mu, Nianyu Li, Jinyu Cai et al.
SWE-GPU-Bench: Can Language Models Solve Real-World GPU Software Engineering Tasks?
Shared title terminologycs.SEFeng Chen, Binbin Liu, Wenhan Han et al.
Solution or Skeleton? Distributional Alignment and Mode Switching in Code Language Models
Shared title terminologycs.SEShaojie Zhang, Yue Yu, Yu Zhang
What Do Explanations and Fixes Add to LLM Code Review? A Replication on Audited Benchmarks
Shared title terminologycs.SESabry E. Farrag
Automated Smoke Testing for Multi-ending Game Quests via Large Language Models
Shared title terminologycs.SEJinyu Cai, Mingyue Zhang, Nianyu Li et al.
Evaluating Code Slop in Long-Horizon Coding Agents
Shared title terminologycs.SEShubham Gandhi, Shyam Agarwal, Nachiket Kotalwar et al.