Android SecureRandom flaw leads to repeated ECDSA nonces and Bitcoin thefts
Bitcoin.org warned that every Bitcoin wallet app generating keys on Android was exposed. A flaw in how Android's Java Cryptography Architecture seeded its SecureRandom PRNG caused some signatures to reuse the same ECDSA nonce, letting observers compute private keys from the public blockchain, and funds were stolen. Google confirmed the PRNG initialization bug on 14 August 2013 and published a workaround.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
Like the PS3, this is an IMPLEMENTATION failure: secp256k1 and ECDSA were fine, but an RNG fault made two signatures share k. Because Bitcoin signatures are public forever, a nonce collision anywhere in history is permanently exploitable. Wallets were patched (Bitcoin Wallet 3.15, Mycelium 0.7.0, blockchain.info 3.54 and others) and users told to move funds to fresh keys.
Sources
- announcementAndroid Security Vulnerability (Bitcoin.org alert, 2013-08-11)Bitcoin.org, bitcoin.org
- blogSome SecureRandom Thoughts (2013-08-14)Android Developers Blog, android-developers.googleblog.com