SecVulEval: Benchmarking LLMs for Real-World C/C++ Vulnerability Detection
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have shown promise in software engineering tasks, but evaluating their effectiveness in vulnerability detection is challenging due to the lack of high-quality datasets. Most existing datasets are limited to function-level labels, ignoring finer-grained vulnerability patterns and crucial contextual information. Also, poor data quality such as mislabeling, inconsistent annotations, and duplicates can lead to inflated performance and weak generalization. Moreover, by including only the functions, these datasets miss broader program context, like data/control dependencies and interprocedural interactions, that are essential for accurately understanding real-world security flaws. Without this context, detection models are evaluated under unrealistic assumptions. To address these limitations, this paper introduces SecVulEval, a benchmark designed to support fine-grained evaluation of LLMs and other detection methods with rich contextual information. SecVulEval focuses on real-world C/C++ vulnerabilities at the statement level. This granularity enables more precise evaluation of a model's ability to localize vulnerabilities, beyond simple binary classification at the function level. By incorporating rich contextual information, SecVulEval sets a new standard for vulnerability detection benchmarks in realistic scenarios. This benchmark includes 25,440 function samples covering 5,867 unique CVEs in C/C++ projects from 1999 to 2024. We evaluated the SOTA LLMs with a multi-agent-based approach. The evaluation on our dataset shows that the models are still far from accurately predicting vulnerable statements in a given function. The best-performing Claude-3.7-Sonnet model achieves 23.83% F1-score for detecting vulnerable statements with correct reasoning. Finally, we analyze the LLM outputs and provide insights into their behavior in vulnerability detection for C/C++.
Key facts. Cited by 19 papers in the map (data through 14 Oct 2026). First posted on arXiv 26 May 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 5; 2026: 14.
19 papers.
Sort:
By area:
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?cited by 4
- 2025AI Code in the Wild: Measuring Security Risks and Ecosystem Shifts of AI-Generated Code in Modern Softwarecited by 4
- 2026From SFT to RL: Demystifying the Post-Training Pipeline for LLM-based Vulnerability Detectioncited by 4
- 2026ZeroDayBench: Evaluating LLM Agents on Unseen Zero-Day Vulnerabilities for Cyberdefensecited by 4
- 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detectioncited by 3
- 2025VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimizationcited by 3
- 2026DREA: Decoupled Reasoning and Exploration Agents for Repository-Level Vulnerability Detectioncited by 3
- 2025Beyond Single Bugs: Benchmarking Large Language Models for Multi-Vulnerability Detectioncited by 1
- 2026TOSSS: a CVE-based Software Security Benchmark for Large Language Modelscited by 1
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineeringcited by 0
- 2026Seclens: Role-specific Evaluation of LLM's for security vulnerablity detectioncited by 0
- 2026ASSEMBLAGE-DEEPHISTORY: A Cross-Build Binary Dataset with Temporal Coveragecited by 0
7 more
- 2026Needles at Scale: LLM-Assisted Target Selection for Windows Vulnerability Researchcited by 0
- 2026Security in a Workflow: Exploring Role-Based Agentic Architectures for Vulnerability Handlingcited by 0
- 2026Multi-Source Cybersecurity Logs: An ATT&CK-Labeled Dataset and SLM Evaluationcited by 0
- 2026Evaluating LLMs for Real-World Web Vulnerability Detectioncited by 0
- 2026Neuro-Symbolic Reasoning for Vulnerability Detectioncited by 0
- 2026FuzzingBrain-Bench V1: Evaluating Open-Ended Bug Discovery by LLMscited by 0
- 2026Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scalecited by 0
- 2026Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scale14 Sep 2026
- 2026FuzzingBrain-Bench V1: Evaluating Open-Ended Bug Discovery by LLMs25 Aug 2026
- 2026DREA: Decoupled Reasoning and Exploration Agents for Repository-Level Vulnerability Detection15 Jul 2026
- 2026Neuro-Symbolic Reasoning for Vulnerability Detection4 Jul 2026
- 2026Evaluating LLMs for Real-World Web Vulnerability Detection19 Jun 2026
- 2026Multi-Source Cybersecurity Logs: An ATT&CK-Labeled Dataset and SLM Evaluation16 Jun 2026
- 2026Security in a Workflow: Exploring Role-Based Agentic Architectures for Vulnerability Handling12 Jun 2026
- 2026Needles at Scale: LLM-Assisted Target Selection for Windows Vulnerability Research31 May 2026
- 2026ASSEMBLAGE-DEEPHISTORY: A Cross-Build Binary Dataset with Temporal Coverage20 May 2026
- 2026Seclens: Role-specific Evaluation of LLM's for security vulnerablity detection2 Apr 2026
- 2026TOSSS: a CVE-based Software Security Benchmark for Large Language Models11 Mar 2026
- 2026ZeroDayBench: Evaluating LLM Agents on Unseen Zero-Day Vulnerabilities for Cyberdefense2 Mar 2026
7 more
- 2026From SFT to RL: Demystifying the Post-Training Pipeline for LLM-based Vulnerability Detection15 Feb 2026
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering28 Jan 2026
- 2025Beyond Single Bugs: Benchmarking Large Language Models for Multi-Vulnerability Detection26 Dec 2025
- 2025AI Code in the Wild: Measuring Security Risks and Ecosystem Shifts of AI-Generated Code in Modern Software21 Dec 2025
- 2025VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimization14 Nov 2025
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?16 Oct 2025
- 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detection14 Aug 2025
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?cited by 4
- 2026ZeroDayBench: Evaluating LLM Agents on Unseen Zero-Day Vulnerabilities for Cyberdefensecited by 4
- 2026Security in a Workflow: Exploring Role-Based Agentic Architectures for Vulnerability Handlingcited by 0
- 2026Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scalecited by 0
- 2026Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scale14 Sep 2026
- 2026Security in a Workflow: Exploring Role-Based Agentic Architectures for Vulnerability Handling12 Jun 2026
- 2026ZeroDayBench: Evaluating LLM Agents on Unseen Zero-Day Vulnerabilities for Cyberdefense2 Mar 2026
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?16 Oct 2025
- 2025AI Code in the Wild: Measuring Security Risks and Ecosystem Shifts of AI-Generated Code in Modern Softwarecited by 4
- 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detectioncited by 3
- 2025Beyond Single Bugs: Benchmarking Large Language Models for Multi-Vulnerability Detectioncited by 1
- 2026TOSSS: a CVE-based Software Security Benchmark for Large Language Modelscited by 1
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineeringcited by 0
- 2026Seclens: Role-specific Evaluation of LLM's for security vulnerablity detectioncited by 0
- 2026ASSEMBLAGE-DEEPHISTORY: A Cross-Build Binary Dataset with Temporal Coveragecited by 0
- 2026Needles at Scale: LLM-Assisted Target Selection for Windows Vulnerability Researchcited by 0
- 2026Multi-Source Cybersecurity Logs: An ATT&CK-Labeled Dataset and SLM Evaluationcited by 0
- 2026Evaluating LLMs for Real-World Web Vulnerability Detectioncited by 0
- 2026FuzzingBrain-Bench V1: Evaluating Open-Ended Bug Discovery by LLMscited by 0
- 2026FuzzingBrain-Bench V1: Evaluating Open-Ended Bug Discovery by LLMs25 Aug 2026
- 2026Evaluating LLMs for Real-World Web Vulnerability Detection19 Jun 2026
- 2026Multi-Source Cybersecurity Logs: An ATT&CK-Labeled Dataset and SLM Evaluation16 Jun 2026
- 2026Needles at Scale: LLM-Assisted Target Selection for Windows Vulnerability Research31 May 2026
- 2026ASSEMBLAGE-DEEPHISTORY: A Cross-Build Binary Dataset with Temporal Coverage20 May 2026
- 2026Seclens: Role-specific Evaluation of LLM's for security vulnerablity detection2 Apr 2026
- 2026TOSSS: a CVE-based Software Security Benchmark for Large Language Models11 Mar 2026
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering28 Jan 2026
- 2025Beyond Single Bugs: Benchmarking Large Language Models for Multi-Vulnerability Detection26 Dec 2025
- 2025AI Code in the Wild: Measuring Security Risks and Ecosystem Shifts of AI-Generated Code in Modern Software21 Dec 2025
- 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detection14 Aug 2025