# Benchmark: 29 planted defects, 6 free tools and ShipGuard Pro

Canonical: https://agenticcli.dev/shipguard/benchmark

Run on 25 November 2026. One demo repo with 29 planted defects, chosen by us and leaning toward the AI-agent threats ShipGuard targets: a demo, not a study.

- 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.
- In our test, ShipGuard's full rulebook (Pro) flagged 13 of the 20 planted defects in the jobs it covers and raised 11 false alarms on the clean repo, 15 of its clean-repo findings are judgement calls.
- gitleaks flagged 6 of 6 planted secrets, including the one that only exists in git history, and raised 0 false alarms.
- No tool we ran was in scope for the three nonexistent-package defects, so no tool we ran is scored on them.

## Results

| 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 |

## Answer key

| ID | Planted defect | File | gitleaks | TruffleHog | Semgrep CE | OSV-Scanner | npm audit | ShipGuard free | ShipGuard Pro |
|---|---|---|---|---|---|---|---|---|---|
| S1 | Stripe live-format secret key in source | src/lib/stripe.ts | Flagged | Flagged | Flagged | Not in scope | Not in scope | Flagged | Flagged |
| S2 | AWS access key id + secret in source | src/lib/aws.ts | Flagged | Flagged | Flagged | Not in scope | Not in scope | Flagged | Flagged |
| S3 | .env tracked in git (db url, webhook secret) | .env | Flagged | Flagged | Flagged | Not in scope | Not in scope | Flagged | Flagged |
| S4 | 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 | 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 | Token committed then deleted (history only) | src/lib/legacy.ts | Flagged | Flagged | Not in scope | Not in scope | Not in scope | Not in scope | Not in scope |
| D1 | lodash 4.17.15 known advisory | package-lock.json | Not in scope | Not in scope | Not in scope | Flagged | Flagged | Not in scope | Not in scope |
| D2 | minimist 1.2.5 known advisory | package-lock.json | Not in scope | Not in scope | Not in scope | Flagged | Flagged | Not in scope | Not in scope |
| D3 | look-alike package name lodahs (npm security placeholder) | package-lock.json | Not in scope | Not in scope | Not in scope | Flagged | Not in scope | Not in scope | Not in scope |
| H1 | Phantom npm package stripe-webhook-verify (404 on registry) | 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 | Phantom npm package next-supabase-session-guard (404 on registry) | 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 | Phantom PyPI package flask-request-validator-lite (404) | 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 | .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 | 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 | .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 | 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 | 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 | 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 | 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 | CORS * with credentials | src/middleware.ts | Not in scope | Not in scope | Not flagged | Not in scope | Not in scope | Flagged | Flagged |
| C6 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | Dockerfile: node:latest, runs as root | Dockerfile | Not in scope | Not in scope | Flagged | Not in scope | Not in scope | Flagged | Flagged |

## The two repos

- **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.

## Exact commands

```
gitleaks git . --report-format json --report-path - --exit-code 0 --no-banner   # gitleaks 8.30.1
trufflehog git file://. --json --no-update --no-verification   # TruffleHog 3.100.1
semgrep scan --metrics=off --disable-version-check --config rules/typescript --config rules/javascript --config rules/generic --config rules/dockerfile --config rules/yaml --config rules/python --json .   # Semgrep CE 1.187.0
osv-scanner scan source -L package-lock.json --format json   # OSV-Scanner 2.7.1
npm audit --json   # npm audit 11.19.1
shipguard scan --general --strict --json   # ShipGuard, general rules (free) 0.13.2
shipguard scan --pro --strict --json   # ShipGuard, full rulebook (Pro) 0.13.2
```
