Skip to content

COLDCARD Hardware Wallet RNG Flaw Exploit

Researchers suspect a vulnerability in COLDCARD hardware wallet firmware was exploited to steal an estimated $88.6 million in Bitcoin from thousands of wallets. The flaw was caused by an integration error in COLDCARD's random number generation (RNG) code.

Severity awaiting reviewZero day
Incident date
Published
Read time
8 min
C
CertGPS

Not independently reviewed

AI-assisted content. Editorial policy ยท Suggest a correction

View source
On this page

Note: This analysis is based on publicly available information from source article. Facts are clearly separated from technical analysis.

Executive Summary

On July 30, 2026, a critical zero-day vulnerability was discovered in COLDCARD hardware wallets, resulting in a massive theft of approximately 1,367 Bitcoin, worth around $88.6 million. The incident was caused by a flawed random number generator (RNG) integration in the COLDCARD firmware, which led to the use of a deterministic software generator instead of the STM32 hardware RNG. This vulnerability allowed attackers to drain funds from affected wallets, with the first ten minutes of the attack resulting in approximately $30 million stolen.

The impact of this incident is significant, not only due to the large amount of cryptocurrency stolen but also because it highlights the importance of secure RNG implementation in cryptographic systems. The incident serves as a reminder to security professionals to prioritize secure RNG implementation and to regularly review and update their systems to prevent similar vulnerabilities.

What Happened: Timeline

โœ… Verified Facts

  • July 30:
  • Initial wave of transactions, draining approximately 1,083 BTC, worth $70.2 million, from 1,196 addresses.
  • Coinkite publicly disclosed the flaw.
  • August 1:
  • Galaxy Research identified a second and third wave of transactions, raising the estimated total to 1,367 Bitcoin, worth approximately $88.6 million, stolen from 4,585 addresses.
  • Chainalysis found that the attacker prioritized high-value wallets, stealing approximately $30 million during the first ten minutes.

Technical Deep Dive

Understanding Hardware Random Number Generators (HRNGs)

What is it?

A Hardware Random Number Generator (HRNG) is a physical device that generates truly random numbers, typically using physical phenomena such as thermal noise, radioactive decay, or other natural processes. HRNGs are designed to produce unpredictable and uniformly distributed random numbers, making them suitable for cryptographic applications.

How does it work?

HRNGs typically use a combination of analog and digital circuits to generate random numbers. The process involves collecting and amplifying random signals from the physical environment, which are then converted into digital values. These digital values are then processed and filtered to produce a final random number.

Security considerations

HRNGs are a critical component of secure cryptographic systems, as they provide a reliable source of randomness. However, the implementation of HRNGs can be vulnerable to attacks, such as side-channel attacks or tampering. Therefore, it is essential to implement HRNGs securely, using techniques such as secure boot, secure firmware updates, and regular testing.

Understanding MicroPython and Yasmarang

What is it?

MicroPython is a lightweight Python implementation designed for microcontrollers, such as those used in COLDCARD hardware wallets. Yasmarang is a deterministic RNG algorithm used by MicroPython as a fallback when the STM32 hardware RNG is not available.

How does it work?

Yasmarang uses a combination of the device's microcontroller identifier and system timing values to generate a random number. However, this approach is not cryptographically secure, as the values used can be observable or reconstructable.

Security considerations

The use of Yasmarang as a fallback RNG in COLDCARD firmware highlights the importance of secure RNG implementation. The deterministic nature of Yasmarang makes it vulnerable to attacks, and its use in a critical component of a cryptographic system can have severe consequences.

Understanding STM32 Hardware RNG

What is it?

The STM32 is a family of microcontrollers that includes a built-in hardware RNG. The STM32 RNG uses a combination of analog and digital circuits to generate truly random numbers.

How does it work?

The STM32 RNG collects and amplifies random signals from the physical environment, which are then converted into digital values. These digital values are then processed and filtered to produce a final random number.

Security considerations

The STM32 RNG is a secure and reliable source of randomness, making it an essential component of cryptographic systems. However, the implementation of the RNG can be vulnerable to attacks, such as side-channel attacks or tampering.

Analysis: What Went Wrong

๐Ÿ“Š Professional Analysis

Technical Root Cause

The technical root cause of the incident was the flawed RNG integration in the COLDCARD firmware, which led to the use of the deterministic Yasmarang algorithm instead of the STM32 hardware RNG. This vulnerability allowed attackers to drain funds from affected wallets.

Contributing Factors

The contributing factors to the incident include:

  • The use of a deterministic RNG algorithm as a fallback, which is not cryptographically secure.
  • The lack of secure RNG implementation in the COLDCARD firmware.
  • The failure to regularly review and update the firmware to prevent similar vulnerabilities.

Lessons for Security Professionals

Key Takeaways

  1. Secure RNG implementation is critical in cryptographic systems.
  2. Regularly review and update firmware to prevent similar vulnerabilities.
  3. Use secure and reliable sources of randomness, such as HRNGs.

Prevention & Detection

How to Prevent

  • Implement secure RNG algorithms, such as HRNGs.
  • Regularly review and update firmware to prevent similar vulnerabilities.
  • Use secure boot and secure firmware updates.

How to Detect

  • Monitor for suspicious activity, such as large transactions or unusual behavior.
  • Regularly test and audit cryptographic systems for vulnerabilities.
  • Implement intrusion detection and prevention systems.
View related certification topics

Security+

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation

CySA+

  • Domain 1: Threat and Vulnerability Management
  • Topic: Identifying and mitigating vulnerabilities in cryptographic systems

CEH

  • Domain 1: Network Security
  • Topic: Secure RNG implementation and its impact on cryptographic systems

CISSP

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

OSCP

  • Domain 1: Penetration Testing
  • Topic: Identifying and exploiting vulnerabilities in cryptographic systems

CISM

  • Domain 1: Information Security Governance
  • Topic: Secure RNG implementation and its impact on cryptographic systems

CISM

  • Domain 2: Information Risk Management
  • Topic: Identifying and mitigating vulnerabilities in cryptographic systems

AWS Security

  • Domain 1: Security, Identity, and Compliance
  • Topic: Secure RNG implementation and its impact on cryptographic systems

AZ-500

  • Domain 1: Security, Identity, and Compliance
  • Topic: Secure RNG implementation and its impact on cryptographic systems

GPEN

  • Domain 1: Network Security
  • Topic: Secure RNG implementation and its impact on cryptographic systems

GCIH

  • Domain 1: Network Security
  • Topic: Identifying and mitigating vulnerabilities in cryptographic systems

CSSLP

  • Domain 1: Secure Software Development
  • Topic: Secure RNG implementation and its impact on cryptographic systems

GCP Security

  • Domain 1: Security, Identity, and Compliance
  • Topic: Secure RNG implementation and its impact on cryptographic systems

CCNP Security

  • Domain 1: Network Security
  • Topic: Secure RNG implementation and its impact on cryptographic systems

OCI Security

  • Domain 1: Security, Identity, and Compliance
  • Topic: Secure RNG implementation and its impact on cryptographic systems

CPTS

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

CDSA

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

eJPT

  • Domain 1: Penetration Testing
  • Topic: Identifying and exploiting vulnerabilities in cryptographic systems

eCPPT

  • Domain 1: Penetration Testing
  • Topic: Identifying and exploiting vulnerabilities in cryptographic systems

PNPT

  • Domain 1: Penetration Testing
  • Topic: Identifying and exploiting vulnerabilities in cryptographic systems

BTL1

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

BTL2

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

GFACT

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

GCFE

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

GNFA

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

GREM

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

OSWE

  • Domain 1: Penetration Testing
  • Topic: Identifying and exploiting vulnerabilities in cryptographic systems

OSEP

  • Domain 1: Penetration Testing
  • Topic: Identifying and exploiting vulnerabilities in cryptographic systems

CRTO

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

CDPSE

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

CGEIT

  • Domain 1: Information Security Governance
  • Topic: Secure RNG implementation and its impact on cryptographic systems

SC-300

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

OCP

  • Domain 1: Security and Risk Management
  • Topic: Secure RNG implementation and its impact on cryptographic systems

CASE Java

  • Domain 1: Secure Software Development
  • Topic: Secure RNG implementation and its impact on cryptographic systems

GWEB

  • Domain 1: Network Security
  • Topic: Secure RNG implementation and its impact on cryptographic systems

OSED

  • Domain 1: Penetration Testing
  • Topic: Identifying and exploiting

Source (1)

This analysis is based on: https://www.bleepingcomputer.com/news/security/coldcard-wallet-rng-flaw-likely-linked-to-88-million-bitcoin-theft/


This incident analysis is provided for educational purposes. Facts are cited from the source article, while technical analysis represents professional interpretation.