Return of the Hidden Number Problem.
A Widespread and Novel Key Extraction Attack on ECDSA and DSA
DOI:
https://doi.org/10.13154/tches.v2019.i1.146-168Keywords:
side-channel attacks, lattice attacks, key extraction, hidden number, problem, (EC)DSA cryptanalysisAbstract
Side channels have long been recognized as a threat to the security of cryptographic applications. Implementations can unintentionally leak secret information through many channels, such as microarchitectural state changes in processors, changes in power consumption, or electromagnetic radiation. As a result of these threats, many implementations have been hardened to defend against these attacks. Despite these mitigations, this work presents a novel side-channel attack against ECDSA and DSA. The attack targets a common implementation pattern that is found in many cryptographic libraries. In fact, about half of the libraries that were tested exhibited the vulnerable pattern. This pattern is exploited in a full proof of concept attack against OpenSSL, demonstrating that it is possible to extract a 256-bit ECDSA private key using a simple cache attack after observing only a few thousand signatures. The target of this attack is a previously unexplored part of (EC)DSA signature generation, which explains why mitigations are lacking and the issue is so widespread. Finally, estimates are provided for the minimum number of signatures needed to perform the attack, and countermeasures are suggested to protect against this attack.
Published
Issue
Section
License
Copyright (c) 2018 Keegan Ryan
This work is licensed under a Creative Commons Attribution 4.0 International License.