Cryptology ePrint Archive: Report 2019/023

Biased Nonce Sense: Lattice Attacks against Weak ECDSA Signatures in Cryptocurrencies

Joachim Breitner and Nadia Heninger

Abstract: In this paper, we compute hundreds of Bitcoin private keys and dozens of Ethereum, Ripple, SSH, and HTTPS private keys by carrying out cryptanalytic attacks against digital signatures contained in public blockchains and Internet-wide scans. The ECDSA signature algorithm requires the generation of a per-message secret nonce. This nonce must be generated perfectly uniformly, or else an attacker can exploit the nonce biases to compute the long-term signing key. We use a lattice-based algorithm for solving the hidden number problem to efficiently compute private ECDSA keys that were used with biased signature nonces due to multiple apparent implementation vulnerabilities.

Category / Keywords: public-key cryptography / Hidden number problem, ECDSA, Lattices, Bitcoin, Crypto

Original Publication (in the same form): Financial Cryptography and Data Security 2019

Date: received 8 Jan 2019

Contact author: nadiah at cs ucsd edu

Available format(s): PDF | BibTeX Citation

Version: 20190109:224713 (All versions of this report)

Short URL: ia.cr/2019/023


[ Cryptology ePrint archive ]