A key-recovery timing attack on post-quantum primitives using the Fujisaki-Okamoto transformation and its application on FrodoKEM
Shows the Fujisaki-Okamoto ciphertext-comparison step in PQ KEMs must be constant-time, and mounts a timing key-recovery attack on FrodoKEM's reference implementation.
Schemes: FrodoKEM, Fujisaki-Okamoto transformation
Findings (quotes checked against the source text)
-
Although the Fujisaki-Okamoto transformation handles no secret data beyond the CPA-secure primitive, its ciphertext comparison must still be constant-time, since leakage there enables key recovery.
In this paper we show that although the transformation does not handle secret information apart from calls to the CPA-secure primitive, it has to be implemented in constant time.
-
Several round 2 NIST PQC KEM proposals are susceptible to the attack, which is demonstrated in detail on FrodoKEM.
Several proposed schemes in round 2 of the NIST post-quantum standardization project are susceptible to the proposed attack and we develop and show the details of the attack on one of them, being FrodoKEM.
-
The attack is implemented on FrodoKEM's reference implementation, which was claimed to be secure against all timing attacks.
It is implemented on the reference implementation of FrodoKEM, which is claimed to be secure against all timing attacks.
-
The attack extracts the FrodoKEM secret key at all security levels using about 2^30 decapsulation calls.
Experiments show that the attack code is able to extract the secret key for all security levels using about (2^{30}) decapsulation calls.
Numbers (as extracted, not quote-checked)
- Decapsulation calls needed for key extraction on FrodoKEM: about 2^30
For builders
Implement the FO ciphertext comparison and re-encryption check in constant time (and verify it), not just the secret-handling primitives, when building a PQ KEM into a chain.
Limits
Based on the ePrint abstract only; full-text details of the attack and the vulnerable schemes beyond FrodoKEM were not reviewed.