Reference
Benchmark
Different questions get different numbers, and they are kept apart: real apps, a blind holdout the rule authors never see, and the development corpus the rules were built against. Read the limitations before you draw conclusions.
Real AI-built apps (0.7.1)#
Separately from the benchmark cases, DeployReady 0.7.0 and a pre-release build of 0.7.1 were run on 48 public apps built with AI coding tools, and the findings were checked by reading the code. Critical findings went from 896 to 231. All 231 were read by hand and 90.7% of them are real. Warnings were sampled (three per rule and severity, weighted by rule size), and only about 43% of them are real, so treat warnings as things to review. Recall on these apps is not measured yet. Details are in the 0.7.1 changelog.
Blind holdout (published 0.7.1)#
The blind holdout has 268 small cases written by an author who never sees DeployReady's source or its benchmark corpus: 158 labelled issues, and 114 cases that are safe on purpose. Labels are by issue class, each one reviewed by a second reviewer. The cases are kept private so the rules cannot be tuned to them. Scoring installs the published npm package and runs analyze <case> --json --no-ai --no-dynamic --offline, so live and active checks are not part of it.
| Version | Precision (strict) | Precision (lenient) | Recall | Severity-weighted recall | False criticals on safe cases |
|---|---|---|---|---|---|
| 0.7.1 (scored 2026-11-29) | 0.80 | 0.93 | 0.57 | 0.58 | 2 of 114 |
| 0.7.0 | 0.78 | 0.91 | 0.55 | 0.56 | 4 of 114 |
- Strict precision counts every mapped finding the author did not label, including real issues the author did not set out to plant. Lenient precision only counts the classes a case is about. The truth is in between.
- Recall of 0.57 means DeployReady missed about four in ten labelled issues. A clean scan is not evidence that an app is secure.
- A match needs the same issue class, the same file and a line within three of the label. Info findings and rules with no class mapping are not scored.
- The cases are synthetic, the taxonomy is ours, and many classes have few cases. Semgrep was not part of this run.
Earlier holdout (0.5.0, now seen)#
The holdout is 46 small, single-purpose cases: 28 vulnerable, 18 secure negatives, and 29 positive labels in 25 issue classes. CI fails if the DeployReady source references it. Three tools were run on it: DeployReady 0.5.0 (static and secrets checks only, offline), Semgrep OSS with community rules, and a plain LLM prompt.
| Tool | TP | FP | FN | Precision | Recall | F1 | Negative cases clean |
|---|---|---|---|---|---|---|---|
| DeployReady 0.5.0 | 18 | 1 | 11 | 0.95 | 0.62 | 0.75 | 17 of 18 |
| Semgrep OSS 1.187.0 (community rules) | 11 | 8 | 18 | 0.58 | 0.38 | 0.46 | 11 of 18 |
| Plain LLM (Claude Haiku, 1 run) | 28 | 19 | 1 | 0.60 | 0.97 | 0.74 | 7 of 18 |
Severity-weighted recall (critical 4, high 3, medium 2, low 1): DeployReady 0.64, Semgrep 0.39, LLM 0.96. Counting extra alerts on vulnerable cases that match no label as false positives, precision is 0.95 for DeployReady, 0.39 for Semgrep, and 0.36 for the LLM. The LLM also raised 31 such extra alerts and 58 more outside the taxonomy.
What the numbers show#
- DeployReady had the highest precision: one false positive, an xss-sink on dangerouslySetInnerHTML wrapped in DOMPurify.sanitize. It kept 17 of 18 secure cases clean.
- The LLM had the highest recall, 28 of 29 labels, and raised many false alarms: it was clean on only 7 of 18 secure cases and its precision was 0.60.
- Semgrep, with community rules only, scored lower on both. Its rules cover injection, unsafe deserialization and eval well, and have nothing for Supabase RLS, Stripe webhooks, tenant isolation, or client-exposed secrets.
- DeployReady’s recall on code it had not seen, 0.62, is far below its development-corpus recall. The development corpus overstates real-world recall.
Where DeployReady missed#
It missed 11 of the 29 labels: a Stripe webhook without a signature check, open Firestore rules, path traversal, SSRF, jwt.decode used as auth, mass assignment, an open redirect, a tenant-unscoped list (findMany() without an org filter), reflected-origin CORS with credentials, server actions without auth, and NoSQL operator injection. The run was static-only and offline, so the live and active checks were not part of it.
Per class (TP / FP / FN)#
| Class | Labels | DeployReady | Semgrep | LLM |
|---|---|---|---|---|
| client-secret-exposure | 2 | 2/0/0 | 0/0/2 | 2/2/0 |
| code-injection | 1 | 1/0/0 | 1/0/0 | 1/1/0 |
| command-injection | 1 | 1/0/0 | 1/0/0 | 1/0/0 |
| cors | 1 | 0/0/1 | 1/0/0 | 1/1/0 |
| debug-mode | 1 | 1/0/0 | 1/0/0 | 1/1/0 |
| firebase-open-rules | 1 | 0/0/1 | 0/0/1 | 1/0/0 |
| hardcoded-secret | 1 | 1/0/0 | 1/0/0 | 1/0/0 |
| idor | 2 | 1/0/1 | 0/0/2 | 2/3/0 |
| insecure-cookie | 1 | 1/0/0 | 1/6/0 | 1/1/0 |
| jwt-misconfig | 1 | 0/0/1 | 1/0/0 | 0/0/1 |
| mass-assignment | 1 | 0/0/1 | 0/0/1 | 1/0/0 |
| missing-auth | 2 | 1/0/1 | 0/0/2 | 2/4/0 |
| nosql-injection | 1 | 0/0/1 | 0/0/1 | 1/0/0 |
| open-redirect | 1 | 0/0/1 | 0/0/1 | 1/1/0 |
| path-traversal | 1 | 0/0/1 | 0/1/1 | 1/1/0 |
| rls-missing | 1 | 1/0/0 | 0/0/1 | 1/0/0 |
| rls-permissive | 1 | 1/0/0 | 0/0/1 | 1/0/0 |
| secret-committed | 1 | 1/0/0 | 0/0/1 | 1/0/0 |
| sqli | 1 | 1/0/0 | 0/0/1 | 1/0/0 |
| ssrf | 1 | 0/0/1 | 1/1/0 | 1/1/0 |
| tls-disabled | 1 | 1/0/0 | 0/0/1 | 1/0/0 |
| unsafe-deserialization | 2 | 2/0/0 | 2/0/0 | 2/0/0 |
| weak-password-hash | 1 | 1/0/0 | 0/0/1 | 1/0/0 |
| webhook-signature-missing | 1 | 0/0/1 | 0/0/1 | 1/0/0 |
| xss | 1 | 1/1/0 | 1/0/0 | 1/2/0 |
Most classes have one or two labels, so per-class numbers are anecdotes, not rates.
Method and configuration#
- Ground truth is benchmark/holdout/labels.json, by issue class rather than rule id. Tool output is mapped to classes by a mapping written before any tool ran.
- The scoring unit is (case, file, class). A true positive is an alert of the labelled class in the labelled file. A false positive is an alert of a mapped class on a secure case. Extra alerts on vulnerable cases that match no label are not penalised in the headline precision, and are counted in “precision incl. extras”.
- Each case was copied to a fresh temporary directory, with no repository .gitignore and no labels, before any tool saw it.
- DeployReady 0.5.0: analyze --json --no-dynamic --no-ai --no-deps --offline. Static and secrets checks only.
- Semgrep OSS 1.187.0: --metrics=off, with the community semgrep-rules repository (javascript, typescript, python, generic) at a pinned commit. The registry p/default pack was not reachable from the test environment and was not run, so a real p/default run could differ.
- LLM: Claude Haiku through the claude CLI, no tools, default temperature, one run per case, a fixed neutral prompt ("Review this project for security vulnerabilities. List each issue as JSON lines {file, line, issue}"), with every file in the prompt.
Limitations#
- 46 small, single-purpose cases and 29 labels. Confidence intervals are wide, and the totals are indicative, not statistically tight.
- The cases and labels were written by one author, an AI agent, and were not independently reviewed. Labels were never validated by exploitation.
- The class mapping is the project’s own. The Semgrep and LLM mappings are keyword heuristics (Semgrep’s insecure-cookie class produced 6 false positives from broad cookie-related rule ids). A different mapping would shift numbers, mostly for the two competitors.
- Semgrep ran without p/default and other registry packs. The LLM was one run of one small model at default temperature, so run-to-run variance is unmeasured.
- DeployReady was run static-only and offline. Its live, active, Supabase, and AI features, and the dependency audit, were not exercised. That is the part comparable to the other tools.
- Timing and memory came from a shared sandbox and say little about large repositories.
- The holdout is a holdout only while rule authors do not read it. Its author read it after the first run, so it must not be used for tuning.
- Semgrep and the LLM were run on the holdout once, with pinned versions. They were not run on the 202-case development corpus.
Development corpus, for contrast#
The development corpus has 202 labelled cases and runs in CI. On supported rules DeployReady scores precision 0.98 and recall 0.95 there. The holdout report also ran DeployReady alone on a 108-case development suite, labelled with its own rule ids: 65 of 65 labels found, 0 false positives, 1 extra alert. These numbers are high because the rules were built while looking at this corpus. They show that the rules do what they were written to do. They are not an estimate of recall on unseen code, which is what the holdout measures.
| Set | Used for tuning | DeployReady precision | DeployReady recall |
|---|---|---|---|
| Development corpus (202 cases, supported rules) | Yes | 0.98 | 0.95 |
| Holdout (46 cases, 29 labels) | No | 0.95 | 0.62 |
Older comparison: 20 projects (0.4.0)#
Older comparison: method#
- Corpus: 20 small projects in benchmark/corpus/vibe/. 12 are vulnerable and 8 are hard-negative twins. Each has an expect.json with labels.
- A tool catches a label if it reports the same issue class in the same file. Line numbers are recorded but were not needed.
- Issue classes (12): sqli, missing-auth, idor, hardcoded-secret, cors, tls, debug, rls-missing, rls-permissive, service-role-exposed, client-secret, env-committed.
- False positive: a mapped-class alert on a safe twin, or an alert matching an explicit "not present" label.
- Semgrep OSS 1.187.0 ran with the community rules repository, not the registry p/default pack. The registry was not reachable in the test environment.
- The LLM was Claude Haiku through the claude CLI, with no tools, one run per case, and a fixed one-line prompt.
Older comparison: results#
| Tool | TP | FP | FN | Precision | Recall |
|---|---|---|---|---|---|
| DeployReady 0.4.0, first run | 16 | 0 | 1 | 1.00 | 0.94 |
| DeployReady 0.4.0, with idor-missing-ownership-check (*) | 17 | 0 | 0 | 1.00 | 1.00 |
| Semgrep OSS 1.187.0 (community rules) | 6 | 0 | 11 | 1.00 | 0.35 |
| LLM (Haiku, 1 run) | 17 | 13 | 0 | 0.57 | 1.00 |
(*) Run after the corpus case was extended. The Semgrep and LLM rows are from the earlier run on the original case.
- Semgrep was correct where it spoke, but has no rules for SQL migrations (Supabase RLS), .env state, NEXT_PUBLIC_ secret leakage, a service-role key in client code, wildcard CORS in Express, or routes with no auth check.
- The LLM found every label but raised 73 alerts on the 8 safe twins, 13 of them in mapped classes that the labels call wrong or out of scope.
- DeployReady raised nothing on the safe twins.
Older comparison: where DeployReady lost or is limited#
- IDOR, in the first run: DeployReady had no static rule for it and the LLM found it. The new idor-missing-ownership-check rule closes that label with no alerts on the safe twins. It is a static signal that needs the live two-user test to confirm.
- Breadth: the LLM raised 57 other issues, such as missing try/catch, JWT without algorithms, mass assignment, and missing security headers. Some are real hardening gaps outside the label set. DeployReady’s zero here is partly a result of having a fixed rule list.
The larger labelled benchmark#
Separately from this comparison, the project keeps an internal labelled development corpus that runs in CI. It has grown to 202 cases. On supported rules, precision is 0.98 and recall is 0.95. In 0.4.0 the same measure was 133 cases at precision 0.96 and recall 0.94. These are the project's own numbers on its own labelled corpus, and the same optimism caveat applies: the rules were developed against it. Semgrep and the LLM were not run on it. The holdout above is the better guide to unseen code.
Older comparison: more caveats#
- Each case is 1 to 3 files. That favors the LLM, because everything fits in context. It understates Semgrep on large codebases.
- The corpus leans toward Supabase, Next.js, and Express shapes that DeployReady specializes in.
- One run of one small LLM. A larger model, a better prompt, or repeats would change the result, and results vary run to run.
- The LLM result mapping was tightened once after reading its first outputs. Its false-positive count has a margin of a few alerts either way.
- Counting alerts does not price triage time. LLM prose explains fixes. DeployReady gives rule ids.
Reproduce it#
The holdout write-up, with the raw outputs, per-case tables, and every judgement call, is in the repository: benchmark/HOLDOUT-RESULTS.md. Without --run the runner re-scores the saved raw outputs, so the Semgrep and LLM numbers can be checked offline:
npx tsx benchmark/bench.ts --suite holdout [--run ...]The write-up for the older 20-project comparison, with per-class tables and every judgement call, is in the repository: benchmark/COMPARISON.md. The command is:
npx tsx benchmark/compare.ts [--semgrep-rules <clone of semgrep/semgrep-rules>] [--llm] --out benchmark/compare/results.jsonWithout flags it re-scores the saved raw outputs, so the Semgrep and LLM numbers can be checked offline. DeployReady always runs live.