Evaluating LLM Security Review Agents with Operationally Sourced Ground Truth
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.
Nadia: We're looking at the paper: "Evaluating LLM Security Review Agents with Operationally Sourced Ground Truth".
Title and authors: Nadia: So we're looking at this paper called "Evaluating LLM Security Review Agents with Operationally Sourced Ground Truth". It sounds pretty practical, focusing on making sure these AI agents actually work in the real world, not just in some lab setting.
Elias: Yeah, that's the core idea. They want to move past fake tests and look at how these agents perform against actual vulnerabilities that exist in a company's own code.
Priya: It’s interesting because most benchmarks use stuff from public bug bounty reports or CVE databases, which means they miss the specific ways vulnerabilities pop up inside a particular codebase.
Nadia: Exactly. This paper suggests we need to test these agents against patterns that are actually dominating a specific production codebase, which is way more relevant for deployment decisions.
Elias: It sets up this framework by grounding the evaluation in an organization’s own vulnerabilities and introducing two different ways to test the agents.
Priya: And they also mention using trace-level behavior analysis to see not just if something failed, but *how* it failed when a model misses something.
The paper's summary: Nadia: They build this dataset by taking confirmed vulnerabilities and exploiting a natural property of code rooted issues—a vulnerability must exist right before the fix merges and then disappear right after.
Elias: That’s how they derive the ground truth for their evaluation, using data from bug bounty submissions, penetration testing findings, and internal engineer reports.
Priya: So they are creating a shared foundation from which both a blameful and a blameless dataset can be built from these real-world security flaws.
Nadia: They then use two complementary strategies for testing: the blameful strategy shows the agent on the pull request that introduced the known vulnerability, kind of like what happens in a CI/CD pipeline.
Elias: And they have the blameless strategy, which presents an already vulnerable state in a repository, reflecting scanning existing code rather than just reviewing new changes.
Priya: It’s smart because those two strategies give you different signals for two main tasks: reviewing a pull request and searching a whole repository for existing issues.
The paper's improvements: Nadia: One big thing they suggest is this methodology can be adapted by organizations that have similar vulnerability management workflows, even though they only validated it in one organization.
Elias: They also introduce trace-level behavioral characterization across three different frontier models to show how they actually fail and what that means for deployment choices.
Priya: The paper shows these results reveal complementary strengths between model families: one model has better attacker capability reasoning, while another is stronger at exploratory search behavior.
Nadia: They also point out specific failures in models; for example, GPT-five point five shows lateral drift and a systematic blind spot for certain dangerous API patterns in the blameless setting <ref:2611.31606#pg3>.
Elias: That suggests that just looking at outcome scores isn't enough because these behavioral differences matter a lot for deployment decisions.
Conclusion: Nadia: So, the main point is that just getting an outcome score doesn't tell you the whole story about a model’s capability.
Elias: It suggests that the right deployment decision depends on which task matters most in your environment and whether chaining models with different strengths works better than using just one of them.
Priya: The paper provides a principled way to navigate those tradeoffs between how you set up the evaluation strategy, what configuration you use for the model, and how you build that ground truth data.
Nadia: It also clarifies that this specific framework measures recall only and leaves the assessment of precision to other evaluations.
Elias: And they flag a limitation: the judge agent itself is GPT-five point five, so its verdicts on its own findings might be favorably biased, and building a meta-evaluation against human labels is still an open problem <ref:2611.31606#pg3>.
Airbnb, Inc.
cs.CR
Submitted: 2026-11-23
Updated: 2026-11-23
Comments: Accepted at CAMLIS 2026; to appear in Proceedings of Machine Learning Research, vol. 349
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 85/100
The gist: Evaluating LLM Security Review Agents with Operationally Sourced Ground Truth presents an evaluation framework that grounds agent performance in an organization’s own vulnerabilities to determine…
Key concepts
- Operationally Sourced Ground Truth
- The evaluation uses actual security flaws found in real production systems (from bug bounties, penetration tests, etc.) as the 'correct answers.' This grounds the performance measurement in what actually happens in an organization's environment, making the results more relevant than generic benchmarks.
- Blameful vs. Blameless Strategy
- These are two ways to test agents. The blameful strategy tests if an agent can find a flaw in a specific pull request (like during CI/CD). The blameless strategy tests if an agent can find existing vulnerabilities in the whole codebase, allowing for broader exploration.
- Trace-Level Behavioural Characterisation
- This involves watching *how* the LLM processes information step-by-step, not just the final answer. This reveals underlying failure modes, such as one model showing strong reasoning and another showing better search capabilities across different security tasks.
Terminology
Summary
Evaluating LLM Security Review Agents with Operationally Sourced Ground Truth presents an evaluation framework that grounds agent performance in an organization’s own vulnerabilities to determine if they actually work in production. p. 0<ref:2611.31606#pg5>. This methodology addresses limitations of existing benchmarks by deriving ground truth from operational security data and analyzing trace-level behavior to explain performance differences between frontier models. p. 0<ref:2611.31606#pg3>.
Dataset Construction Methodology
The paper introduces a dataset construction approach that derives evaluation ground truth directly from confirmed vulnerabilities in production systems.<ref:2611.31606#pg4>. This methodology exploits a natural temporal property of every code-rooted vulnerability: it must exist immediately before its fix merges and be absent immediately after. p. 4<ref:2611.31606#pg5>. The dataset draws from three sources of confirmed security vulnerabilities: public bug bounty program submissions, third-party penetration testing findings, and internal engineer-reported vulnerabilities. p. 5<ref:2611.31606#pg6, Our dataset draws from three sources of confirmed security vulnerabilities: public bug bounty program submissions, third-party penetration testing findings, and internal engineer-reported vulnerabilities>. p. 5 The filtered corpus forms the shared foundation from which both the blameful and blameless datasets are derived. p. 5<ref:2611.31606#pg6, The filtered corpus forms the shared foundation from which both the blameful and blameless datasets are derived>. p. 5
Complementary Evaluation Paradigms
The evaluation employs two complementary paradigms for measuring agent performance.<ref:2611.31606#pg5, Two complementary evaluation paradigms for measuring agent performance>. p. 4 The blameful strategy presents the agent with the pull request that introduced a known vulnerability, mirroring the CI/CD pipeline task. p. 4<ref:2611.31606#pg8>. The blameless strategy presents the repository state in which a known vulnerability already exists, reflecting scanning existing code. p. 4<ref:2611.31606#pg8, The blameless strategy presents the repository state in which a known vulnerability already exists>. p. 4 Together, these strategies provide complementary signals for two central tasks: reviewing a pull request and searching a repository for existing issues. p. 4<ref:2611.31606#pg4>.
Trace-Level Behavioural Characterisation
The paper applies trace-level behavioural analysis across three frontier models to reveal how they actually fail and what that means for deployment decisions.<ref:2611.31606#pg3, We apply two complementary evaluation strategies across three frontier models, going beyond outcome scores by conducting a trace-level behavioural analysis that reveals how these systems actually fail and what that means for deployment decisions>. p. 2 The results show complementary strengths between model families: one demonstrates stronger attacker-capability reasoning, while the other demonstrates stronger exploratory search behaviour. p. 4<ref:2611.31606#pg9>.
Model Performance Analysis
The experiments compare three frontier models—GPT-5.5, Sonnet 4. p. 0 p. 06, and Opus 4. p. 0 p. 07—across both strategies. p. 0<ref:2611.31606#pg12, We expanded our experiments to compare performance across three frontier models: GPT5. p. 05, Sonnet 4.6, and Opus 4.7>. On the blameful dataset, GPT-5. p. 95 achieved a discovery rate of 52%, while Sonnet 4. p. 06 achieved 32% and Opus 4. p. 0 p. 07 achieved 18%.<ref:2611.31606#pg12, GPT-5. p. 95 achieved a discovery rate of 52%, Sonnet 4. p. 06 achieved 32% and Opus 4.7 achieved 18%>. On the blameless dataset, Sonnet 4. p. 46 led at 71%, followed by GPT-5. p. 9 p. 95 at 61% and Opus 4. p. 0 p. 07 at 37%.<ref:2611.31606#pg13, On the blameless dataset, Sonnet 4. p. 46 led at 71%, followed by GPT-5.5 at 61% and Opus 4.7 at 37%>.
Key Behavioral Insights
Trace analysis reveals that every model explores approximately twice as deeply in the blameless setting as in the blameful setting.<ref:2611.31606#pg16>. Opus 4.7’s low blameful discovery rate is driven by an early-stop rate of 68% on misses. p. 1<ref:2611.31606#pg17>. Trace analysis also shows that GPT-5. p. 05 exhibits lateral drift and a systematic blind spot for certain well-known dangerous API patterns. p. 1<ref:2611.31606#pg17, GPT-5. p. 95, by contrast, exhibits two distinct problems in the blameless setting. p. 8 The first is lateral drift: rather than deepening analysis of the primary vulnerable file, it reads adjacent files containing no security-relevant code and exhausts its tool call budget>. p. 1
Conclusion and Implications
The paper concludes that outcome-only scoring can mischaracterise model capability by failing to account for behavioural differences.<ref:2611.31606#pg3>. The right deployment decision depends on which task matters most in your environment and whether chaining models with different strengths outperforms either alone.<ref:2611.31606#pg20>. The framework provides a principled foundation for navigating tradeoffs between evaluation strategy, model configuration, and ground truth construction. p. 0<ref:2611.31606#pg8>. The framework measures recall only, leaving precision assessment to complementary evaluations. p. 9<ref:2611.31606#pg20>.
Future Work Directions
Future work should include constructing deliberately insecure pull requests against real production repositories.<ref:2611.31606#pg7>. A larger dataset would also unlock more rigorous prompt optimisation with a held-out test split. p. 3<ref:2611.31606#pg7>. Furthermore, investigating whether the judge applies consistent scoring standards across different framing styles is necessary. p. 0<ref:2611.31606#pg20, it is worth investigating whether the judge applies consistent scoring standards across both framing styles>. p. 3 The framework should be replicated on a different organization's operational security data to validate generalisation.<ref:2611.31606#pg20>.
Limitations of the Study
The most significant limitation is dataset scale and composition.<ref:2611.31606#pg20>. The corpus inherits discovery biases from its three source channels, meaning model ordering may differ elsewhere. p. 5<ref:2611.31606#pg5>. Additionally, the framework measures recall only and does not measure precision. p. 9<ref:2611.31606#pg20, Our framework measures recall only. p. 9 The judge is GPT-5. p. 95, which introduces potential bias in its verdicts on its own findings that has not been measured yet >
Judge Reliability Concerns
The Judge agent is GPT-5.5, and its verdicts on its own findings may be favorably biased. p. 8<ref:2611.31606#pg20, The Judge is GPT-5. p. 95, which is also one of the models under evaluation, so its verdicts on its own findings may be favourably biased>. p. 9 The 7 unknown verdicts accumulated by Sonnet 4. p. 86 suggest the judge struggles with certain finding styles. p. 3<ref:2611.31606#pg20, the 7 unknown verdicts accumulated by Sonnet 4. p. 86 suggest the judge struggles with certain finding styles>. p. 3 Building a meta-evaluation of judge accuracy against human labels is an open problem. p. 3<ref:2611.31606#pg20, Building a metaevaluation of judge accuracy against human labels, and understanding whether the judge applies consistent scoring standards across different models’ finding styles, remain open problems>.
Evaluation Strategy Tradeoffs
The two evaluation strategies offer different signals regarding ecological validity and construction cost.<ref:2611.31606#pg4>. The blameless strategy reflects scanning existing code for vulnerabilities that were introduced before automated review was in place. p. 7<ref:2611.31606#pg4>. Organizations should maintain both strategies to use blameless evaluation for rapid iteration and blameful evaluation for measuring performance on the CI/CD interception task specifically. p. 7<ref:2611.31606#pg4>.
Prompt Design Differences
The two prompts have distinct structural implications for agent behaviour.<ref:2611.31606#pg9>. The blameful prompt’s narrower scope and stricter filtering produce more conservative output appropriate for production PR review. p. 8<ref:2611.31606#pg9>. Conversely, the blameless prompt’s broader mandate drives deeper exploration and more findings per instance. p. 8<ref:2611.31606#pg9>. The blameful prompt is designed for PR-time review, while the blameless prompt is designed for full-codebase audit. p. 8<ref:2611.31606#pg9>.
Model Strengths Summary
The evaluation shows that every model explores approximately twice as deeply in the blameless setting as in the blameful setting.<ref:2611.31606#pg9>. Sonnet 4.6 appears to be a stronger explorer than a security reasoner, excelling at broad pattern search across a codebase. p. 4<ref:2611.31606#pg18, Sonnet 4. p. 06 appears to be a stronger explorer than it is a security reasoner: it excels at broad pattern search across a codebase but struggles with reasoning about whether a specific code change introduces an exploitable risk>. p. 1 GPT-5.5 demonstrates stronger attacker-capability reasoning while Sonnet 4. p. 4 p. 46 and Opus 4. p. 0 p. 07 demonstrate stronger exploratory search behaviour. p. 4<ref:2611.31606#pg19, GPT-5. p. 95 demonstrates stronger attacker-capability reasoning while Sonnet 4.6 and Opus 4.7 demonstrate stronger exploratory search behaviour>. p. 4 Neither strength dominates universally across both tasks. p. 6<ref:2611.31606#pg20>. The right deployment decision depends on which task matters most in your environment. p. 1<ref:2611.31606#pg8>.
Summary of Findings
The core finding is that outcome-only scoring can mischaracterise model capability by failing to account for behavioural differences.<ref:2611.31606#pg3>. Trace-level analysis reveals that Sonnet 4. p. 26 produces real, specific security issues on most missed instances in the blameless setting. p. 8<ref:2611.31606#pg17, Sonnet 4. p. 06 produced at least some findings on all of its 9 missed blameless instances>. p. 8 GPT-5.5 exhibits lateral drift and a systematic blind spot for certain dangerous API patterns. p. 0<ref:2611.31606#pg18>. The paper provides a principled foundation for selecting the evaluation strategy, model configuration, and ground truth construction approach that fits organizational reality. p. 0<ref:2611.31606#pg8>. The methodology is adaptable by other organizations with similar workflows. p. 0<ref:2611.31606#pg3>.
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Ground truth construction from operational security data allows evaluation to be
grounded in an organisation’s own vulnerabilities,
which means testing agents against patterns dominating a specific production codebase rather than generic ones. -
The blameful strategy, which asks
whether the agent can find a vulnerability in the pull request that introduced it,
directly mirrors the task of reviewing a pull request before it merges in a CI/CD pipeline. -
The blameless strategy allows for rapid iteration by not requiring blame attribution, enabling faster prompt improvement cycles on existing code states where a known vulnerability already exists.
-
Trace-level behavioural characterisation reveals complementary strengths: one model demonstrates
stronger attacker-capability reasoning, completing the chain from an observed code anomaly to a concrete exploit scenario,
while another showsstronger exploratory search behaviour.
-
The evaluation pipeline uses a two-agent structure where the Security Engineer produces structured findings (SARIF JSON) and the Judge determines if those findings would have
substantially mitigated the issue
based on the original vulnerability description. -
Prompt optimisation can be performed iteratively by having a separate LLM examine traces of missed vulnerabilities and
propose targeted changes that might address the observed failure patterns.
-
The blameful prompt is designed for PR-time review, applying
stricter false positive filtering
and instructing the agent toprefer missing theoretical issues over generating noise,
leading to more conservative output appropriate for production. -
The blameless prompt mandates a full-codebase audit, using a methodology that includes
reconnaissance to map all entry points, sinks, and trust boundaries; taint analysis tracing data flows from user-controlled sources to dangerous operations; and an authorisation audit.
-
Trace analysis shows that for some models, such as GPT-5.5 in the blameless setting, there is a
systematic blind spot for certain well-known dangerous API patterns,
indicating a gap in itsinternalised security rule set
compared to other models.
Sources
- Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Models
- Mutation-Guided LLM-based Test Generation at Meta
- A Survey on LLM-as-a-Judge
- SecRepoBench: Benchmarking Code Agents for Secure Code Completion in Real-World Repositories
- An Insight into Security Code Review with LLMs: Capabilities, Obstacles, and Influential Factors
- LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks
Related papers
- RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities
- Introducing the Generative Application Firewall (GAF)
- Opal: Private Memory for Personal AI
- Fuel as Identity: Authenticating Inter-Satellite Laser Links after Total Key Compromise
- Merkle Trees Minimize Verifier Complexity in the ROM
- VulCPE: Context-Aware Cybersecurity Vulnerability Retrieval and Management