Skip to content

Security: Random21m/clawback

SECURITY.md

Security Model & Operational Rules

Core Invariants

  1. Never enter seed phrases or long-term private keys. Clawback only accepts public UTXOs, unsigned PSBTs, watch-only xpubs/zpubs, and public addresses.
  2. Always back up the Vault Package BEFORE funding. Because ephemeral vault keys are permanently wiped from RAM, losing your pre-signed Unvault TX after broadcasting the Funding TX will make the vaulted funds unspendable.
  3. Never reuse a sealed Vault Address & never RBF-replace the Funding TX. Future unknown UTXOs sent to an already-sealed vault address have no pre-signed Unvault TX and would be permanently locked. Funding PSBTs use non-RBF 0xffffffff sequence and enforce Native SegWit (bc1q…/bc1p…) inputs so fundingTxid never mutates upon signing.
  4. Use a completely separate key/seed for your Clawback Bunker. Never claw back to the same seed/wallet that controls your normal spending key.
  5. Test on Signet / Testnet4 first. Use the built-in Live Simulator and Signet mode to rehearse unvaulting and clawing back before vaulting real mainnet Bitcoin.

Reporting a Vulnerability

Please report suspected vulnerabilities privately via GitHub's Security → Report a vulnerability (private vulnerability reporting) on this repository, and do not open a public issue for fund-impacting bugs. Include the affected commit/SHA-256, reproduction steps and impact.

What Is Safe to Store Online

  • Panic-Only Package (panic-only.json) / QR: Contains only public watch addresses and finalized Clawback TX hexes hardcoded to pay your bunker address. Even if stolen, an attacker cannot redirect a single sat.
  • Vault Package JSON: Because the vault uses 2-of-2 (Primary Key + Ephemeral Key), stealing the Vault Package alone still cannot trigger an unvault without your primary hardware wallet.

There aren't any published security advisories