Skip to main content
Mallory
← Back to News
cryptocurrency-platform-riskactively-exploited-vulnerabilityendpoint-software-vulnerabilityopen-source-dependency-vulnerability

Android Random-Number Flaws Exposed Bitcoin Wallet Keys to Theft

Active Exploitation · 3 sources · Updated 2mo ago · First seen Apr 29, 2014

Android Random-Number Flaws Exposed Bitcoin Wallet Keys to Theft

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.

Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

9 events · Aug 2013 – Apr 29, 2014
  1. Apr 29, 201413y ago

    MITRE publishes CVE-2013-7372

    MITRE published the CVE record documenting predictable output in Apache Harmony SecureRandom through version 6.0M3, including its use in Android before version 4.4. The record documented exploitation against Bitcoin wallet applications in August 2013.

    CVE Record: CVE-2013-7372
  2. Reported Aug 14, 201313y ago

    Android revises the workaround after crashes on some devices

    The original workaround crashed on a small fraction of devices because /dev/urandom was not writable. The updated sample logged and ignored supplemental-seed write failures while retaining exceptions for failures to open or read the random source.

    Android Developers Blog: Some SecureRandom Thoughts
  3. Reported Aug 14, 201313y ago

    Android publishes developer guidance and a PRNG workaround

    Android advised developers to initialize the PRNG with operating-system entropy and assess whether previously generated keys and random values required replacement. Its PRNGFixes sample seeded OpenSSL and installed a /dev/urandom-backed SecureRandom provider; HttpClient and java.net TLS connections were identified as unaffected.

    Android Developers Blog: Some SecureRandom Thoughts
  4. Reported Aug 14, 201313y ago

    Android supplies platform PRNG patches to OHA partners

    Android developed patches to ensure correct initialization of its OpenSSL PRNG, supplied them to Open Handset Alliance partners, and checked them into the Android source tree.

    Android Developers Blog: Some SecureRandom Thoughts
  5. Reported Aug 14, 201313y ago

    Android investigation identifies improperly initialized PRNG

    While investigating a compromised Bitcoin transaction, Android's security team identified improper initialization of the underlying PRNG. The issue could produce cryptographically weak values for applications using JCA or directly invoking the system OpenSSL PRNG without explicit initialization.

    Android Developers Blog: Some SecureRandom Thoughts
  6. Reported Aug 14, 201313y ago

    Researchers notify Google of improper OpenSSL PRNG initialization

    Soo Hyeon Kim and Daewan Han of ETRI, along with Dong Hoon Lee of Korea University, notified Google that Android's OpenSSL pseudorandom number generator was improperly initialized.

    Android Developers Blog: Some SecureRandom Thoughts
  7. Aug 11, 201313y ago

    Multiple Bitcoin applications receive security updates

    A compromised Bitcoin transaction prompted updates to multiple Bitcoin applications on August 11. Bitcoin.org's notice identified Bitcoin Wallet 3.15, BitcoinSpinner 0.8.3b, Mycelium 0.7.0, and blockchain.info 3.54 as remedial releases, with key-rotation or migration guidance to protect existing funds.

    Android Developers Blog: Some SecureRandom Thoughts
  8. Aug 11, 201313y ago

    Bitcoin.org issues an Android wallet security alert

    Bitcoin.org warned that weaknesses in Android's random-number generation exposed wallets with Android-generated private keys to theft, including Bitcoin Wallet, blockchain.info, BitcoinSpinner, and Mycelium. Custodial applications such as Coinbase and Mt Gox were unaffected because they did not generate private keys on the phone.

    Android Security Vulnerability
  9. Aug 2013

    Attackers exploit predictable Android randomness against Bitcoin wallets

    Attackers exploited CVE-2013-7372 in the wild against Bitcoin wallet applications. The Apache Harmony SecureRandom implementation used an incorrect offset when no seed was supplied, producing predictable pseudorandom output.

    CVE Record: CVE-2013-7372
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Android
Do you run this?Correlate live exploitation activity against the software you actually run, and see where you're exposed.
See Who's Exploiting This
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.