

Hardware wallets have long been considered the gold standard of cryptocurrency self-custody. By keeping private keys completely disconnected from the internet—a setup known as being "air-gapped"—devices like Coinkite’s Coldcard were built to withstand even the most sophisticated online attacks.
However, a devastating exploit resulting in the theft of roughly $130 million (over 2,000 BTC) has shaken the crypto community. The attack did not rely on physical theft, phishing links, or malware. Instead, it exploited a fundamental vulnerability at the very heart of cryptography: entropy.
Following an intensive three-week security audit involving external researchers and advanced artificial intelligence models, Coinkite released a major firmware overhaul. Here is an in-depth look at what went wrong, how the flaw was exploited, and the critical steps Coldcard users must take to secure their funds.
To understand this vulnerability, one must first understand how a crypto wallet generates private keys. When setting up a hardware wallet, the device generates a random seed phrase (usually 12 or 24 words). This process relies on high mathematical randomness, referred to as entropy.
Standard Bitcoin seed phrases require 128 bits (or 256 bits) of entropy to ensure that guessing a private key is statistically impossible, even if every computer on Earth worked continuously for billions of years.
The 40-Bit Flaw
In July 2026, security analysts noticed a series of automated, high-speed drains targeting air-gapped Coldcard wallets. The culprit was a firmware bug originating in 2021. On affected devices, the seed generation process failed to produce sufficient randomness, dramatically reducing the wallet's entropy from the industry-standard 128 bits down to roughly 40 bits.
Reducing entropy to 40 bits drastically narrows the search space for attackers. Instead of trying to guess one combination out of trillions of possibilities, bad actors were able to use brute-force computing algorithms to calculate and predict the generated private keys without ever gaining physical access to the hardware devices.
This incident highlights an emerging frontier in cybersecurity: the dual-use nature of artificial intelligence in code auditing and vulnerability discovery.
Reports suggest attackers may have leveraged large language models (LLMs) to analyse older releases of Coinkite's open-source codebase, rapidly identifying the subtle weakness in the pseudo-random number generator (PRNG). Once identified, programmatic scripts were deployed across the blockchain, systematically sweeping funds from matching weak addresses across multiple attack waves.
Conversely, Coinkite utilised AI tools alongside human security researchers during their three-week emergency audit. By subjecting their firmware to intense scrutiny, the team identified additional edge cases and vulnerabilities beyond the primary seed-generation flaw.
Coinkite’s firmware update (version 5.6.1 for Mk4 and Mk5 models, and 1.5.1Q for the Coldcard Q) introduces sweeping changes to how private keys are generated, verified, and signed.
1. Mandatory User-Supplied Randomness
Hardware random number generators (RNGs) can fail or contain subtle flaws. To guarantee true randomness moving forward, Coldcard now requires users to physically supply their own entropy when generating a new wallet seed. Users must choose from:
The device then mathematically combines this user input with its internal hardware RNG, ensuring that even if one source is compromised, the resulting private key remains mathematically unguessable.
2. Upgraded Pseudo-Random Number Generation
Coinkite replaced its legacy Yasmarang backup PRNG with SHA-256 Hash_DRBG, a standard recognised for high-security cryptographic applications. Additionally, automated hardware integrity checks were added to flag any unexpected RNG failures immediately.
3. Transaction Signing Verification (PSBT Hardening)
The firmware audit revealed a theoretical vulnerability in how Partially Signed Bitcoin Transactions (PSBTs) were processed. If a user’s connected computer were infected with malware, it could theoretically alter transaction details over the USB connection after the user approved them on-screen but before the Coldcard applied its digital signature.
The updated firmware now conducts a secondary inspection of the transaction package right before applying the final signature, alerting the user and halting the operation if any parameters have been altered.
4. Additional System Hardening
The updates also tightened USB data access controls, reinforced the security of Delta Mode (a duress feature), and overhauled the handling of wallet backup files.
If you generated a Bitcoin seed phrase on a Coldcard Mk4, Mk5, or Q between 2021 and July 2026, your wallet may be vulnerable to brute-force key calculation. Updating the firmware alone is not enough to protect funds on an existing, compromised seed.
Step-by-Step Migration Guide:
The $130 million Coldcard breach serves as a stark reminder for the entire Web3 ecosystem: security is only as strong as its weakest mathematical link. Air-gapped hardware devices protect keys from network exposure, but they remain entirely dependent on robust, verifiable randomness.
As AI tools make auditing open-source code easier for both security teams and malicious entities, hardware wallet manufacturers must continuously audit their cryptographic foundations. For Bitcoin holders, multi-factor entropy routines and multi-signature setups remain the best defence against single points of failure in self-custody.
Disclaimer: This article is provided for informational purposes only, mistakes may be made, and it's not offered or intended to be used as legal, tax, investment, financial, or any other advice.
