The Coldcard Catastrophe: How a Single Line of Code Let Attackers Drain $100M+ from “Unhackable” Hardware Wallets
A misconfigured macro in Coldcard firmware caused seed generation to use a predictable pseudo-random number generator instead of the hardware random number generator, reducing entropy to roughly 40 bits on older models. An attacker could brute-force seeds offline from public information and sweep funds from thousands of wallets.
On July 30, 2026, something unprecedented occurred in the world of Bitcoin self-custody. Between 01:31 and 01:56 UTC — a mere 25-minute window — someone systematically drained roughly 594 BTC (about $38 million) from nearly 500 separate wallets.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a preprocessor check that only tested whether a macro was defined, not its value, so a disabled hardware RNG was silently replaced by a predictable software PRNG seeded with non-secret values.
Impact
An attacker could reconstruct private keys offline and steal over $130 million in Bitcoin from thousands of wallets, with no phishing, physical access, or user error required.
What the attacker needed
Victim used vulnerable firmware to generate seed; attacker can obtain device ID and timer estimates; no physical access needed
The fix
Coinkite shipped patched firmware for every model line and advised users to generate a completely new seed on fixed firmware and move funds, because updating firmware alone does not repair an already generated seed.
How it was found
- Identify vulnerable Coldcard wallets using partly exposed USB serial numbers and public blockchain addresses.
- Brute-force candidate seeds offline using the flawed RNG and known or guessable timer values.
- Derive Bitcoin addresses from candidate seeds and match them against public blockchain addresses.
- Sweep funds from matched wallets using automated scripts with high fees and no change output.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A hardware wallet creates a seed phrase, which is a long random number that protects your Bitcoin. If that number is not truly random, an attacker can guess it by trying many possibilities on a computer. Here, a coding mistake made the random number much easier to guess, so attackers could recreate private keys and steal funds without ever touching the device.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.