Superseded release · JS 1.0

Can LLMs find the same bugs twice?

A controlled study of how repeatably agentic LLM security reviews find vulnerabilities in the same JavaScript code, prompt, and benchmark harness.

300
scans
10
projects
6
configurations
5
repetitions

Research question

Reliability starts with recurrence

If the same agent sees the same vulnerable code twice, does it report the same security issues twice?

JS 1.0 measures repeated behavior under controlled conditions. Ten inspectable JavaScript projects were reviewed by six configurations, five times each, using unchanged code, prompts, and harness settings.

Snyk Code supplies the deterministic reference set. The resulting Snyk-reference metrics describe agreement with that set; they do not claim exhaustive vulnerability-detection accuracy.

Benchmark design and configurations

Six configurations, repeated under the same conditions

Five Claude configurations ran through the same agentic harness. Snyk Code supplied deterministic reference reproduction. Each configuration ran every one of the ten projects five times.

Published configuration scorecard. Activate a metric heading to sort.
Configuration
Snyk Code SASTDeterministic reference reproduction100.0%0.0 pp100.0%100.0%14.8 s0N/A
Claude Opus 4.6 HighModel via agentic harness75.2%0.3 pp68.2%89.8%53.8 s66,929$0.125
Claude Opus 4.6 MediumModel via agentic harness75.4%0.2 pp68.0%91.5%27.3 s51,574$0.063
Claude Opus 4.7 MaxModel via agentic harness68.8%2.2 pp71.4%69.6%37.4 s95,969$0.356
Claude Sonnet 4.6 HighModel via agentic harness64.9%3.5 pp81.3%58.6%94.8 s74,240$0.132
Claude Sonnet 4.6 MediumModel via agentic harness67.4%0.9 pp80.9%62.6%59.3 s56,992$0.086

Macro average across 10 fixtures and 5 repetitions · Dataset 1.0.0 · Snyk VulnBench JS 1.0

Interpretation boundary: Snyk Code’s 100% row is deterministic reproduction of the reference set it defines. It is not a universal accuracy result.

Central result

Matched findings were stable. Extra reports varied.

The recurrence distribution shows a clear contrast between findings that aligned with the Snyk Code reference set and reports outside it.

Unmatched findings can include false-positive-shaped reports, adjacent comments, or valid product-gap candidates. They require inspection.

134 of 158 · Reference-matched findings seen in all five runs

View exact recurrence values
Finding groupCountShare
Reference-matched findings seen in all five runs134 of 15884.8%
Unmatched findings seen in all five runs22 of 16113.7%
Unmatched findings seen in only one run80 of 16149.7%
Dataset 1.0.0Snyk VulnBench JS 1.0Unique signatures · recurrence across 5 identical runsSource: published JS 1.0 paper

Agreement and repeated-run variance

Higher agreement did not require higher variance

The stronger model configurations sit toward the upper-left: higher Snyk-reference F1 with less repeated-run spread.

Agreement versus repeated-run varianceAgreement versus repeated-run variance64.9%73.7%82.4%91.2%100.0%0.0 pp0.9 pp1.7 pp2.6 pp3.5 pp●■◆⬟▲✚F1 standard deviation (percentage points)Snyk-reference F1 (%)

Snyk Code SASTF1 standard deviation: 0.0 ppSnyk-reference F1: 100.0%

ConfigurationF1 standard deviationSnyk-reference F1
Snyk Code SAST0.0 pp100.0%
Claude Opus 4.6 Medium0.2 pp75.4%
Claude Opus 4.6 High0.3 pp75.2%
Claude Sonnet 4.6 Medium0.9 pp67.4%
Claude Opus 4.7 Max2.2 pp68.8%
Claude Sonnet 4.6 High3.5 pp64.9%

Upper-left means higher Snyk-reference agreement and lower repeated-run variance.

Caveat: Reference agreement measures alignment with the Snyk Code reference set, not universal vulnerability-detection accuracy.

Snyk VulnBench JS 1.0 · Dataset 1.0.0 · Macro average across 10 fixtures and 5 repetitions · Source /data/js-1.0/published-evidence.json

Complementarity

Different systems exposed different strengths

Agentic LLM review consistently recognized familiar, high-signal exploit shapes and surfaced one likely Snyk Code product gap. Deterministic SAST was stronger at systematically enumerating repeated data-flow sinks.

The practical implication is not replacement. The evidence supports combining reasoning-oriented review with deterministic coverage, then triaging where their reports diverge.

Vulnerability-class behavior

High-signal exploit shapes were easier to recover consistently

The published class-level view separates familiar exploit patterns from systematic classes where agentic review agreed less often with the Snyk Code reference set.

Mean recall against the Snyk Code reference set by vulnerability type and configuration.
ConfigurationResource limitsCode injectionCommand injectionCSRFHardcoded credsBad sanitizationType validationInfo exposureInsecure transportOpen redirectOrigin validationPath traversalPrototype pollutionReDoSSQL injectionSSRFXSS
Snyk Code SASTDeterministic reference reproduction100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%
Claude Opus 4.6 Medium8%100%100%0%100%0%0%60%0%100%100%50%100%100%100%100%100%
Claude Opus 4.6 High8%100%100%0%100%0%0%62%0%100%100%50%100%100%100%100%100%
Claude Opus 4.7 Max30%100%100%100%100%0%80%72%0%100%100%53%100%100%100%100%70%
Claude Sonnet 4.6 Medium48%100%100%100%100%0%20%88%80%100%100%50%100%90%100%100%100%
Claude Sonnet 4.6 High45%100%100%100%100%20%0%82%80%100%100%50%100%100%100%100%100%

Interpretation: Model rows show strong agreement on familiar high-signal classes including command injection, code injection, hardcoded credentials, SQL injection, SSRF, and open redirect. Agreement is weaker for resource limits, sanitization and type validation, insecure transport, and repeated path traversal.

Caveat: Snyk Code appears at 100% because it defines and deterministically reproduces this release’s reference set—not because this table establishes universal vulnerability coverage.

Snyk VulnBench JS 1.0 · Dataset 1.0.0 · Mean reference recall across 5 repetitions · 10 projects · Source /data/js-1.0/published-evidence.json

Project-level behavior

The larger app-like fixture exposed stable incompleteness

Nightowl adds routes, uploads, attachment handling, database state, and frontend JavaScript. It is one project-level stress point, not a substitute for the full benchmark.

ConfigurationSnyk-reference F1F1 spreadRepetitions
Snyk Code SAST100.0%0.0 pp5
Claude Opus 4.6 Medium38.5%2.0 pp5
Claude Opus 4.6 High40.0%0.0 pp5
Claude Opus 4.7 Max30.7%7.9 pp5
Claude Sonnet 4.6 Medium33.9%8.2 pp5
Claude Sonnet 4.6 High29.4%4.3 pp5

Observed result: Claude Opus 4.6 High was the strongest model on JS Todo App (SQLite 4) at 40.0% Snyk-reference F1 and 0.0 percentage-point spread across five runs.

Boundary: This is one larger app-like project result, not the complete benchmark. Snyk Code’s 100% row is deterministic reference reproduction.

Snyk VulnBench JS 1.0 · Dataset 1.0.0 · Mean across 5 repetitions · Source /data/js-1.0/published-evidence.json

Efficiency

More expensive sessions did not automatically agree more

The model-only cost-quality comparison did not produce a simple spend-more, score-higher pattern. Cost, token usage, duration, agreement, and recurrence therefore remain separate measures.

Published cost estimates reflect small fixtures and the model-session assumptions documented for this release.

Inspect efficiency evidence
Cost versus Snyk-reference F1Cost versus Snyk-reference F164.9%67.5%70.1%72.8%75.4%$0.063$0.136$0.209$0.283$0.356◆✚■⬟▲Estimated model-session cost (USD)Snyk-reference F1 (%)

Claude Opus 4.6 HighEstimated model-session cost: $0.125Snyk-reference F1: 75.2%

ConfigurationEstimated model-session costSnyk-reference F1
Claude Opus 4.6 High$0.12575.2%
Claude Sonnet 4.6 High$0.13264.9%
Claude Opus 4.6 Medium$0.06375.4%
Claude Sonnet 4.6 Medium$0.08667.4%
Claude Opus 4.7 Max$0.35668.8%

Upper-left means higher Snyk-reference agreement at lower estimated model-session cost.

Caveat: Cost values reflect the tested small fixtures and the publication’s model-session pricing assumptions.

Snyk VulnBench JS 1.0 · Dataset 1.0.0 · Macro average across 10 fixtures and 5 repetitions · Source /data/js-1.0/published-evidence.json

Operational meaning

Practical implications for security teams

01

Combine reasoning with deterministic coverage

Use agentic review to surface contextual and unfamiliar patterns, while deterministic SAST systematically enumerates known data-flow sinks.

02

Measure recurrence before trusting queue shape

Repeated-run stability helps separate durable reports from one-run observations without treating recurrence as proof of validity.

03

Inspect unmatched findings instead of bulk-dismissal

Unmatched findings can be false-positive-shaped, adjacent to the reference scope, or evidence of a deterministic product gap.

Representative cases

Two SQL-shaped reports, opposite conclusions

Case inspection is necessary because the same unmatched label can describe non-executable vulnerability-shaped code or a likely reference-set gap.

False-positive-shaped report

Tigerteam: SQL-shaped code without an executable sink

25 of 25 model runs reported the SQL-shaped decoy.The helper logs a string and returns an empty array; it never sends the constructed query to a database.

function dbQuery(sql) {
  console.log("Query:", sql);
  return [];
}

This is the kind of vulnerability-shaped pattern an LLM can describe plausibly even when the required execution sink is absent.

Likely product-gap candidate

Nightowl: unmatched SQL injection with a real database sink

25 of 25 model runs reported the likely SQL injection gap.Unlike Tigerteam, this helper concatenates an identifier into an executable SQLite statement.

deleteTodo: (id) =>
  db.prepare("DELETE FROM todos WHERE id = " + id).all()

It remained unmatched because it was outside the Snyk Code reference set. That status should trigger investigation, not automatic dismissal.

Systematic coverage gap

Nightowl: stable output can still be incomplete

Claude Opus 4.6 High held a stable 40.0% Snyk-reference F1 while missing15 of 15 path-traversal opportunitiesand 10 of 15 resource-limit opportunities.

The model recognized representative high-signal issues but did not enumerate repeated vulnerable sinks as systematically as deterministic SAST.

What this does not prove

Keep the protocol boundary visible

  • Snyk Code defines the reference set; its 100% score is deterministic reproduction of that set, not universal accuracy.
  • The scorer matches by vulnerability type and does not require the same file, line, severity, or source-to-sink identity.
  • The fixtures are small JavaScript and Express projects and do not represent every production architecture.
  • Unmatched reports may include false positives, adjacent comments, or valid product-gap candidates.
  • Normalization choices affect recurrence percentages.
  • Cost values reflect small fixtures and the publication's model-session assumptions.

Continue the research trail

Inspect the evidence behind the narrative