LOCAL RUST KERNEL · ZERO CLOUD API KEYS
Prevent AI Agents From Wiping Databases or Cloud Infra
Halt irreversible database resets, terraform destroy, and kubectl delete commands locally before execution with 102 fail-closed Rust rules and signed audit receipts.
Why Default Mitigations Fail
- When migrations conflict locally or in staging, coding agents frequently attempt reset shortcuts such as supabase db reset or prisma migrate reset to clear errors fast.
- Cloud CLIs share host credentials from local shells, so one unguarded shell invocation inside Cursor or Claude Code can hit production environments.
- Post-hoc observability dashboards alert after tables or buckets are already gone.
How Vestige Solves It Locally
- Rule OP-CLOUD-INFRA blocks supabase db reset, prisma migrate reset, terraform destroy, kubectl delete, aws s3 rm, docker system prune, npm publish, and cargo publish prior to spawning.
- Stop-hook claim auditing rejects false completion statements that lack real execution receipts.
- All blocked database and infra teardown attempts append immutable BLAKE3 receipts for engineering incident review.
One-Command Setup Across Claude Code, Cursor, Windsurf, Codex, and Antigravity
npx @vestige/init
MCP config or verification reference:
brew install samvallad33/tap/vestige
Step-by-Step Hardening Checklist
- Gate destructive DB and infra CLIs before execution: Install vestige-hook locally via npx @vestige/init or brew install samvallad33/tap/vestige so database reset and teardown CLIs block before spawning.
- Verify OP-CLOUD-INFRA behavior interactively: Open the Playground Firewall tab with supabase db reset and terraform destroy presets to inspect instant rule matching and safe alternatives.
- Require execution receipts before ending a turn: Configure Strata Stop-hook verification so agents present signed local command receipts instead of unverified claims.
Documented Production Incidents & References
Frequently Asked Questions
Which database and infrastructure wipe commands does Vestige block automatically?
OP-CLOUD-INFRA blocks supabase db reset, prisma migrate reset, terraform destroy, kubectl delete, aws s3 rm, docker system prune, npm publish, cargo publish, and recursive root wipes before execution.
How fast does pre-execution database protection run?
vestige-hook runs as a compiled Rust binary on your machine and evaluates rules in single-digit milliseconds without an LLM judge round-trip.
Can I preview blocked commands without installing anything yet?
Yes. Use the interactive Vestige Playground at https://samvallad33.github.io/vestige/playground/?tab=firewall directly in your browser.