Kocher: timing attacks recover RSA, DH and DSS private keys
At CRYPTO '96 Paul Kocher showed that measuring how long a device takes to perform private-key operations leaks the key: because square-and-multiply exponentiation and modular reduction take data-dependent time, an attacker with enough timed samples can recover exponents bit by bit. He demonstrated the attack against the RSAREF modular exponentiation code.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
Kocher's paper founded academic side-channel cryptanalysis. Nothing about RSA, Diffie-Hellman or DSA was mathematically weakened; the leak is in the code path. The paper also proposed the countermeasures still used today: blinding (randomising the input to the exponentiation) and making operations constant-time.
The threat model was a device the attacker can time precisely, such as a smart card or a local process; whether timing could be exploited over a real network remained open until Brumley and Boneh's 2003 attack on OpenSSL. Kocher first circulated the result in late 1995 before formal publication.
Sources
- paperTiming Attacks on Implementations of Diffie-Hellman, RSA, DSS, and Other Systems (CRYPTO '96)Springer LNCS 1109, doi.org
- paperAuthor's PDFpaulkocher.com, paulkocher.com
- wikiTiming attackWikipedia, en.wikipedia.org