Skip to content
Crypto Write-up Advanced

Bitcoin Account Hijacking Ecdsa Nonce Break

A novel attack exploits weak random number generation in ECDSA signatures to recover private keys from cryptocurrency wallets. The researchers broke 762 Bitcoin wallets and 2 Ethereum wallets, but the Bitcoin wallets had zero balance, likely already swept.

Szilárd Pfeiffer Follow

Published on systemweakness.com

As with many other times in the history of attacks against cryptographic algorithms, the cause of a successful attack is not a vulnerability in the algorithm itself, but the fact that poor-quality software used an algorithm with insufficient care. It is crucial to obtain “high-quality” random numbers during the…

Szilárd Pfeiffer, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

The attack could allow an attacker to recover private keys and steal funds from affected wallets; however, the Bitcoin wallets found had zero balance, likely already compromised, and the Ethereum attack was stopped due to low cost-benefit ratio.

What the attacker needed

Weak PRNG used for nonces; batch of consecutive signatures; signatures can be ordered

How it was found

  1. Collect a large number of ECDSA signatures from public sources such as blockchains.
  2. Identify batches of consecutive signatures generated by the same weak PRNG.
  3. Apply the attack to recover private keys from signatures with related nonces.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Digital signatures use a random number for each signature. If that random number is weak or repeated, an attacker can work out the private key and steal funds. This report describes a new method to find such weak signatures in public blockchains.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.