Evaluating LLM Security Review Agents with Operationally Sourced Ground Truth
Mudita Khurana, Karim Liman-Tinguiri
Key points
From the paper's conclusion- We present an evaluation framework grounded in an organisation's own vulnerabilities, with three contributions.
Abstract
LLM-based security review agents can reason about vulnerabilities that deterministic tools miss, but deploying them responsibly requires knowing whether they actually work. Existing benchmarks construct ground truth synthetically or from public CVE databases and are blind to the vulnerability patterns specific to a given production codebase. We present an evaluation framework grounded in an organisation's own vulnerabilities, with three contributions. First, a dataset construction methodology that derives ground truth from operational security data (bug bounty reports, penetration test findings and internally reported vulnerabilities), exploiting the property that a confirmed vulnerability must exist immediately before its fix is merged and be absent immediately after. Second, two complementary evaluation strategies: one reviewing the pull request that introduced a vulnerability and one searching a repository where it already exists. Both run through a two-agent pipeline pairing a Security Engineer agent, which reviews code without knowledge of the vulnerability, with a Judge agent that decides whether its findings would have mitigated the known issue. Third, a trace-level behavioural characterisation of how frontier models reason about these vulnerabilities. Across GPT-5.5, Sonnet 4.6 and Opus 4.7, GPT-5.5 shows higher discovery rates on the pull-request strategy (57%, 95% CI [42%, 72%]) after a round of OPRO-style improvements, and Sonnet 4.6 on the repository strategy (69%, 95% CI [56%, 81%]). Trace analysis shows the models have complementary strengths that explain these differences, and that outcome-only scoring can mischaracterise their production behaviour. The methodology relies only on artefacts that vulnerability management workflows commonly produce, though all results come from a single organisation's codebase and we have not tested how well they generalise.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Can Agentic Code Review Catch Vulnerabilities Before They Are Merged?arXiv · 2026
- AgenticVulHunter: Bringing Local Agentic Vulnerability Hunting to Your TerminalarXiv · 2026
- Right Verdict, Right Reason? An Execution-Grounded Study of Whether LLM Vulnerability Detectors Understand VulnerabilitiesarXiv · 2026
- How Much Does the Harness Matter, and for Whom? A Multi-Model Study of Context in LLM-Driven Vulnerability DiscoveryarXiv · 2026
- AI-Driven Security Code Review for Distributed Digital Services: Evidence-Centred LLM Vulnerability Detection and RepairInformation · 2026
- VAST: Compiling Grounded Vulnerability Scenarios into Verifiable, Multi-Step Environments for Evaluating LLM Red-Team AgentsarXiv · 2026