ChainVul: A Root-Cause-Chain-Based Vulnerability Benchmark for Precise LLM and Agent Assessment
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.
- Link
- https://doi.org/10.48550/arxiv.2611.37035
- Found by
- DataCite
- Authors
- Tiantian Sun, Yuyang Xie, Jinlong He, Shixin Zhang, Jiwei Yan, Jun Yan, Jian Zhang
- Organizations
- School of Advanced Interdisciplinary Sciences, University of Chinese Academy of Sciences, Beijing, China, Institute of Software, Chinese Academy of Sciences, Beijing, China, Beijing Jiaotong University, Beijing, China, Beijing Key Laboratory of Intelligent Software Engineering, Beijing, China, University of Chinese Academy of Sciences, Beijing, China, Key Laboratory of System Software, Institute of Software, Chinese Academy of Sciences, Beijing, China
- Categories
- benchmark, evaluation, agentic
- Published
- 2026-11-30
- Last seen by the radar
- 2026-12-01
- Citations
- 0
- Downloads
- 0
- Views
- 0
- Radar score
- 48.12 / 100 (how it is scored)
- Why it scored so
- Matched: agent~benchmark, benchmark, evaluat; Primary record: DataCite
- Related links
- https://arxiv.org/abs/2611.37035