Abstract
As Large Language Models (LLMs) evolve with massive context windows, they are increasingly deployed for automated security auditing. However, existing benchmarks often lack realism or suffer from data contamination. We introduce eyeballvul, a massive, open-source benchmark designed to evaluate LLMs on repository-level vulnerability detection. By sourcing data from a continuous stream of new CVEs, eyeballvul provides a "future-proof" evaluation that reflects the complexities of real-world security research.
Introduction
Traditional vulnerability detection benchmarks typically frame security auditing as a classification task on isolated code snippets. This approach fails to capture the "needle in a haystack" nature of real-world security, where tools must scan thousands of files across an entire codebase. Furthermore, because LLMs are trained on vast public datasets like GitHub, they often exhibit inflated performance due to having "seen" benchmark vulnerabilities during training.
To address these issues, we present eyeballvul. It shifts the focus to repository-level scanning and utilizes a live pipeline to incorporate the latest vulnerabilities, ensuring models are tested on data they likely haven't encountered.
The eyeballvul Benchmark
The eyeballvul dataset is built by transforming the Open Source Vulnerability (OSV) database into a structured benchmark. As of July 2024, it encompasses over 24,000 vulnerabilities across 5,000+ repositories, totaling approximately 55GB of source code.
The benchmark employs a "Scan" approach: where possible, the entire repository is provided to the model. An LLM-as-a-judge (specifically Claude 3.5 Sonnet) is used to score model-generated "leads" against ground-truth CVE descriptions, a necessity given the natural language nature of vulnerability reports. Crucially, the benchmark is updated weekly, allowing for a "future-proof" assessment against the latest "zero-day" style vulnerabilities.
Experimental Results and Insights
We evaluated seven leading models, including the Claude 3 family, GPT-4o, and Gemini 1.5 Pro. The results highlight the significant challenge of automated vulnerability detection in the wild.
Performance and Trade-offs
Overall performance remains low, with Claude 3 Opus achieving the highest F1 score at only 14.1%. A sharp trade-off exists between precision and recall. For instance, Gemini 1.5 Pro demonstrated the highest precision (fewer false alarms) but relatively low recall, while GPT-4o showed higher recall but suffered from a high false-positive rate. Even for the most precise models, over 80% of reported vulnerabilities were false positives, underscoring the high human cost currently required to verify LLM-generated leads.
Vulnerability Types and Contamination
Models show a "superficiality bias," performing better on logic-flow vulnerabilities like SQL injection or Cross-Site Scripting (XSS) than on "deep" memory corruption issues (e.g., buffer overflows). This suggests that current models struggle with the rigorous memory management reasoning required for C/C++ security. Additionally, performance was generally higher for vulnerabilities published before model knowledge cutoffs, confirming that data contamination remains a factor in LLM evaluation.
Discussion and Future Work
The current state of LLM-based security auditing is limited by high false-positive rates and a lack of deep reasoning for complex bugs. Future improvements may come from moving beyond zero-shot prompting toward agentic workflows where models can utilize external tools like compilers, debuggers, or symbolic execution engines. Furthermore, the inherent ambiguity in many CVE descriptions suggests a natural ceiling for automated matching, highlighting the need for higher-quality ground-truth data in the security community.
Summary updated