MnemonicHack: Recovering the Master Seed from Bitcoin Hardware Wallets via Side-Channel Attacks
Abstract
Hardware wallets isolate private keys from compromised hosts but, as user-held devices, must also resist physical attacks, including side-channel analysis. The mnemonic code is the root of a wallet's key hierarchy, and recovering it enables an attacker to reconstruct the wallet and all derived private keys. Yet prior studies have mainly evaluated cryptographic operations such as digital signatures, elliptic-curve scalar multiplication, and key derivation, leaving mnemonic-code processing unexplored as a side-channel attack surface. We show that BIP39's efficiency-oriented word-lookup guidance can produce implementations whose execution varies with the secret word and leaks information through side channels. We demonstrate this vulnerability on the Trezor One by applying deep learning-based side-channel analysis to electromagnetic leakage from its mnemonic integrity verification process. Across 20,000 traces collected from a device excluded from training and validation, our model recovered all 24 words using a single trace in 87.28% of trials and achieved an average word-recovery accuracy of 99.41%. The attack requires no modification of the target firmware and only temporary physical access. Following responsible disclosure, SatoshiLabs released firmware mitigations. Analysis of firmware from eight additional vendors identified similar data-dependent mnemonic-processing patterns beyond Trezor.
Community
0 commentsNo discussion yet
Be the first to share a question or observation.