ChainVul: A Root-Cause-Chain-Based Vulnerability Benchmark for Precise LLM and Agent Assessment
Tiantian Sun, Yuyang Xie, Jinlong He, Shixin Zhang, Jiwei Yan, Jun Yan, Jian Zhang
Abstract
Large language models (LLMs) and agents are increasingly adopted for vulnerability detection, yet precisely evaluating their effectiveness on real-world vulnerabilities remains challenging. Existing benchmarks suffer from two major limitations: (1) unclear boundaries of complete vulnerability relevant code contexts, and (2) coarse-grained metrics for judging detection results. These limitations hinder the reliable evaluation of vulnerability detection results produced by LLMs and agents. To address these issues, we propose an LLM- and agent-oriented approach to constructing vulnerability benchmarks and build ChainVul, which comprises 1,000 vulnerability samples. The core design of ChainVul is the extraction of Root Cause Chain (RCC), a novel representation for capturing the root cause of vulnerabilities. Based on RCC, ChainVul enables more precise evaluation through both RCC-oriented code context identification and fine-grained RCC-based assessment metrics. Our evaluation demonstrates the effectiveness of this design. In ChainVul, nearly 60% of the samples involve complex vulnerability contexts that cannot be adequately characterized by conventional patch-based annotations alone, highlighting the necessity of explicit RCC modeling. Through manual inspection, we find that the extracted RCCs achieve 87.8% key-statement coverage and 98.0% triggering-condition accuracy. We also observe that RCC-based matching improves evaluation accuracy by around 30%. Finally, we evaluate four LLMs and two agents on ChainVul, providing deeper insights into their strengths and limitations in real-world vulnerability detection scenarios.
Create a lesson
Metadata
- Categories
- cs.CR, cs.SE
- Comments
- 14 pages, 7 figures, 1 table
Related papers
Mixed-Initiative Mining of Root-Cause Analyses into Audit Priors for C/C++ Vulnerability Hunting
Shared title terminologycs.CRYuhei Kawakoya, Eitaro Shioji, Yuto Otsuki et al.
Red-Teaming the Reward: A Verifier and Benchmark for Triton Kernel Optimization Agents
Shared title terminologycs.CRPouya Shiri, Seyed Abbas Hosseini
SecRTL-Bench: Benchmarking LLMs on IP-Level RTL Vulnerability Detection, Localization, and Repair
Shared title terminologycs.CRQian Peng, Zhenwei Guo, Sibo Ma et al.
Benchmarking Open-Ended Vulnerability Discovery in Windows Kernel Binaries
Shared title terminologycs.CRJongseong Kim, Hwiwon Lee, Dongjun Kim et al.
Taming AI Agents with seL4
Shared title terminologycs.CRMaysara Alhindi
From Denial to Detour: How Recovery Hints Enable Authorization Bypass in LLM Agents
Shared title terminologycs.CRZhuotao Lian, Ming-Feng Tsai, Tomohiro Morikawa et al.