Getting Started
Crashtest runs against your real code in your own process. The three prerequisites:
- Node 22+ (
node --version) - A
crashtest.config.jsdescribing your routes or app + a fake backend - Two minutes
Start with the Quick Start - init, edit, run. Then wire the CI gate so the report becomes enforcement.
Which path describes your app?
| Your app looks like… | Playbook |
|---|---|
Plain handler functions (({ request, env }) => Response) |
Plain Handlers |
| An Express app | Express |
| A Hono app | Hono |
| A Fastify app | Fastify |
A framework-less http.createServer server |
Raw Node Servers |
What a run looks like
$ node bin/crashtest.js run --expect-baseline labs/crashledger.json # against the vulnerable fixture variant
⚡ guards/hygiene-no-store: 2xx write from "enroll" has NO Cache-Control - shared caches may replay the write
⚡ input/proto-pollution-body: canary planted on Object.prototype via payload to "enroll" (status 200)
🛡 input/oversized-field: oversized body handled on "enroll" (status 200)
⚡ authz/role-body-spoof-family: body-declared role claims flipped the privilege decision on "admin": role via POST (status 200) | role via PUT (status 200) | role via PATCH (status 200)
⚡ proto-hygiene/request-shape-flood: request-shape flood broke 31 probe(s) across 8 route(s) - first: enroll duplicate key (2x): 500
⚡ recursion/deep-nest-stack-overflow: deep-nested body (12000 levels) stack-overflowed a recursive walker on "enroll" - uncaught RangeError: Maximum call stack size exceeded
⚡ upload/filename-traversal-family: filename traversal landed at "upload": unix traversal: handler accepted "../../etc/passwd" and stored ["../../etc/passwd"] - the key escapes the safe-name grammar (+8 more)
⚡ race/concurrent-write-lost-update: concurrent pair on "profile" lost data: writer "B (email/alpha)" threw uncaught in the burst (a never-guarded race window: D1Error: UNIQUE constraint failed: blobs.user)
⚡ session/token-replay-deny: replay window is open on "login": sid collision across the burst: login 1 + login 2 share a sid (6 total) (+1 more)
⚡ session/cookie-hygiene: login cookie on "login" misses 3 hygiene flag(s): Secure (cookie must never ride plain http on a real surface); HttpOnly (script-readability = one XSS harvests every session); SameSite=Lax (or Strict) (un-padded cross-site carrying)
⚡ taxonomy/abuse-not-5xx: 7/10 abuse shapes escalated on "enroll" - first: truncated-object (5xx: 500)
⚡ taxonomy/errors-stay-impersonal: 1/10 error paths leak on "enroll" - first: not-json (canary echo (handler parroting attacker-controlled data))
🛡 volume/storage-fill: route "kvwrite" not declared on this target - fill check skipped (declare a KV-writing route)
tally: {"TOTAL":30,"REFUSED":10,"EXPLOITED":20,"BOUNDED":0} / cost: 816 ops / 864 requests
baseline: 0 new / 20 regressed / 0 accepted hits
exit: 1 (REFUSED->EXPLOITED regressions - fix it or bound it, then re-run)
Nothing about these lines is aspirational - they are the real output of this repo’s own vulnerable fixture variant (the bench-check in the quick start). The full attack surface each line summarizes is in the attack catalog.