Crashtest Documentation
Adversarial QA for agent-built apps. Attack the code, not the people.
Crashtest is a command-line test runner with a security harness. Point it at your server handlers (plain functions or a framework app), and it fires seeded attacks against them in your own Node process - no sockets, no staging server, no test deployment. Every run produces:
labs/hardening.md- a readable report of what held and what didn’tlabs/crashledger.json- a committed baseline your CI won’t let regress
Each attack returns one of four verdicts:
| Verdict | Meaning |
|---|---|
| 🛡 REFUSED | Your handler did the right thing - denied, validated, constrained |
| EXPLOITED | A real weakness - CI fails on finding this for the first time |
| BOUNDED | A known, accepted risk with a named owner and an explicit bound |
| PASSED | The safe path was exercised and HELD end to end - evidence, never a finding |
Where to go
- New here? Quick Start gets a run going in about two minutes.
- Using a framework? Pick your playbook: plain handlers, Express, Hono, Fastify, or a raw Node server.
- Wired into CI? The GitHub Action playbook turns your ledger into a branch gate.
- Details people: the attack catalog, the ledger format, and the exit rules are documented machine-honest - every claim here matches the shipped CLI.
- Extending it: shipped packs (including
cve-feed, the offline KEV/NVD snapshot sweep) and your own are covered in the packs register.
The one rule worth quoting
Every request the harness fires is an in-process WHATWG Request handed to a registered handler. If something needs a real network socket, it’s out of scope by design. The fake transport is the product - which is why runs are deterministic, fast, and safe to point anywhere.
Crashtest is MIT-licensed open source and is part of the Creadev.org family.