Part 4: Inside a hardware wallet
Part 4 of 5 in a deep dive on hardware wallets, randomness and the vaults behind every device. Start with Part 1 if you are new to the series.
Inside a hardware wallet: architecture, signing flow, and failure modes
A hardware wallet is a single-purpose signing appliance. Its job is narrow: generate a seed from hardware entropy, never export it, and sign only what the user has seen and approved on a screen the host computer cannot control.
Step 3 is the real security product. Everything else could, in principle, be done by a phone's Secure Enclave if it supported the right curves. What the phone cannot provide is a display and input path that is independent of a possibly compromised operating system.
Three architectural schools
| Design school | Example devices | Where the seed lives | Where signing happens | Trade-off |
|---|---|---|---|---|
| Secure-element-centric | Ledger Nano, Stax, Flex | Inside a CC EAL5+ (Nano X) or EAL6+ (Nano S Plus, Stax) secure element running Ledger's BOLOS | Inside the secure element | Strongest physical resistance; less open to outside audit, and Ledger Recover showed the firmware can send encrypted seed shards off the device |
| Dual-chip, SE as gatekeeper | Trezor Safe 3, Safe 5 | Encrypted on a general MCU; an EAL6+ OPTIGA Trust M secure element releases its share of the decryption secret only after a correct PIN | On the general MCU | Fully open-source firmware and auditability; MCU is the softer target for glitching |
| Multi-SE and air-gapped | Coldcard Mk4/Q, Keystone 3 Pro | Protected by several secure elements; Coldcard uses chips from two different vendors | On the MCU after reconstructing the secret | Defense against a single chip-vendor failure; no USB data path in air-gapped mode; more operational friction. Coldcard's 2026 seed bug lived in firmware, so two secure elements did not help |
No design wins on every axis. Ledger optimizes for physical attacker resistance. Trezor optimizes for verifiability. Coldcard and Keystone optimize for removing the network-connected host from the trust boundary. I see that as healthy competition, and the vendors' security teams actively test each other's devices.
What hardware wallets have and have not stopped
| Date | Incident | What it shows |
|---|---|---|
| Oct 2026 | Binance lost about $6.3 billion after attackers reached its internal wallet-signing service and used it to sign transfers and 50 EIP-7702 delegations over an MPC hot wallet | No key was extracted; an automated signer approved what an authenticated caller asked, and MPC slowed revocation |
| Oct 2026 | Ledger devices sold through reseller CryptoBilis carried an unauthorized hardware implant that captured recovery phrases at setup | The secure element was intact; the trusted screen itself was watched |
| Jul 2026 | Coldcard firmware generated seeds without its hardware random generator from March 2021 until a July 2026 fix | Two secure elements protected seeds that were guessable from the start |
| Mar 2025 | Ledger Donjon disclosed that a known voltage-glitching attack on the Trezor Safe 3 microcontroller could bypass its supply-chain protections and let an attacker reprogram the chip | The weak point was the general-purpose chip beside the secure element; the attack needs physical access |
| Feb 2025 | Bybit lost about $1.5 billion when a compromised Safe{Wallet} front end sent a malicious contract upgrade to signers' Ledger devices while the web UI showed a legitimate-looking transaction | The devices protected the keys; signers approved a payload that differed from what the UI showed |
| Sep 2024 | EUCLEAK side channel in Infineon's ECDSA library, affecting YubiKey 5 and Optiga-based products | Even certified secure elements carry implementation risk; mitigation required new firmware or new hardware |
| May 2023 | Ledger announced Ledger Recover, an opt-in service that splits an encrypted copy of the seed into three shards held by Ledger, Coincover and EscrowTech | Users learned the secure element policy is set by firmware the vendor can update |
The Bybit case is the one I would put in front of any risk committee. A multisig that needed at least three signers, each approving on a Ledger device, did what it was built to do: keep keys private and produce valid signatures. The failure was at step 3 of the flow above. The signers approved, on their devices, a payload that differed from the transaction the web interface showed them. The industry response is clear signing, such as ERC-7730, a metadata standard authored at Ledger, which teaches devices to render complex contract calls in human terms.
Binance, October 2026: when the signer is a machine
On 29 October 2026, Binance lost about $6.3 billion, roughly four times the Bybit loss and the largest crypto theft on record. According to TRM Labs data reported by Gizmodo, most of it left across 10 blockchains in about 20 minutes, and around $3 billion was later frozen. Binance said it would cover losses from its SAFU fund, part of its futures insurance fund, and company money. The FBI attributed the attack to North Korea's TraderTraitor unit.
Binance's initial findings describe a campaign that ran for months and never required a stolen private key. As SafeDep's summary of those findings lays out, the path ran through a tampered developer tool, a fake job interview, and an internal AI tool.
Key safety held completely. The hot wallet used MPC, so no single private key existed to steal, and Binance reports no evidence that any key leaked. The cryptography and the key shares did exactly what they were designed to do.
Intent safety failed at a machine. An exchange cannot have humans approve every withdrawal, so a signing service checks requests against rules and signs. Once an authenticated caller reached it, it signed what it was asked, including a transaction type, EIP-7702 delegation, that has no place in routine withdrawals. Bybit's signers approved a payload they could not read, and Binance's signer approved one that no person read at all.
MPC slowed the cleanup. The malicious delegations lived on-chain, so Binance's withdrawal kill switch had no effect on them. Revoking them required a new signature from the wallet, and because there was no single key to sign it, Binance only cleared the delegation at 00:10 UTC on 30 October, about four hours after the first transfer. The property that protects keys from theft also slowed the emergency response.
I read Binance as the institutional version of the hardware wallet lesson. Hardware wallets, HSMs, and MPC solve where the key lives. None of them decide what the key should sign. That decision belongs to a policy layer that must sit between any caller and the signer: per-transaction and per-hour value ceilings, destination allowlists, and a hard block on unusual transaction types such as delegations or contract upgrades unless a quorum approves them on hardware devices with readable screens.
Coldcard and Ledger, 2026: when the device itself is the weak point
Two 2026 incidents hit hardware wallets directly, from opposite directions.
Coldcard: keys born weak. Coldcard firmware from March 2021 onward created seeds with a weak software generator instead of the hardware one, leaving about 40 bits of entropy on older devices. Attackers began draining wallets on July 30, 2026, and took about 1,816 BTC, roughly $116 million. The device's two secure elements did not help, because the weakness lived in how the keys were born, not in how they were stored. Coinkite's advisory said funds were at risk if the seed was created on affected firmware without extra dice-roll entropy and without a strong BIP-39 passphrase, which is a strong argument for mixing in your own entropy at setup.
Ledger: the screen was watched. On October 9, 2026, buyers of Ledger devices from the Southeast Asian reseller CryptoBilis began reporting drained wallets, and Ledger confirmed an unauthorized hardware implant in an affected device. According to Ledger, a covert chip read the recovery phrase off the screen during setup and transmitted it over LTE using an eSIM. On-chain researchers put suspected losses at more than $93 million, while Ledger said its own systems and direct sales channels were not compromised. This attack went after step 3 of the signing flow above: the trusted screen worked as designed, but someone had wired an eavesdropper into the device before it reached its owner.
Together they set two baseline rules for anyone holding meaningful value: buy hardware only directly from the manufacturer, and treat the moment of seed creation as the most sensitive step in the device's life.
The threat model splits into what hardware wallets stop and what they leave to the process.