Timing attacks on Error Correcting Codes in Post-Quantum Schemes
Shows timing leaks from ECC decoding in NIST round-1 lattice KEMs LAC and Ramstake let attackers recover full secret keys via timed decryption queries.
Schemes: LAC, Ramstake, Ring-LWE
Findings (quotes checked against the source text)
-
Variable execution time of ECC decoding lets timing distinguish ciphertexts that contain errors before decoding from error-free ones, breaking IND-CCA security.
We show that if no precaution is taken, it is possible to use timing information to distinguish between ciphertexts that result in an error before decoding and ciphertexts that do not contain errors, due to the variable execution time of the ECC decoding algorithm.
-
The attack fully recovers LAC's secret key across all security levels in under 2 minutes using fewer than 2^16 decryption queries.
It is able to retrieve LAC's secret key for all security levels in under 2 minutes using less than $2^{16}$ decryption queries and Ramstake's secret key in under 2 minutes using approximately $2400$ decryption queries.
-
Ramstake's secret key is recovered in under 2 minutes using approximately 2400 timed decryption queries.
Ramstake's secret key in under 2 minutes using approximately $2400$ decryption queries.
-
The attack is implemented on both reference and optimized implementations of the two submissions.
is implemented on the reference and the optimized implementations of both submissions.
-
The leakage generalizes to other lattice-based schemes with ECC whenever side-channel information about the presence of errors leaks during decoding.
The attack generalizes to other lattice-based schemes with ECC in which any side-channel information about the presence of errors is leaked during decoding.
Numbers (as extracted, not quote-checked)
- LAC secret key recovery time: under 2 minutes
- LAC decryption queries: less than 2^16
- Ramstake secret key recovery time: under 2 minutes
- Ramstake decryption queries: approximately 2400
For builders
If a PQ KEM uses ECC decoding, make the decoder constant-time so that error presence is not leaked through timing.
Limits
Abstract-only text; attack targets round-1 candidates LAC and Ramstake, not final NIST standards, and the full paper was not reviewed.
Topics: implementation-sidechannel kem cryptanalysis chain-design