Android Random-Number Flaws Exposed Bitcoin Wallet Keys to Theft
Active Exploitation · 3 sources · Updated 2mo ago · First seen Apr 29, 2014

Weaknesses in Android’s cryptographic random-number generation exposed Bitcoin wallets to theft, with exploitation reported in August 2013. Affected applications included Bitcoin Wallet, blockchain.info wallet, BitcoinSpinner, and Mycelium Wallet when private keys were generated on Android devices; custodial services such as Coinbase and Mt Gox were outside that exposure. Google’s investigation identified improper initialization of the underlying pseudorandom number generator (PRNG), affecting applications using Java Cryptography Architecture or directly invoking OpenSSL’s PRNG without explicit initialization. Separately documented as CVE-2013-7372, an incorrect offset in Apache Harmony’s SecureRandom implementation through version 6.0M3 produced predictable output when callers supplied no seed, including on Android versions before 4.4.
Wallet providers prepared updates supporting key rotation and transfers to fresh addresses generated with repaired randomness. Users were advised to update affected wallet apps, rotate keys, move funds to newly generated addresses, create fresh backups, and stop reusing insecure addresses. Google advised developers to initialize the PRNG explicitly with operating-system entropy and assess whether previously generated keys and random values required replacement, while distributing platform patches to Open Handset Alliance partners. Applications running exclusively on Android 4.4 or later do not require the workaround. TLS/SSL connections established through HttpClient and java.net were unaffected because those classes seeded the OpenSSL PRNG.


