AgenticCLI
▮ shipguardis the security scanner your coding agent runs before every commit.$ npm i -g @agenticcli/shipguard

──[ ▮ 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

Run on 25 November 2026. Free tools plus ShipGuard. Times include starting a fresh container.

ToolVersionFound, of the defects in its jobsFalse alarms on the clean repoMedian seconds
gitleaks8.30.16 of 600.23
TruffleHog3.100.14 of 602.43
Semgrep CE1.187.07 of 18042.47
OSV-Scanner2.7.12 of 201.91
npm audit11.19.12 of 207
ShipGuard, general rules (free)0.13.212 of 1913.45
ShipGuard, full rulebook (Pro)0.13.213 of 20116.79
  • Each tool is counted only on the planted defects in the jobs its own docs claim (for example gitleaks 6 of 6 secrets). We never add scores across jobs, and the answer key below marks every job a tool does not claim as Not in scope.
  • OSV-Scanner's look-alike match (D3, lodahs) is a known-malware lookup (MAL-2025-25502), not name-similarity detection, so it is shown as Flagged in the answer key but not counted in OSV-Scanner's 2 of 2.
  • OSV-Scanner and npm audit report real known advisories on the clean repo (37 and 8). Those are accurate, so they are not counted as false alarms.
  • Semgrep CE reported 6 findings on the clean repo: 5 accurate but not security issues and 1 accurate but not planted. None is a false alarm in our sort.
  • The 11 ShipGuard Pro false alarms are the rows marked False alarm in the clean-repo list below. 15 of its findings on the clean repo are judgement calls, marked there.

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

ToolVersionRun dateTimed runs
gitleaks8.30.12026-11-255
TruffleHog3.100.12026-11-255
Semgrep CE1.187.02026-11-255
OSV-Scanner2.7.12026-11-255
npm audit11.19.12026-11-255
ShipGuard, general rules (free)0.13.22026-11-255
ShipGuard, full rulebook (Pro)0.13.22026-11-253
commands
gitleaks git . --report-format json --report-path - --exit-code 0 --no-banner
trufflehog git file://. --json --no-update --no-verification
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 .
osv-scanner scan source -L package-lock.json --format json
npm audit --json
shipguard scan --general --strict --json
shipguard scan --pro --strict --json

Semgrep CE ran with six pinned local rule folders, not the registry default. Commands run inside the repo copy.

Real terminal output

Cropped captures of the runs above, taken from the seeded repo.

Terminal: gitleaks git scan of the seeded repo. It scanned 3 commits and printed 'leaks found: 7', then exit 0.
gitleaks 8.30.1, seeded repo, git mode.
Terminal: TruffleHog git scan. The first result is an unverified Postgres connection string with a fake host, db.lab-fake.invalid.
TruffleHog 3.100.1, seeded repo, unverified results only.
Terminal: Semgrep CE output for the Dockerfile. It says a program in the container may run as root, shows the autofix USER line, then starts the next finding for helpers/report.py.
Semgrep CE 1.187.0, seeded repo, Dockerfile finding.
Terminal: OSV-Scanner table of advisories for the next package at version 16.2.9 in package-lock.json, each with an osv.dev link and a fixed version.
OSV-Scanner 2.7.1, seeded repo, advisory table.
Terminal: npm audit output naming lodash and minimist advisories, with 'fix available' lines for each.
npm audit (npm 11.19.1), seeded repo.
Terminal: ShipGuard scan with general rules on the seeded repo. The summary line reads DO NOT SHIP, 18 blocking of 23 findings, 41 files.
ShipGuard (free general rules), version 0.13.2, seeded repo.
Terminal: ShipGuard scan with the full rulebook on the seeded repo. The summary line reads DO NOT SHIP, 20 blocking of 40 findings, 41 files.
ShipGuard (Pro full rulebook), version 0.13.2, 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.

IDClassPlanted defectFilegitleaksTruffleHogSemgrep CEOSV-Scannernpm auditShipGuard freeShipGuard Pro
S1SecretStripe live-format secret key in sourcesrc/lib/stripe.tsFlaggedFlaggedFlaggedNot in scopeNot in scopeFlaggedFlagged
S2SecretAWS access key id + secret in sourcesrc/lib/aws.tsFlaggedFlaggedFlaggedNot in scopeNot in scopeFlaggedFlagged
S3Secret.env tracked in git (db url, webhook secret).envFlaggedFlaggedFlaggedNot in scopeNot in scopeFlaggedFlagged
S4SecretSecret behind a NEXT_PUBLIC_ name (exposed to browser).env.productionFlaggedNot flaggedNot flaggedNot in scopeNot in scopeFlaggedFlagged
S5SecretSupabase service_role JWT in a client componentsrc/components/AdminPanel.tsxFlaggedNot flaggedFlaggedNot in scopeNot in scopeFlaggedFlagged
S6SecretToken committed then deleted (history only) (needs git history)src/lib/legacy.tsFlaggedFlaggedNot in scopeNot in scopeNot in scopeNot in scopeNot in scope
D1Dependencylodash 4.17.15 known advisory (check GHSA/CVE on lab day)package-lock.jsonNot in scopeNot in scopeNot in scopeFlaggedFlaggedNot in scopeNot in scope
D2Dependencyminimist 1.2.5 known advisory (check GHSA/CVE on lab day)package-lock.jsonNot in scopeNot in scopeNot in scopeFlaggedFlaggedNot in scopeNot in scope
D3Dependencylook-alike package name lodahs (npm security placeholder) (typosquat shape)package-lock.jsonNot in scopeNot in scopeNot in scopeFlaggedNot in scopeNot in scopeNot in scope
H1Nonexistent packagePhantom npm package stripe-webhook-verify (404 on registry) (npm view 404 on lab day)src/lib/webhook-verify.tsNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeNot in scope
H2Nonexistent packagePhantom npm package next-supabase-session-guard (404 on registry) (npm view 404 on lab day)src/lib/webhook-verify.tsNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeNot in scope
H3Nonexistent packagePhantom PyPI package flask-request-validator-lite (404) (PyPI 404 on lab day)helpers/requirements.txtNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeNot in scope
A1AI-agent config.mcp.json server runs curl | sh.mcp.jsonNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeNot flagged
A2AI-agent configAGENTS.md hidden instruction to send .env outAGENTS.mdNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeNot in scope
A3AI-agent config.claude/settings.json allows Bash(*).claude/settings.jsonNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeNot in scope
C1CodeAdmin route with no auth checksrc/app/api/admin/users/route.tsNot in scopeNot in scopeNot flaggedNot in scopeNot in scopeFlaggedFlagged
C2CodeStripe webhook with no signature checksrc/app/api/webhooks/stripe/route.tsNot in scopeNot in scopeNot flaggedNot in scopeNot in scopeFlaggedFlagged
C3CodeSQL built by string concatenationsrc/lib/db.tsNot in scopeNot in scopeNot flaggedNot in scopeNot in scopeNot flaggedFlagged
C4CodeCommand injection via child_process.execsrc/app/api/export/route.tsNot in scopeNot in scopeFlaggedNot in scopeNot in scopeNot flaggedNot flagged
C5CodeCORS * with credentialssrc/middleware.tsNot in scopeNot in scopeNot flaggedNot in scopeNot in scopeFlaggedFlagged
C6CodeDebug endpoint dumps process.envsrc/app/api/debug/route.tsNot in scopeNot in scopeNot flaggedNot in scopeNot in scopeFlaggedFlagged
C7Codeeval of user-supplied expressionsrc/lib/formula.tsNot in scopeNot in scopeFlaggedNot in scopeNot in scopeNot flaggedNot flagged
C8CodedangerouslySetInnerHTML with unsanitised htmlsrc/components/Review.tsxNot in scopeNot in scopeNot flaggedNot in scopeNot in scopeFlaggedFlagged
C9CodeSupabase table without row level securitysupabase/migrations/001_orders.sqlNot in scopeNot in scopeNot flaggedNot in scopeNot in scopeNot flaggedNot flagged
C10CodeSession signing secret falls back to "secret"src/lib/session.tsNot in scopeNot in scopeNot flaggedNot in scopeNot in scopeNot flaggedNot flagged
C11CodeOpen redirect from ?next=src/app/api/login/route.tsNot in scopeNot in scopeNot flaggedNot in scopeNot in scopeNot flaggedNot flagged
C12CodeReset token from Math.randomsrc/lib/token.tsNot in scopeNot in scopeNot flaggedNot in scopeNot in scopeNot flaggedNot flagged
M1InfraDestructive migration (DROP TABLE, DROP COLUMN)prisma/migrations/20261101_cleanup/migration.sqlNot in scopeNot in scopeNot in scopeNot in scopeNot in scopeFlaggedFlagged
K1InfraDockerfile: node:latest, runs as rootDockerfileNot in scopeNot in scopeFlaggedNot in scopeNot in scopeFlaggedFlagged
The three nonexistent-package rows (H1 to H3) are Not in scope for every tool we ran, ShipGuard included. We show the row anyway: a planted defect that no tool claims to check is still a gap worth seeing.

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

RuleFile and lineOur call
auth_route_without_guardsrc/app/api/debug/route.ts:1Accurate, not planted
public_admin_routesrc/middleware.ts:1False alarm (judgement call)
missing_idempotencysrc/app/api/webhooks/stripe/route.ts:3Accurate, not planted

ShipGuard, full rulebook (Pro): 17 findings, 11 false alarms

RuleFile and lineOur call
auth_route_without_guardsrc/app/api/debug/route.ts:1Accurate, not planted
public_admin_routesrc/middleware.ts:1False alarm (judgement call)
nextjs.auth.server-action-no-auth-checksrc/app/api/admin/users/route.ts:3False alarm (judgement call)
nextjs.auth.server-action-no-auth-checksrc/app/api/debug/route.ts:1Accurate, not planted (judgement call)
nextjs.auth.server-action-no-auth-checksrc/app/api/export/route.ts:2Accurate, not planted (judgement call)
nextjs.auth.server-action-no-auth-checksrc/app/api/login/route.ts:1False alarm (judgement call)
nextjs.auth.route-handler-no-authsrc/app/api/webhooks/stripe/route.ts:3False alarm (judgement call)
nextjs.auth.server-action-no-auth-checksrc/app/api/webhooks/stripe/route.ts:3False alarm (judgement call)
nextjs.auth.server-action-no-auth-checksrc/lib/ai.ts:1False alarm (judgement call)
nextjs.auth.server-action-no-auth-checksrc/lib/db.ts:3False alarm (judgement call)
nextjs.auth.server-action-no-auth-checksrc/lib/db.ts:4False alarm (judgement call)
nextjs.auth.server-action-no-auth-checksrc/lib/session.ts:6False alarm (judgement call)
nextjs.config.outdated-next-cache-advisoriespackage.json:11Real known advisory (judgement call)
nextjs.data.server-only-missingsrc/lib/db.ts:1Accurate, not planted (judgement call)
nextjs.data.server-action-returns-full-db-recordsrc/lib/db.ts:3False alarm (judgement call)
nextjs.data.server-action-returns-full-db-recordsrc/lib/db.ts:5False alarm (judgement call)
missing_idempotencysrc/app/api/webhooks/stripe/route.ts:3Accurate, not planted

Semgrep CE: 6 findings, 0 false alarms

RuleFile and lineOur call
dockerfile-source-not-pinnedDockerfile:1Accurate, not planted
use-raise-for-statushelpers/report.py:3Accurate, not a security issue
jsx-not-internationalizedsrc/app/page.tsx:2Accurate, not a security issue
jsx-not-internationalizedsrc/app/page.tsx:2Accurate, not a security issue
jsx-not-internationalizedsrc/components/AdminPanel.tsx:1Accurate, not a security issue
jsx-not-internationalizedsrc/components/Header.tsx:1Accurate, 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

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

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

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

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

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

$npx @agenticcli/shipguard scan