Manuscript Offprint

arXiv:2610.38617

How Deterministic SAST and AI Security Agents Divide the Work: Coverage, Harness Policy and Cost in Snyk VulnBench 2.0

Liran Tal, Chris Liu, Charlotte Fereday, Sebastian Roth, Brian Clark

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

Abstract

Security teams now point AI coding agents and AI security harnesses at their applications. We ask what these engines find that deterministic static application security testing (SAST) does not, and what they miss that SAST catches. VulnBench 2.0 is a benchmark of 108 hand-curated, attacker-reachable vulnerabilities in 20 open-source web applications written in Go, JavaScript/TypeScript, Python and Java; 62 of the vulnerabilities flow across more than one file. A finding is credited only if it locates the vulnerability's attacker-controlled source and its dangerous sink, each within two lines. We evaluate nine productized configurations under the same blind protocol: the Snyk Code static analyzer, Claude Code's /security-review with three model and effort settings (one with the Snyk MCP server), Codex Security with GPT-5.6 Luna, GPT-5.6 Terra and GPT-5.6 Sol, and the DeepSec scanner with two model backends. Snyk Code reached 82.4% macro recall (89 of 108) and Claude Code with Opus 5 at xhigh effort 79.3% (85 of 108); they disagree on only 28 vulnerabilities, split 16 to 12, a gap this corpus is too small to tell apart from chance. In this study neither engine was sufficient alone. Snyk Code contributed coverage no AI configuration reproduced, the AI configurations contributed cross-file and logic findings Snyk Code missed, and together the two reached 101 of 108, the ceiling of all seven comparable configurations combined. The AI configurations also reported at least seven real vulnerabilities in scored classes that the reference set did not contain and Snyk Code did not report. What an AI engine misses depends on its harness as much as on its model: Claude Code's built-in review policy excludes or restricts three vulnerability classes, and in a supplementary run on 19 of the 20 applications the same model without that policy matched 16 of 20 vulnerabilities in those classes instead of 9; Codex Security with GPT-5.6 Sol located 80 vulnerabilities at file level but 34 at the line level; DeepSec's model-free file selection kept a file from only 56 of the 108 vulnerable flows. Coverage and cost were only loosely related. The harness, fixtures, reference sets and all run data are public.

1 Introduction

AI coding agents now review code before people do, and several vendors ship agentic harnesses built specifically for security review. Security teams therefore face a practical choice that earlier benchmarks answer only in part: when an AI engine is pointed at a real application, what does it find that a deterministic static analyzer does not, and what does it miss that the analyzer catches? We lead with recall, because the question practitioners ask of a scanner is whether it finds the vulnerabilities that are actually there; precision and cost are reported beside it.

Head-to-head comparisons of SAST tools and language models already exist. They report that language models detect more vulnerabilities at the cost of more false positives, and that combining the two families helps [11, 27]. Most of them call language models directly, rather than scoring the packaged security tools that teams actually run, such as an agent's built-in review command or a vendor's scanning harness; credit a finding for naming the right vulnerability type or file, and rely on ground truth that is either derived from a tool or limited to one language. Our own predecessor, VulnBench JS 1.0 [24], measured how repeatably Claude Code found the vulnerabilities in ten small JavaScript applications. It used Snyk Code's findings as the reference set and credited a match by vulnerability type alone, and it named the next steps: application-scale fixtures, an independent ground truth, and stricter scoring.

VulnBench 2.0 takes those steps. It changes four things.

  • Application-scale fixtures. Twenty open-source web applications in four language families, with 108 vulnerabilities, 62 of which flow across more than one file.

  • Curated, attacker-reachable ground truth. The reference set is not derived from any tool's findings: every vulnerability was curated as reachable by an outside attacker, with an annotated source-to-sink flow and an exploit proof of concept verified by the authors. A vulnerability class an engine does not report is therefore a real miss, not noise reduction.

  • Endpoint-aware scoring. A finding counts only if it locates the attacker-controlled source and the dangerous sink of the curated flow, each within two lines, with one finding credited to at most one vulnerability.

  • Productized harnesses. We evaluate the configurations practitioners run: the Snyk Code analyzer, Claude Code's built-in /security-review command, OpenAI's Codex Security, and the DeepSec scanner. We attribute every result to the complete harness and model configuration, never to a model alone.

Our answer is that, in this study, neither kind of engine was sufficient alone, and that the two divide the work. Deterministic SAST contributed coverage that no AI configuration reproduced; the AI configurations contributed cross-file and logic findings that SAST missed; together, Snyk Code and one AI review reached the ceiling of what all comparable configurations found. What an AI engine misses depends heavily on its harness, not only on its model. Four findings support this.

Complementarity (Section 3). Snyk Code matched 82.4% of the reference set (89 of 108) and Claude Code /security-review with Opus 5 at xhigh effort 79.3% (85 of 108). They disagree on only 28 vulnerabilities, split 16 to 12, and a corpus of this size cannot tell a gap that small from chance. Their union matches 101 of 108, the same as all seven comparable configurations combined. They contribute different vulnerabilities: Snyk Code adds 16 to the agent, mostly within single files and in classes such as open redirect, while the agent adds 12, seven of them cross-file, including the authorization classes. Snyk Code is the only one of the seven endpoint-aware configurations with unique coverage. Outside the reference set, the AI configurations reported at least seven real vulnerabilities in scored classes that the reference set did not contain and Snyk Code did not report.

Harness policy (Section 4). Claude Code's /security-review excludes regular-expression denial of service and reports prototype pollution and open redirect only at extremely high confidence. On the 20 reference vulnerabilities in those classes, Snyk Code matched 18 and Opus 5 xhigh 9; on the 81 others Opus 5 xhigh matched 71 and Snyk Code 67. In a supplementary run on 19 of the 20 applications, the same model at the same effort, given the benchmark's default audit prompt in place of /security-review, matched 16 of the 20. Codex Security with GPT-5.6 Sol located 80 vulnerabilities at file level but 34 under the two-line rule, typically pointing above the dangerous call. DeepSec's model-free scan stage queued a file from only 56 of the 108 flows before any model ran. The model still matters inside a harness: under the same harness, effort and prompt, Opus 5 matched 14 vulnerabilities that Sonnet 5 missed, against 2 the other way.

Efficiency (Section 5). Snyk Code scanned all 20 applications in 8 minutes; the comparable AI configurations took between 2.4 and 8.9 hours. A more expensive model did not buy more coverage: within Codex Security, GPT-5.6 Sol cost 35.0 times as much as GPT-5.6 Luna and matched 11 fewer vulnerabilities.

Robustness (Section 6). Snyk Code and Opus 5 xhigh remain the top two under all 20 alternative scoring policies we tested.

All authors are employees of Snyk, which develops Snyk Code; Section 7.1 describes how the corpus and reference set were built and the biases that follow.

References (26)