Minerva: ECDSA nonce bit-length leaks in smart cards and five libraries
Researchers at Masaryk University found that Athena IDProtect smart cards (Common Criteria and FIPS 140-2 certified) and the libgcrypt, wolfSSL/wolfCrypt, MatrixSSL, Crypto++ and SunEC/OpenJDK libraries leaked the bit length of the ECDSA nonce through signing time. Collecting a few thousand to tens of thousands of signatures and solving a hidden-number lattice problem recovered the private key.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
Minerva repeats Brumley-Tuveri's 2011 lesson at scale: scalar multiplication that skips leading zero bits leaks the nonce's length, and even a few bits per signature are fatal to ECDSA via lattice attacks. That certified smart cards were affected (CVE-2019-15809) highlighted gaps in certification testing. The ECDSA standard is not broken; its implementations were.
The card attack needs the device (proximity: physical-contact); the library variants are exploitable by local timing and, under good conditions, potentially remotely. Published in TCHES 2020(4).
Sources
- paperMinerva: The curse of ECDSA nonces (ePrint 2020/728, TCHES 2020)IACR ePrint, eprint.iacr.org
- announcementMinerva project pageCRoCS, Masaryk University, minerva.crocs.fi.muni.cz
- cveCVE-2019-15809 (Athena IDProtect)NIST NVD, nvd.nist.gov