arXiv(opens in a new tab)cs.CROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.28802

How Much Does the Harness Matter, and for Whom? A Multi-Model Study of Context in LLM-Driven Vulnerability Discovery

Ganni Galea Curmi, Ben Wilde

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models can now find real security vulnerabilities in production code, and growing evidence suggests that the agent harness (tools, context, bundled infrastructure) substantially affects model capability (Big Sleep Team, 2024; DARPA, 2025). How much this matters, how that varies across models, and which model-and-harness pairings are worth their cost remain unclear, since most studies use few top-tier models on public, already-patched vulnerabilities they may have seen in training (Wang et al., 2025a).

We address this with a multi-model, cost-aware study using an open-source agent harness (Ubl, 2026). The harness statically screens code and uses an LLM agent to investigate candidates. A review pipeline then applies model self-revalidation, root-cause mapping, independent source review, and an isolated proof-of-concept (PoC) confirmation. We run 24 model-runner configurations on a real production codebase (codename Conduit 1^{1}) whose vulnerabilities were non-public at scan time.

We find that no single model–harness configuration covers all the observed findings. Across 265 confirmed security root causes observed, the largest two-run set covers 60.4%, and 14.3% are found by exactly one model, so complete coverage comes from a combination of models. Secondly, the value of structured program context depends on the model: moving from a minimal prompt (A0) to an engineered prompt with a CodeQL-derived call graph raises criticality-weighted yield by 20–86% for smaller and mid-tier models but only 2% for the frontier model, with the same direction of effect appearing on a held-out CyberGym subset. Thirdly, the frontier models achieve low false-report rates but not uniquely higher raw yield: strong lower-cost models can achieve similar performance at an order of magnitude lower cost. Together, these results argue against a one-size-fits-all recipe: the value of the context and tools an agent is given is a property of the model, harness, and task together, and the largest returns come from matching them.

Keywords: LLM agents; vulnerability discovery; security harness; program context; multi-model benchmarking; cost-aware evaluation

1. Introduction

Large language models have moved beyond classifying whether a snippet is vulnerable to finding and exploiting real vulnerabilities in production software (Ding et al., 2025; Ahmed et al., 2025; Glazunov and Brand, 2024; Big Sleep Team, 2024; DARPA, 2025): Google's

  1. A codename; the repository's identity is withheld for responsible disclosure (Section 15).

© 2026 G. Galea Curmi & B. Wilde.

Figure

Figure 1: Criticality-weighted security yield rises sharply for the weaker models and is essentially flat at the frontier. Per-model criticality-weighted security yield, minimal prompt (A0) vs. the engineered prompt with CodeQL-generated graph (two-run mean). This comparison changes both prompt and context. The lift declines monotonically with capability (Gemma +86%, GLM +36%, Composer +20%, GPT-5.5 +2%, within run-to-run noise). Severity weights: Critical 5, High 4, Medium 3, Low 2; correctness bugs excluded.

Project Zero coupled a model with a debugger, code browser, and executor and surfaced a memory-safety flaw in SQLite that extensive fuzzing had missed (Glazunov and Brand, 2024; Big Sleep Team, 2024); LLM-augmented fuzzing uncovered a decades-old bug in OpenSSL (Chang et al., 2024); and the DARPA AI Cyber Challenge fielded autonomous systems that discover, prove, and patch vulnerabilities; under independent scoring, these systems not only found most of the planted challenge bugs but also surfaced 18 real, non-synthetic vulnerabilities in open-source software (DARPA, 2025; Kim et al., 2025; Chin et al., 2026). A consistent lesson is that the harness around the model (its tools, context, and iterative loop) contributes as substantially to capability (Glazunov and Brand, 2024; Liu et al., 2026; Zhu et al., 2026; Nie et al., 2025); a promising harness ingredient is structured program context that turns a codebase into a queryable graph of calls, entry points, and data flow (Arciszewski, 2026; Li et al., 2024). Prior NLP work shows that effective retrieval can let smaller models rival much larger ones on some knowledge-intensive tasks (Borgeaud et al., 2021; Izacard et al., 2022), and tool or agent scaffolding can elicit behavior that unaided models lack (Yao et al., 2022; Schick et al., 2023). Whether that holds for vulnerability discovery on real code, for which models, and at what cost, has not, to our knowledge, been widely measured.

There has been considerable discussion about the release of capable offensive-security models, such as Mythos, and the risk of such models identifying exploits in critical open-source software (LiveOverflow, 2026; Carlini, 2026; Ziegler, 2026). Here we show that smaller, already-available models, given proper tools and context, can still provide valuable findings in real vulnerability discovery. Source-derived context improves the smaller models in our context experiment while in our testing we also show that low-cost models can contribute findings missed by more expensive configurations.

We believe two things make AI-driven vulnerability research hard to measure. First, many high-profile zero-day or exploit-agent studies emphasize frontier models or limited model sets (Wang et al., 2025b; Zhu et al., 2026), so we learn less about the cheaper or open-weight models a security team would be more willing to deploy. Second, many benchmarks target public, already-patched CVEs (mined from vulnerability-fixing commits or reused from known repositories). A success on public-vulnerability corpora can therefore reflect prior exposure rather than discovery, a data leakage and contamination risk recognized in vulnerability-evaluation work (Ding et al., 2025; Ahmed et al., 2025; Cheng et al., 2025; Wang et al., 2025a). Newer work such as ZeroDayBench explicitly tries to avoid this with novel vulnerability tasks (Lau et al., 2026; Feiglin and Dar, 2026), but what is still missing is a real-code, multi-model, cost-aware measurement of how much the tools and context matter, and for whom; we provide one, on a codebase whose vulnerabilities were non-public at scan time, and make the following contributions.

References (36)