Crime•

Coinkite's Coldcard Postmortem Shows a Weak Random Number Source Slipped Past 15 Reviews in Five Years

Coinkite's postmortem of the Coldcard exploit finds firmware used a software random number generator instead of hardware from March 2021 to July 2026, evading at least 15 reviews.

Written By :MINRK
Coinkite's Coldcard Postmortem Shows a Weak Random Number Source Slipped Past 15 Reviews in Five Years

Photo by Tim Käbel on Unsplash

Mentioned in This Article

BTC
BTC
Bitcoin
$60,554.00
3.59%

1. Coinkite publishes its account of the Coldcard exploit

Coinkite, the maker of Coldcard bitcoin hardware wallets, published a detailed postmortem on Monday, November 23, 2026, explaining how a single configuration error left wallet seeds weak for more than five years. From March 2021 to July 2026, Coldcard firmware drew randomness from a software generator instead of the device's hardware source, and at least 15 separate reviews failed to catch it.

The report arrives roughly four months after attackers began draining bitcoin (BTC) from compromised Coldcard wallets in July 2026. Coinkite modeled the document on the accident reports produced by the US National Transportation Safety Board, laying out the sequence of events, the safeguards that failed and the changes made since, rather than presenting a short incident notice.

The central finding is stark in its simplicity. The device that was supposed to generate unguessable private keys was, for years, relying on a source of randomness that was never meant to protect money.

2. What went wrong inside Coldcard's firmware?

The flaw was a substitution: Coldcard firmware used Yasmarang, a software pseudorandom number generator that ships with MicroPython, in place of the hardware random number generator that seed creation was designed to use. Seeds produced on affected devices therefore carried far less unpredictability than intended.

Every bitcoin wallet begins with a seed, a large random number from which all of its private keys are mathematically derived. The security of the whole system rests on that number being impossible to guess. The industry standard calls for 128 bits of entropy or more, a range of possibilities so vast that no computer could search it.

According to Coinkite's analysis, seeds created during the defect window had only about 40 to 72 bits of effective randomness. Because each additional bit doubles the number of possibilities, that shortfall is enormous. It brought the search space within reach of a determined attacker, who could recreate private keys offline by working through the possible outputs of the weak generator, without ever touching or connecting to a victim's device.

Pseudorandom number generators like Yasmarang produce sequences that look random but are fully determined by their starting state. They are suitable for tasks such as games or simulations. A hardware random number generator, by contrast, samples physical noise inside the chip, which is why wallet makers rely on it for key generation.

3. Why a seed's randomness decides a wallet's safety

To understand the scale of the problem, it helps to recall what a hardware wallet actually protects. The device itself holds no coins. Bitcoin lives on the blockchain, and whoever can produce valid signatures for an address controls the funds held there. Those signatures depend entirely on private keys, and the keys depend entirely on the seed created when the wallet is first set up.

Most users never see that seed as a number. They see it as a list of 12 or 24 recovery words written on paper or stamped into metal, an encoding of the same underlying value. If two people ended up with the same seed, they would control the same coins. Strong randomness is what makes that outcome impossible in practice.

When randomness is weak, the attacker's task changes from guessing a needle in an astronomically large haystack to searching a much smaller pile. With effective entropy in the range of 40 to 72 bits, an attacker can test candidate seeds against funded addresses on the public blockchain until matches appear.

Because this search happens entirely offline, victims receive no warning. There is no failed login, no suspicious connection and no alert from the device. The first sign of trouble is a transaction moving funds out of the wallet.

4. How did the flaw survive years of audits?

The flaw survived because every review checked something adjacent to the real risk rather than the risk itself. Coinkite's report says each effort answered a nearby question: auditors confirmed that the hardware random number generator code existed in the firmware, but no one verified that the seed generation path actually reached it.

Coinkite counts at least 15 independent review efforts between 2021 and 2026 that missed the problem. They included two paid third-party security audits, physical security research by Ledger Donjon, the hardware attack team at rival wallet maker Ledger, and an AI-assisted review of the firmware that produced 85 findings of its own without flagging the defect.

Statistical testing did not help either. The output of the weak generator looked random enough that standard tests could not distinguish it from properly seeded output. That is a known limitation of such tests: they can detect obvious patterns, but they cannot prove that a sequence is unpredictable to someone who knows how it was produced.

A further safeguard also failed. The underlying libNgU code contained a guard that was meant to reject exactly this kind of faulty configuration, but it did not work as intended, so the misconfigured firmware shipped without triggering an error.

5. Why the Coldcard exploit is a lesson in layered security

Security engineers often describe failures in terms of layers. Each control, whether an audit, a test or a code-level guard, is supposed to catch what the others miss. The Coldcard case shows how a flaw can pass cleanly through every layer when each one is aimed at a slightly different target.

A code review that confirms a function exists is not the same as one that traces how data flows into the keys a user will rely on. A statistical test that checks whether output looks random is not the same as one that checks where the randomness came from. And a defensive guard only protects users if it is itself tested against the failure it was written to stop.

The report's emphasis on these gaps gives it relevance beyond a single wallet brand. Hardware wallets are marketed as the safest way to hold bitcoin precisely because keys are generated and stored offline. When the generation step itself is weak, keeping the device offline offers no protection, because the attacker never needs access to it.

6. How many Coldcard users lost bitcoin?

The full number of victims is not known, and Coinkite cautions that the available figures cannot simply be combined. The company received about 300 support tickets related to losses, tied to 242 customer accounts, which represents roughly 0.21% of its estimated user base.

Separately, Galaxy Research has attributed more than 8,600 blockchain addresses to the theft. Coinkite warns that addresses and accounts measure different things: a single wallet can control many addresses, and not every affected user will have filed a ticket. For that reason, neither figure should be read as a count of victims.

The uncertainty reflects how bitcoin wallets work. A user's funds are often spread across dozens or hundreds of addresses derived from one seed, and on-chain analysis can group those addresses only by inference. Support tickets, meanwhile, capture only those customers who noticed the loss and contacted the company.

7. The AI question hanging over the thefts

One of the more striking details in the report concerns timing. The first thefts began two days after the full weights of Kimi K3, an openly released AI model, became available.

Coinkite stops short of blaming the model. It describes AI-assisted discovery of the flaw as a plausible hypothesis, not an attribution, and the company does not claim to know how the attackers found the weakness.

Events after disclosure show why the possibility is taken seriously. Once the flaw became public, the Bitcoin Red Team used Kimi K3 in a multi-model sweep lasting 108 hours, which flagged nearly 8,000 candidate findings across 501 bitcoin software projects. The exercise illustrated how AI has changed the economics of hunting for vulnerabilities, compressing work that once took specialists weeks into days of automated analysis.

That shift cuts both ways. The same tools that help defenders review large codebases can help attackers find the one overlooked line that matters. For wallet makers and other developers handling private keys, the result is less time between a flaw entering code and someone being able to exploit it.

8. Coinkite rebuilds seed generation

Coinkite says it has rebuilt the way Coldcard devices generate seeds. The new design requires users to contribute their own entropy, draws on multiple hardware sources rather than one, and adds checks both when firmware is built and each time a device boots, so that a misconfiguration of this kind would be caught before it reached customers.

Keylabs, an independent security reviewer, examined the changes and concluded that the defect is fully closed in the current standard firmware.

Requiring user entropy, for example through dice rolls or other manual input, is a long-standing practice among security-conscious bitcoin holders. It means that even if a device's own random number generator were compromised, the final seed would still depend on information the device could not predict on its own.

9. What Coldcard owners need to do next

No firmware update can repair a seed that was already generated on an affected device. Users whose wallets were created during the defect window need to move their funds to new wallets with freshly generated seeds, because the old keys remain exposed no matter what software the device now runs.

That distinction matters for anyone who assumes that updating firmware is enough. The update secures future seed generation, but any wallet created between March 2021 and July 2026 on vulnerable firmware should be treated as compromised until its funds have been migrated.

Coinkite closes its report with an appeal to whoever holds the stolen bitcoin, urging them to return it. The company argues that returning the funds is the only action that can directly reduce the harm suffered by victims, since no technical fix can undo transactions already confirmed on the blockchain.

Newsletters

All newsletters

Don't miss another story.

Subscribe to the MINRK Newsletter today.

Tick the newsletters you want. No selection? You'll get MINRK Headlines.

By signing up, you will receive emails about MINRK products and you agree to our terms of use and privacy policy.