──[ ▮ benchmark ]──
Benchmark: 29 planted defects, 6 free tools and ShipGuard Pro
One demo repo with defects we planted, one clean copy, the same commands for every tool. Run on 25 November 2026. Every result carries its version, and the full answer key is below.
Short answer: In our test, ShipGuard's general rules (free) flagged 12 of the 19 planted defects in the jobs it covers and raised 1 false alarm on the clean repo. The full rulebook (Pro) flagged 13 and raised 11 false alarms; we show them all. What ShipGuard is.
Results at a glance
| Tool | Version | Found, of the defects in its jobs | False alarms on the clean repo | Median seconds |
|---|---|---|---|---|
| gitleaks | 8.30.1 | 6 of 6 | 0 | 0.23 |
| TruffleHog | 3.100.1 | 4 of 6 | 0 | 2.43 |
| Semgrep CE | 1.187.0 | 7 of 18 | 0 | 42.47 |
| OSV-Scanner | 2.7.1 | 2 of 2 | 0 | 1.91 |
| npm audit | 11.19.1 | 2 of 2 | 0 | 7 |
| ShipGuard, general rules (free) | 0.13.2 | 12 of 19 | 1 | 3.45 |
| ShipGuard, full rulebook (Pro) | 0.13.2 | 13 of 20 | 11 | 6.79 |
Method
- Seeded repo. A small Next.js, Stripe, Supabase and Prisma shop with three git commits and 29 defects we planted on purpose. The answer key was written and its checksum recorded before any tool ran.
- Clean repo. The same shop with those defects fixed. Anything a tool reports here, we sorted by hand: a real known advisory, accurate but not planted, or a false alarm.
- We planted the 29 defects ourselves, so the set leans toward AI-agent threats ShipGuard targets: AI-agent config, nonexistent packages, routes without a guard, a webhook without a signature check.
- Each tool ran in a fresh rootless Podman container on one 6-CPU ARM64 machine, with 1 discarded warm-up run and 5 timed runs (3 for the Pro rulebook). The table shows the median.
- A planted defect counts as flagged only when a finding sits in the defect's file and its rule matches what we planted. A finding in the same file for a different reason does not count.
- A tool is scored on a job only where its own docs say it does that job. Everything else is Not in scope. We never add scores across jobs.
- One person sorted every clean-repo finding by hand. Rows where a reader could reasonably disagree are marked as judgement calls.
- Fake secrets only. The Pro rulebook ran with a ShipGuard test account; every other tool is free.
Versions and exact commands
| Tool | Version | Run date | Timed runs |
|---|---|---|---|
| gitleaks | 8.30.1 | 2026-11-25 | 5 |
| TruffleHog | 3.100.1 | 2026-11-25 | 5 |
| Semgrep CE | 1.187.0 | 2026-11-25 | 5 |
| OSV-Scanner | 2.7.1 | 2026-11-25 | 5 |
| npm audit | 11.19.1 | 2026-11-25 | 5 |
| ShipGuard, general rules (free) | 0.13.2 | 2026-11-25 | 5 |
| ShipGuard, full rulebook (Pro) | 0.13.2 | 2026-11-25 | 3 |
Real terminal output
Cropped captures of the runs above, taken from the seeded repo.







The full answer key
Every planted defect, where it is, and what each tool did. “Not flagged” means the tool did not flag it in our test.
| ID | Class | Planted defect | File | gitleaks | TruffleHog | Semgrep CE | OSV-Scanner | npm audit | ShipGuard free | ShipGuard Pro |
|---|---|---|---|---|---|---|---|---|---|---|
| S1 | Secret | Stripe live-format secret key in source | src/lib/stripe.ts | Flagged | Flagged | Flagged | Not in scope | Not in scope | Flagged | Flagged |
| S2 | Secret | AWS access key id + secret in source | src/lib/aws.ts | Flagged | Flagged | Flagged | Not in scope | Not in scope | Flagged | Flagged |
| S3 | Secret | .env tracked in git (db url, webhook secret) | .env | Flagged | Flagged | Flagged | Not in scope | Not in scope | Flagged | Flagged |
| S4 | Secret | Secret behind a NEXT_PUBLIC_ name (exposed to browser) | .env.production | Flagged | Not flagged | Not flagged | Not in scope | Not in scope | Flagged | Flagged |
| S5 | Secret | Supabase service_role JWT in a client component | src/components/AdminPanel.tsx | Flagged | Not flagged | Flagged | Not in scope | Not in scope | Flagged | Flagged |
| S6 | Secret | Token committed then deleted (history only) (needs git history) | src/lib/legacy.ts | Flagged | Flagged | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope |
| D1 | Dependency | lodash 4.17.15 known advisory (check GHSA/CVE on lab day) | package-lock.json | Not in scope | Not in scope | Not in scope | Flagged | Flagged | Not in scope | Not in scope |
| D2 | Dependency | minimist 1.2.5 known advisory (check GHSA/CVE on lab day) | package-lock.json | Not in scope | Not in scope | Not in scope | Flagged | Flagged | Not in scope | Not in scope |
| D3 | Dependency | look-alike package name lodahs (npm security placeholder) (typosquat shape) | package-lock.json | Not in scope | Not in scope | Not in scope | Flagged | Not in scope | Not in scope | Not in scope |
| H1 | Nonexistent package | Phantom npm package stripe-webhook-verify (404 on registry) (npm view 404 on lab day) | src/lib/webhook-verify.ts | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope |
| H2 | Nonexistent package | Phantom npm package next-supabase-session-guard (404 on registry) (npm view 404 on lab day) | src/lib/webhook-verify.ts | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope |
| H3 | Nonexistent package | Phantom PyPI package flask-request-validator-lite (404) (PyPI 404 on lab day) | helpers/requirements.txt | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope |
| A1 | AI-agent config | .mcp.json server runs curl | sh | .mcp.json | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Not flagged |
| A2 | AI-agent config | AGENTS.md hidden instruction to send .env out | AGENTS.md | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope |
| A3 | AI-agent config | .claude/settings.json allows Bash(*) | .claude/settings.json | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope |
| C1 | Code | Admin route with no auth check | src/app/api/admin/users/route.ts | Not in scope | Not in scope | Not flagged | Not in scope | Not in scope | Flagged | Flagged |
| C2 | Code | Stripe webhook with no signature check | src/app/api/webhooks/stripe/route.ts | Not in scope | Not in scope | Not flagged | Not in scope | Not in scope | Flagged | Flagged |
| C3 | Code | SQL built by string concatenation | src/lib/db.ts | Not in scope | Not in scope | Not flagged | Not in scope | Not in scope | Not flagged | Flagged |
| C4 | Code | Command injection via child_process.exec | src/app/api/export/route.ts | Not in scope | Not in scope | Flagged | Not in scope | Not in scope | Not flagged | Not flagged |
| C5 | Code | CORS * with credentials | src/middleware.ts | Not in scope | Not in scope | Not flagged | Not in scope | Not in scope | Flagged | Flagged |
| C6 | Code | Debug endpoint dumps process.env | src/app/api/debug/route.ts | Not in scope | Not in scope | Not flagged | Not in scope | Not in scope | Flagged | Flagged |
| C7 | Code | eval of user-supplied expression | src/lib/formula.ts | Not in scope | Not in scope | Flagged | Not in scope | Not in scope | Not flagged | Not flagged |
| C8 | Code | dangerouslySetInnerHTML with unsanitised html | src/components/Review.tsx | Not in scope | Not in scope | Not flagged | Not in scope | Not in scope | Flagged | Flagged |
| C9 | Code | Supabase table without row level security | supabase/migrations/001_orders.sql | Not in scope | Not in scope | Not flagged | Not in scope | Not in scope | Not flagged | Not flagged |
| C10 | Code | Session signing secret falls back to "secret" | src/lib/session.ts | Not in scope | Not in scope | Not flagged | Not in scope | Not in scope | Not flagged | Not flagged |
| C11 | Code | Open redirect from ?next= | src/app/api/login/route.ts | Not in scope | Not in scope | Not flagged | Not in scope | Not in scope | Not flagged | Not flagged |
| C12 | Code | Reset token from Math.random | src/lib/token.ts | Not in scope | Not in scope | Not flagged | Not in scope | Not in scope | Not flagged | Not flagged |
| M1 | Infra | Destructive migration (DROP TABLE, DROP COLUMN) | prisma/migrations/20261101_cleanup/migration.sql | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope | Flagged | Flagged |
| K1 | Infra | Dockerfile: node:latest, runs as root | Dockerfile | Not in scope | Not in scope | Flagged | Not in scope | Not in scope | Flagged | Flagged |
The clean repo: every finding, sorted by hand
These are all the findings on the clean repo for the tools that raised any, apart from the dependency advisories below. A judgement call is a row where a reader could reasonably sort it differently.
ShipGuard, general rules (free): 3 findings, 1 false alarm
| Rule | File and line | Our call |
|---|---|---|
auth_route_without_guard | src/app/api/debug/route.ts:1 | Accurate, not planted |
public_admin_route | src/middleware.ts:1 | False alarm (judgement call) |
missing_idempotency | src/app/api/webhooks/stripe/route.ts:3 | Accurate, not planted |
ShipGuard, full rulebook (Pro): 17 findings, 11 false alarms
| Rule | File and line | Our call |
|---|---|---|
auth_route_without_guard | src/app/api/debug/route.ts:1 | Accurate, not planted |
public_admin_route | src/middleware.ts:1 | False alarm (judgement call) |
nextjs.auth.server-action-no-auth-check | src/app/api/admin/users/route.ts:3 | False alarm (judgement call) |
nextjs.auth.server-action-no-auth-check | src/app/api/debug/route.ts:1 | Accurate, not planted (judgement call) |
nextjs.auth.server-action-no-auth-check | src/app/api/export/route.ts:2 | Accurate, not planted (judgement call) |
nextjs.auth.server-action-no-auth-check | src/app/api/login/route.ts:1 | False alarm (judgement call) |
nextjs.auth.route-handler-no-auth | src/app/api/webhooks/stripe/route.ts:3 | False alarm (judgement call) |
nextjs.auth.server-action-no-auth-check | src/app/api/webhooks/stripe/route.ts:3 | False alarm (judgement call) |
nextjs.auth.server-action-no-auth-check | src/lib/ai.ts:1 | False alarm (judgement call) |
nextjs.auth.server-action-no-auth-check | src/lib/db.ts:3 | False alarm (judgement call) |
nextjs.auth.server-action-no-auth-check | src/lib/db.ts:4 | False alarm (judgement call) |
nextjs.auth.server-action-no-auth-check | src/lib/session.ts:6 | False alarm (judgement call) |
nextjs.config.outdated-next-cache-advisories | package.json:11 | Real known advisory (judgement call) |
nextjs.data.server-only-missing | src/lib/db.ts:1 | Accurate, not planted (judgement call) |
nextjs.data.server-action-returns-full-db-record | src/lib/db.ts:3 | False alarm (judgement call) |
nextjs.data.server-action-returns-full-db-record | src/lib/db.ts:5 | False alarm (judgement call) |
missing_idempotency | src/app/api/webhooks/stripe/route.ts:3 | Accurate, not planted |
Semgrep CE: 6 findings, 0 false alarms
| Rule | File and line | Our call |
|---|---|---|
dockerfile-source-not-pinned | Dockerfile:1 | Accurate, not planted |
use-raise-for-status | helpers/report.py:3 | Accurate, not a security issue |
jsx-not-internationalized | src/app/page.tsx:2 | Accurate, not a security issue |
jsx-not-internationalized | src/app/page.tsx:2 | Accurate, not a security issue |
jsx-not-internationalized | src/components/AdminPanel.tsx:1 | Accurate, not a security issue |
jsx-not-internationalized | src/components/Header.tsx:1 | Accurate, not a security issue |
gitleaks and TruffleHog reported nothing on the clean repo. OSV-Scanner reported 37 known advisories and npm audit 8, all in real package versions of the clean repo. We count those as accurate, not as false alarms.
What this benchmark does not show
- One demo repo with 29 planted defects, chosen by us and leaning toward the AI-agent threats ShipGuard targets: a demo, not a study. A different codebase can give different numbers.
- The tools do different jobs. gitleaks reads git history for secrets and ShipGuard checks the files on disk, so a result is only meaningful next to the question it answers.
- One stack (JavaScript and TypeScript, plus one small Python helper), one machine, one person sorting the clean-repo findings. Wall times include container start and are not comparable to other machines.
- Free tools only, plus ShipGuard. We did not run paid tools from other vendors.
- Every claim here is of the form “X did not flag Y in our test”, on the date and version in the table.
Benchmark questions
Is this a fair test?
It is a fair test of one demo repo, not a study. We wrote the 29 defects and the answer key before any tool ran, the set leans toward AI-agent threats ShipGuard targets, and one person sorted the clean-repo findings by hand. Free tools only, each at a pinned version, each result dated 25 November 2026.
Why does ShipGuard Pro show more false alarms than the free rules?
The full rulebook has more checks that look at routes and server code, and 11 of the findings on the clean repo were wrong in our hand sort. The list is below, with the judgement calls marked, so you can disagree with us.
Why are some cells Not in scope?
A tool is scored on a job only when its own docs claim it. gitleaks does not claim to read dependencies, so a dependency defect is not a miss for gitleaks. We do not add scores across jobs.
Why is nonexistent-package detection Not in scope for every tool?
None of the tools we ran claims to check whether a package name exists on the registry, ShipGuard included, so the three planted defects of that kind are marked Not in scope for all of them.
Can I rerun it?
Yes. The versions, dates and exact commands are on this page. Run them on a clean machine and compare. If your numbers differ, tell us through Get help (/contact) and we will check.
Compare one tool at a time
────────[ ▮ ShipGuard ]────────
Run the same check on your own project
One command, no account for the general rules. Your code stays on your machine.