Revisiting Side-Channel Analysis on Polynomial Multiplication in the HQC Implementation
Shows the updated bitwise schoolbook polynomial multiplication in the HQC reference implementation still leaks secret key bits via SPA at -O0 and via profiled LDA/neural-network attacks; swapping inputs fails.
Schemes: HQC, ML-KEM
Findings (quotes checked against the source text)
-
The updated bitwise schoolbook polynomial multiplication in the HQC reference implementation remains vulnerable to simple power analysis when compiled with -O0, leaking individual bits of the secret polynomial.
We show that the updated implementation is still vulnerable to SPA with clearly distinguishable secret data dependent variations in power consumption when compiled using the \texttt{-O0} flag.
-
SPA is not exploitable when the implementation is compiled with -Os optimization, but a profiling adversary using Linear Discriminant Analysis can recover the full secret key.
However, SPA is not exploitable when using compilation optimization with \texttt{-Os} flag.
-
Swapping the inputs of the multiplication is an ineffective countermeasure, since a profiled multi-bit neural network recovers all secret key bits.
We show that this countermeasure is ineffective, as training a multi-bit neural network in a profiling setting enables recovery of all bits of the secret key with $100\%$ accuracy.
-
The authors conclude that HQC polynomial multiplication needs hiding countermeasures or a redesign to resist side-channel attacks.
As such, there is a need for a more secure polynomial multiplication implementation in HQC, either through the introduction of hiding countermeasures or through a redesign of the implementation itself.
Numbers (as extracted, not quote-checked)
- Secret key recovery success under profiled LDA attack: 100%
- Secret key recovery accuracy under profiled multi-bit neural network after input swap: 100%
For builders
If using HQC for KEM, treat its decapsulation polynomial multiplication as a side-channel hazard: require constant-time or masked multiplication and verify under the exact compiler flags you ship.
Limits
Based on the ePrint abstract only; full text not read. Attacks assume physical power access and profiling capability; no specific countermeasure is validated here.
Topics: implementation-sidechannel kem