The Coldcard Hack Explained: How a Five-Year-Old Firmware Bug Cost $130 Million in Bitcoin
A build-configuration error introduced in March 2021 quietly stripped Coldcard hardware wallets of most of their randomness — and in late July 2026, an attacker cashed in. Here is exactly what went wrong, who is affected, and what to do about it.
For most of the last decade, the standard advice for serious Bitcoin holders has been simple: get your coins off exchanges and onto a hardware wallet. The reasoning was sound. Exchanges fail. Hot wallets get drained by malware. A dedicated offline device that never exposes your private keys to an internet-connected computer removes an entire category of risk.
On July 30, 2026, that advice ran into its most uncomfortable counterexample. An attacker drained more than a thousand Bitcoin addresses in under an hour — without touching a single device, without any malware on any victim's computer, and without any victim doing anything wrong in the conventional sense. The keys were simply guessable, and had been for five years.
This is the full breakdown: what the bug was, how the attack worked, who is affected, who was spared, and what anyone holding a Coldcard needs to do right now.
The scale, as currently understood
The loss figures have moved substantially as blockchain analysts have mapped the affected addresses. The progression is worth showing, because it illustrates that this is still an unfolding investigation rather than a closed case:
| Date | Source | Reported scope |
|---|---|---|
| July 30–31 | Block / Lookonchain | ~594 BTC (~$38M) from roughly 500 single-signature wallets in about 25 minutes |
| July 31 | Galaxy Research | 1,082.65 BTC (~$70.2M) from 1,196 addresses in a 41-minute window |
| August 1 | Galaxy Research | 1,367.05 BTC (~$88.6M) across 4,585 addresses after a third wave |
| August 3 | TRM Labs / Galaxy Research | ~1,816 BTC (~$116M) from more than 5,200 addresses across four waves |
| August 4–5 (latest) | Galaxy Research; corroborated by Elliptic | ~$130M, with a suspected fourth wave taking the total to roughly 2,055 BTC across about 7,300 addresses |
Galaxy has been explicit that its analysis is preliminary and derived entirely from public blockchain data. TRM Labs, which puts the confirmed figure at roughly 1,816 BTC, ranks this the third-largest crypto theft of 2026 and cautions that the true scale will take time to emerge, since funds are still moving and victims often come forward months later. The differences between published figures are largely a question of how confidently a given address can be attributed to the same root cause.
One early assumption has also been revised. Rather than a single actor, Galaxy Research now reports that at least a dozen separate attackers appear to be targeting affected wallets, with differences in how transactions were constructed during each wave pointing to multiple independent parties working from the same flaw. Elliptic has separately described the ~$130M estimate as roughly correct.
Notably, the stolen funds have not moved. Researchers have tracked the proceeds being consolidated into a small number of attacker-controlled addresses — one holding well over 500 BTC — with roughly 300 addresses being watched for a first outbound spend. Whether the attacker is waiting for attention to fade or simply lacks a viable path to launder a sum this visible is unknown.
What actually went wrong
The failure was not in the Coldcard's hardware, its secure elements, or its physical tamper resistance. It was in how the device generated the single number that everything else depends on.
The role of entropy
When you set up any Bitcoin hardware wallet, the device picks an enormous random number. That number is converted into the 12 or 24 words you write down, and every private key and address you will ever use is derived from it by public, well-documented rules. The seed words and the number are the same secret expressed two ways.
The security of the entire arrangement rests on one assumption: that the random number is genuinely unpredictable. A properly generated BIP-39 seed carries 128 or 256 bits of entropy. At 128 bits, the search space is so large that brute-forcing it is not merely impractical but physically impossible with any conceivable computing resources.
Reduce that to 40 bits, and the search space collapses to roughly a trillion possibilities. That is a number a determined attacker with modern hardware can work through — and then simply check each candidate against the public blockchain to see which ones hold money.
The bug itself
Coldcard devices are built around an STM32 microcontroller that includes a true hardware random number generator. That TRNG is what should have been producing seed entropy.
In March 2021, Coinkite migrated its elliptic-curve operations to Bitcoin Core's libsecp256k1 library. According to Block's technical analysis, that migration introduced a build-configuration error. The production board configuration defined a macro — MICROPY_HW_ENABLE_RNG — with a value of zero, because Coldcard intended to use a separate hardware RNG path. But a supporting library, libngu, checked only whether that macro was defined, not whether it was enabled.
The practical consequence: seed generation silently fell back to a deterministic software pseudorandom number generator in MicroPython. Instead of drawing from the hardware TRNG, the device derived its "randomness" from values including the chip's unique ID, timer and clock register state, and the history of prior calls to the generator. None of those values are secret. Several can be estimated or constrained by an attacker who knows the device model and roughly when the seed was created.
Block's researchers found that an attacker able to determine or sufficiently narrow the device UID, timer state, and prior RNG-call history could reproduce candidate output streams entirely offline — no access to the physical device required — and then derive addresses from each candidate and compare them against the public chain.
On affected Mk3 devices, effective entropy dropped from the intended 128 bits to roughly 40. Coinkite's later advisory expanded the scope to include seeds generated on Mk4, Mk5, and Q devices before the newest firmware, where the company put the effective entropy nearer 72 bits — weaker than intended, though the newer hardware architecture makes exploitation substantially harder.
How the attack unfolded
The sweep was fast and clearly pre-computed. Chainalysis found the attacker went after the highest-value wallets first, taking roughly $30 million within the first ten minutes and hitting one wallet holding about $1.8 million. This was not opportunistic scanning; the candidate keys had evidently been generated and checked in advance, with the on-chain execution compressed into a few blocks.
Researchers tracked over 1,300 spent outputs moving across roughly 500 transactions inside a three-block window, with additional transactions matching the same on-chain fingerprint identified afterward. Subsequent waves on July 31 and August 1 followed the same pattern against addresses missed in the first pass.
The victim profile is consistent and telling: every drained wallet in the initial wave was single-signature, each held more than 0.15 BTC, and many had been completely dormant for years. Coins swept spanned 2021 through 2026 — almost exactly matching the age of the bug. Galaxy noted that while most affected wallets held under 1 BTC, the bulk of the stolen value came from a smaller number of larger wallets, a distribution that looks like individual self-custody holders rather than institutions.
Many of the people who lost funds had done everything the standard playbook told them to do. They bought a well-regarded, Bitcoin-only, open-source hardware wallet from a respected manufacturer, generated a seed on the device, wrote it down offline, and left the coins alone for years. That is textbook self-custody. It was not enough.
Who is affected
The critical thing to understand — and the part that has caused the most confusion — is that what matters is the firmware version that was running when your seed was first generated, not the firmware on your device today.
- Highest risk: seeds generated on a Coldcard Mk3 running firmware 4.0.1 through 4.1.9 (the flaw was introduced in 4.0.0, released March 2021), without additional dice rolls and without a strong BIP-39 passphrase.
- Lower but real risk: seeds generated on Mk4, Mk5, or Q devices on firmware predating the fixes. Coinkite has said the newer hardware architecture significantly reduces practical exploitability, but has still advised migration.
- Not fixable by updating: a seed created with weak entropy stays weak forever. Installing new firmware protects seeds you generate from now on. It does nothing for a seed that already exists.
- Portable weakness: importing an affected seed into a Trezor, a Ledger, or a brand-new Coldcard does not help. The seed is the vulnerability. It is guessable wherever it lives.
Who was spared
Several groups came through untouched, and the reasons are instructive for anyone setting up a wallet in future:
- Users who added their own dice rolls. Coldcard has long supported mixing in user-supplied entropy from physical dice. Coinkite's guidance references 50 independent rolls as sufficient. Owners who did this ended up with seeds the attacker could not reproduce, because the external randomness never passed through the broken code path.
- Users with a strong BIP-39 passphrase. A genuine passphrase (not the device PIN — these are different things) is combined with the seed to derive keys. A strong one puts the resulting wallet out of reach even if the underlying seed is guessable.
- Multisig users — with an important caveat covered below.
The multisig trap
Multisignature setups have been widely and correctly recommended as the gold standard for large holdings. In this incident they mostly held up — but there is a specific and dangerous scenario worth spelling out.
Consider a 2-of-3 multisig where two of the three keys came from affected Coldcards and the third came from an unaffected device. While the funds sit unspent, the multisig script is hidden behind an address hash and the attacker cannot see which keys are involved. The moment you broadcast a transaction, that script is revealed on-chain. An attacker who has already reconstructed the two compromised keys now has everything needed to satisfy the 2-of-3 threshold.
Worse, the revealing transaction may still be unconfirmed in the mempool, which gives an attacker a window to broadcast a competing transaction with a higher fee and take the funds first.
If you hold a multisig where more than one key came from a potentially affected device, this warrants careful planning rather than a hurried spend. Getting advice from someone who genuinely understands multisig migration mechanics is worth it before you move anything.
What affected users should do
Coinkite has since gone considerably further than a firmware patch. The company halted shipments, destroyed affected inventory, and — unusually for a hardware vendor mid-crisis — publicly named competitor devices its customers could safely move to: Bitkey, Ledger, Trezor, Blockstream Jade and BitBox, with AnchorWatch, Casa, Unchained, Nunchuk and Liana suggested for anyone wanting collaborative custody.
Coinkite's CEO published an open letter urging affected users to move funds before reading any further analysis. The company has released fixed firmware: version 4.2.0 or later for Mk3, 5.6.0 or later for Mk4 and Mk5, and 1.5.0Q or later for the Q. These updates enforce proper use of the hardware TRNG and add build-time checks intended to prevent a recurrence.
The migration sequence Coinkite recommends, and which is worth following precisely:
- Determine whether your seed is affected. Was it generated on a Coldcard during the vulnerable firmware window, without dice rolls and without a strong passphrase? If yes, or if you are unsure, treat it as compromised.
- Update the device to the fixed firmware. This protects the new seed you are about to create.
- Generate an entirely new seed on the updated device. Consider adding your own dice rolls this time.
- Back it up properly and offline — on paper at minimum, stamped metal for meaningful amounts.
- Verify the new wallet. Record the wallet fingerprint and confirm a receiving address on the device's own screen, not on your computer.
- Send a small test transaction to the new wallet and confirm it arrives.
- Only then move the remaining funds.
- Keep the old backup until the new setup is fully verified and every balance is confirmed in its new home.
Coinkite has warned that rushing this sequence can create a more immediate risk than the flaw itself — a botched migration to an unverified address loses funds just as permanently as a theft does. Move quickly, but do not skip the verification steps.
The AI question
One detail has drawn particular attention across the Bitcoin developer community. The flawed code sat in a public, open-source repository for more than five years. It survived Coinkite's own reviews and the scrutiny of a community that takes pride in auditing exactly this kind of software.
Coinkite has said it must assume someone used AI to review older versions of the firmware and surface the flaw. The company also disclosed that it had run a leading AI model over its own codebase weeks earlier, and that the model did not flag the problem.
Whatever the truth of how the bug was found, the episode raises a question the security community will be working through for some time: if automated analysis can now surface subtle, long-dormant build-configuration errors in mature open-source projects, then every widely deployed codebase carries latent risk that "many eyes" review did not catch. The defender and the attacker get the same tools.
What this means for self-custody
It would be easy to draw the wrong lesson here. A few things worth keeping straight:
This does not mean exchanges are safer. The history of exchange failures — Mt. Gox, FTX, Celsius, and many others — involves vastly more money lost by vastly more people. One hardware wallet firmware bug, however serious, does not reverse that comparison.
It does mean self-custody has an operational dimension people underrate. The mental model that a hardware wallet is a set-and-forget device has taken a real hit. Firmware advisories matter. Knowing which device and firmware generated your seed matters. Security analysts have been making the point that holders now either need to follow threat disclosures themselves or accept paying someone else to do that watching.
It vindicates the paranoid practices. Dice rolls, passphrases, and multisig were often dismissed as excessive for ordinary holders. Every one of those measures protected people in this incident. The cost of adding them is an hour of setup time; the benefit, this time, was everything.
It fits a documented pattern. Security firm Blockaid has noted that most crypto losses in the first half of 2026 came not from smart contract exploits but from compromised keys and operational security failures. This incident sits squarely in that category — the exposure originated at the key generation stage, before any user action.
Some industry observers have suggested the episode may push more holders toward regulated custodians and spot Bitcoin ETFs. That is a real possibility, and for some holders it is a reasonable response. It is also worth noting that it substitutes one set of risks for another rather than eliminating risk.
Market reaction
Bitcoin traded near $62,600 in the aftermath, roughly 3% below the prior close but holding above the $60,000 level. No causal link between the theft and the broader move has been established — the stolen coins have not been sold, and the amount involved is small relative to daily volume.
Two secondary signals have drawn analyst attention. Exchange deposits jumped, with Binance and other venues adding a net figure in excess of 11,000 BTC on July 31. Separately, a cluster of addresses created between 2010 and 2017 began moving coins after nine to sixteen years of dormancy. Neither can be attributed to this incident with any confidence — large inflows and dormant-wallet movements have many ordinary explanations — but the timing has been widely noted.
The bottom line
The Coldcard incident is one of the most consequential failures in the history of Bitcoin self-custody, not because of the dollar amount — larger sums have been lost many times over — but because of what failed. The device did its job of keeping keys offline perfectly. The failure was upstream, in the generation of the secret itself, in a configuration error that made the offline protection irrelevant.
If you own a Coldcard, the action is unambiguous: assume your seed is affected unless you specifically added dice rolls or a strong passphrase, update the firmware, generate a fresh seed, verify carefully, and migrate. Do it deliberately, but do it now.
If you own any other hardware wallet, the lesson is more general. Know which device and firmware generated your seed. Follow your manufacturer's security advisories. Add external entropy when the option exists. Use a passphrase for meaningful holdings. And consider multisig with keys from different manufacturers, so that no single vendor's mistake can reach all of your coins at once.
For background on the underlying concepts, see our guides to seed phrases, hardware wallets, and multisig setups. For the specific mechanics of moving funds safely, see how to migrate to a new Bitcoin wallet.
This story is developing. Figures reflect published research as of September 7, 2026 and have been revised upward several times since July 30. Always verify current guidance directly with your hardware wallet manufacturer before acting.