<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/they-didn-t-steal-your-keys-they-regenerated-them--zeogglmg2" -->

---
title: They Didn’t Steal Your Keys. They Regenerated Them.
description: A critical entropy failure in Coinkite's Coldcard Bitcoin hardware wallet, present since a March 2021 commit and shipped in firmware v4.0.0, silently fell back...
canonical: https://daily.dev/posts/they-didn-t-steal-your-keys-they-regenerated-them--zeogglmg2
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: They Didn’t Steal Your Keys. They Regenerated Them. | daily.dev
og:description: A critical entropy failure in Coinkite's Coldcard Bitcoin hardware wallet, present since a March 2021 commit and shipped in firmware v4.0.0, silently fell back...
og:url: https://daily.dev/posts/they-didn-t-steal-your-keys-they-regenerated-them--zeogglmg2
og:image: https://api.daily.dev/og/posts/zeOGGLmG2.png
og:image:alt: They Didn’t Steal Your Keys. They Regenerated Them.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# They Didn’t Steal Your Keys. They Regenerated Them.

**[Coins Bench](https://daily.dev/sources/coinsbench)** · 14 min read · 3 upvotes · 1 comments

## Summary

A critical entropy failure in Coinkite's Coldcard Bitcoin hardware wallet, present since a March 2021 commit and shipped in firmware v4.0.0, silently fell back to a non-cryptographic PRNG (Yasmarang) instead of the chip's true hardware random number generator due to a faulty #ifndef macro check rather than a value check. This collapsed the effective seed entropy from 2^256 down to roughly 2^32 (about two billion candidates, brute-forceable over a weekend), with the blockchain itself serving as a free verification oracle. Roughly $130 million has been stolen from about 1,200 wallets across at least a dozen attacker groups as of early August 2026. Air-gapping provided no protection since nothing was exfiltrated, the weakness was baked into the seed at generation time, and patching the firmware does not retroactively fix existing seeds; affected holders must generate a fresh seed on patched firmware and migrate funds. Multisig setups using identical vulnerable devices offer no real protection. The piece also covers two related 2026 threats: a $13.43 million theft via standing unlimited token approvals exploited through a SwapNet vulnerability, and EIP-7702 delegation being flagged as an emerging exploit class that can hand over account control via a single signature.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://coinsbench.com/they-didnt-steal-your-keys-they-regenerated-them-00ead2be40c7>

## Questions this post answers

### Why were Coldcard Bitcoin hardware wallets losing funds even though they were air-gapped and never connected to the internet?

A firmware bug present since a March 2021 commit caused the random number generator to silently fall back to a non-cryptographic PRNG called Yasmarang instead of the STM32 chip's true hardware RNG, because a library checked whether a config macro was defined rather than whether it was enabled. This collapsed possible seed values on older devices to fully deterministic outputs, and to about 2^32 on newer models, letting attackers brute-force wallets using the public blockchain as a free verification oracle; roughly $130 million was stolen.

_Anyone auditing wallet or entropy-dependent code can track hardware security disclosures like this on daily.dev._

### Does updating Coldcard firmware fix a Bitcoin wallet seed that was generated with the vulnerable random number generator?

No, updating the firmware only prevents future seeds from being weak; it does not retroactively fix a seed already generated on affected firmware (Mk2/Mk3 v4.0.0-v4.1.9, and Mk4/Q/Mk5 broadly). The exposure depends on the firmware version running at the moment the seed was created, so the only remedy is generating a completely new seed on patched firmware and migrating all funds away from the old seed, which remains weak wherever it is used.

_Developers tracking wallet security advisories can follow remediation guidance like this on daily.dev before migrating funds._

### Why did XORing two Yasmarang PRNG outputs together fail to produce secure Bitcoin wallet entropy?

XOR-ing two reproducible, non-random streams together still produces a fully reproducible stream, since XOR cannot create new entropy. One stream was seeded from the chip's fixed UID XORed with a predictable SysTick timer and RTC registers, while the second was seeded from hardcoded public constants (0x0a8ce26f, 69, 233) visible in the open-source code, making the combined output guessable rather than cryptographically random.

_Engineers reviewing entropy sources in security-critical firmware can find deep dives like this via daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@akkitto** · 0 upvotes

> Welcome to the world of C.

## Similar posts on daily.dev

- [Crypto hardware wallet owners face fresh security risks after recent spate of personal data thefts](https://daily.dev/posts/crypto-hardware-wallet-owners-face-fresh-security-risks-after-recent-spate-of-personal-data-thefts-cfoxbggml) · TechCrunch · 0 upvotes · 0 comments

---

Tags: [#cryptography](https://daily.dev/tags/cryptography), [#bitcoin](https://daily.dev/tags/bitcoin)

[View this post on daily.dev](https://daily.dev/posts/they-didn-t-steal-your-keys-they-regenerated-them--zeogglmg2)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"They Didn’t Steal Your Keys. They Regenerated Them.","url":"https://daily.dev/posts/they-didn-t-steal-your-keys-they-regenerated-them--zeogglmg2","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/they-didn-t-steal-your-keys-they-regenerated-them--zeogglmg2"},"datePublished":"2026-09-16T12:35:25.982Z","dateModified":"2026-09-16T12:35:56.803Z","description":"A critical entropy failure in Coinkite's Coldcard Bitcoin hardware wallet, present since a March 2021 commit and shipped in firmware v4.0.0, silently fell back...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ef415bb0109e1991a78a0adc518ce6ce?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ef415bb0109e1991a78a0adc518ce6ce?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Coins Bench","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Coins Bench","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ba340d3c8caa4c2586911332928e24d9","url":"https://daily.dev/sources/coinsbench"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/they-didn-t-steal-your-keys-they-regenerated-them--zeogglmg2","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"cryptography,bitcoin","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Coins Bench","item":"https://daily.dev/sources/coinsbench"},{"@type":"ListItem","position":3,"name":"They Didn’t Steal Your Keys. They Regenerated Them."}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/they-didn-t-steal-your-keys-they-regenerated-them--zeogglmg2","comment":[{"@type":"Comment","text":"Welcome to the world of C.","datePublished":"2026-09-16T13:15:34.522Z","url":"https://daily.dev/posts/zeOGGLmG2#c-YotQtTnly","author":{"@type":"Person","name":"Daniel","url":"https://daily.dev/akkitto","image":"https://media.daily.dev/image/upload/s--FtwJqX4c--/f_auto/v1754900041/avatars/avatar_29TCpY2hJR72V3BlxPXzX?_a=BAMClqZW0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/they-didn-t-steal-your-keys-they-regenerated-them--zeogglmg2#faq","mainEntity":[{"@type":"Question","name":"Why were Coldcard Bitcoin hardware wallets losing funds even though they were air-gapped and never connected to the internet?","acceptedAnswer":{"@type":"Answer","text":"A firmware bug present since a March 2021 commit caused the random number generator to silently fall back to a non-cryptographic PRNG called Yasmarang instead of the STM32 chip's true hardware RNG, because a library checked whether a config macro was defined rather than whether it was enabled. This collapsed possible seed values on older devices to fully deterministic outputs, and to about 2^32 on newer models, letting attackers brute-force wallets using the public blockchain as a free verification oracle; roughly $130 million was stolen. Anyone auditing wallet or entropy-dependent code can track hardware security disclosures like this on daily.dev."}},{"@type":"Question","name":"Does updating Coldcard firmware fix a Bitcoin wallet seed that was generated with the vulnerable random number generator?","acceptedAnswer":{"@type":"Answer","text":"No, updating the firmware only prevents future seeds from being weak; it does not retroactively fix a seed already generated on affected firmware (Mk2/Mk3 v4.0.0-v4.1.9, and Mk4/Q/Mk5 broadly). The exposure depends on the firmware version running at the moment the seed was created, so the only remedy is generating a completely new seed on patched firmware and migrating all funds away from the old seed, which remains weak wherever it is used. Developers tracking wallet security advisories can follow remediation guidance like this on daily.dev before migrating funds."}},{"@type":"Question","name":"Why did XORing two Yasmarang PRNG outputs together fail to produce secure Bitcoin wallet entropy?","acceptedAnswer":{"@type":"Answer","text":"XOR-ing two reproducible, non-random streams together still produces a fully reproducible stream, since XOR cannot create new entropy. One stream was seeded from the chip's fixed UID XORed with a predictable SysTick timer and RTC registers, while the second was seeded from hardcoded public constants (0x0a8ce26f, 69, 233) visible in the open-source code, making the combined output guessable rather than cryptographically random. Engineers reviewing entropy sources in security-critical firmware can find deep dives like this via daily.dev."}}]}
```

