intrepidshape/pre-audit-hardening-pack
What an auditor wants to see on day one — in a forkable Foundry repo.
Drop your contracts in. The scaffolding does the rest. Foundry-based template that bakes in the conventions a senior security auditor silently expects: pinned compiler, NatSpec on everything, an invariant-test handler that actually finds bugs, threat-model template, deployment script with post-deploy invariant checks, CI gates that block merges on coverage drops or static-analysis findings, 70-item readiness checklist.
- 70-item pre-audit readiness checklist (7 sections × 10 items)
- Three-page threat-model template (trust assumptions, attacker capabilities, invariants)
- Working invariant-test handler — closed actor set, ghost variables, the load-bearing pattern most teams skip
- Deploy script with explicit constructor args + post-deploy invariant assertions
- CI: forge build/test, fmt --check, ≥90% coverage gate, Slither fail-on-medium, nightly 10k-run invariant pass
- Pinned solc 0.8.30, optimizer 1M runs, deterministic bytecode (cbor off, bytecode_hash none)
git clone https://github.com/IntrepidShape/pre-audit-hardening-pack