Evidence

Every number, and the file behind it.

The eval suites use 40 seeded synthetic configs. The label set is 50 rows we wrote. The incidents are reconstructions from published write-ups. Each row names its source, so you can re-run it.

measured, reproducible where we lose or have no result not measured
40/40
detection cases
40/40
fix cases
8/8
clean configs, zero routes
50/50
label regression rows

Both eval suites ran live against FalkorDB 6.0.2 on 2026-10-17. The JSON is committed at packages/eval/results/.

01 Detection — 40 seeded configs

Ground truth is known by construction: planted routes, laundering-only routes, clean configs, and tie cases. Each case is ingested into its own graph and scanned with the committed query.

Detection results by case kind
case kindcasesfoundfailedsource
planted route16160detection.json
laundering-only route880detection.json
clean — expected silent880detection.json
tie — both canonical cuts close it880detection.json
total40400detection.json

What this does not show. A single-server trifecta check is solved work, and we publish no head-to-head table: we did not run Snyk Agent Scan, triflow or mcptrustchecker ourselves, so a comparison row would be invented. What this table claims is narrower: the committed query found every planted route, and all eight clean configs produced zero routes.

02 The fix — computed, not advised

One CALL algo.maxFlow, two canonical cuts, the cheaper one chosen by grant count, then declared-task cost, then the write side. Each route case proves itself by re-running the leak query with the revoked grants excluded.

Fix-quality results by pass condition
pass conditioncasespassedfailedsource
cut matches the constructed answer40400fix-quality.json
route closes — VERIFY_FIX returns zero32 route cases320fix-quality.json
expected tasks keep working32 route cases320fix-quality.json
clean config → empty cut, nothing revoked8 clean cases80fix-quality.json

The 8 clean cases return an empty cut; the verification and task checks are not run on them. On the default fs-git fixture the same code path printed one route, max-flow 2, revoke git.push, 0 of 1 routes remain, 3 of 4 tasks keep working — verbatim in docs/live-evidence/.

03 Labels — a regression check, not accuracy

Labels come from a 35-row rules table (34 name rules plus one fallback) aided by tool-set expansions for 11 known servers. The gold set is 50 hand-written rows.

Label artefacts and results
artefactcountresultsource
labelling rules35—packages/labeler/src/rules.ts
server tool-set expansions11—packages/labeler/src/rules.ts
gold-set rows5050/50 matchpnpm --filter @lethalpath/labeler test

We publish no precision/recall table. The gold set is self-authored alongside the rules: it proves internal consistency and catches regressions, not external ground truth. Three of the 50 rows pass by expecting the fallback resource. The rules we trust least are named in the labeler README — a missed sink makes a scan quieter; a false sink makes it noisier.

04 Runtime guard — demo session, simulated results

Guard demo transcript
callresultsource
github.read(issue#42)allowed · taint: untrustedlive-evidence
filesystem.read(~/work/stats)allowed · taint: untrusted + privatelive-evidence
git.push(main)blocked · route named in the errorlive-evidence
git.push(main), fresh sessionallowed · taint: nonelive-evidence

This is a demo. The guard speaks real MCP over stdio, but allowed calls return simulated results; no real GitHub, filesystem or git server sits behind it yet. The same push is blocked in a tainted session and allowed in a clean one. The guard’s own suite runs eight tests. Added latency: not measured, so no milliseconds appear here. The audit log stores tool, decision, reason and a short argument hash — never argument contents.

05 Published incidents, replayed

Four public write-ups, encoded as fixtures. Each fixture reconstructs the capabilities only — no payloads, no secrets — and carries its source and date. scan rediscovers the published chain; fix computes the revocation and re-runs the query.

Published incidents replayed as fixtures
published incidentroutescomputed cuttasks kept
GitHub MCP, 2025-05-261github.create_pull_request2 of 3
Supabase MCP, 2025-07-082supabase.execute_sql0 of 1
WhatsApp MCP, 2025-04-071whatsapp.send_message2 of 3
Postmark npm, 2025-09-251postmark.send_email1 of 2

Reconstructions from the write-ups, not reproductions. The Postmark incident is a malicious package, not a prompt injection; LethalPath does not detect malicious packages. The fixture shows that removing the package’s grant closes the route, which is the same fix as removing the package. Commands and limits are in docs/incident-replay.md.

06 What we did not measure

These have no number yet, so none is printed.

  • Head-to-head against other scanners — not run. The comparison is qualitative and cited in docs/RELATED-WORK.md, including where MSCC and CaMeL are ahead of us.
  • Retrieval accuracy on tool-selection datasets — not attempted. Retrieval is not the product; the path and the cut are.
  • External label ground truth — none exists yet. The 50-row gold set is self-authored, and says so.
  • Guard latency overhead — not measured. We print no milliseconds we did not time.

Reproduce any of it

# both eval suites, live — rewrites the JSON these tables read
pnpm --filter @lethalpath/eval build && pnpm --filter @lethalpath/eval evaluate

# the labeler gold run (section 03)
pnpm --filter @lethalpath/labeler test

# the guard transcript (section 04)
pnpm --filter @lethalpath/guard demo

# the committed files themselves
cat packages/eval/results/detection.json packages/eval/results/fix-quality.json