Exploiting Load/Store Leakage of Sparse Vectors for Key Recovery in HQC
Side-channel attack on HQC using EM load/store leakage of sparse secret vectors on Cortex-M4 to find zero words, turning them into decoding hints for key recovery.
Schemes: HQC
Findings (quotes checked against the source text)
-
Low and high 32-bit halves of each 64-bit word leak with different strengths due to compiler-generated register spilling, enabling a zero-word distinguisher from EM measurements.
we identify a leakage surface in which the low and high 32-bit halves of each 64-bit word leak with different strengths, due to compiler-generated register spilling
-
Recovered zero positions become decoding hints, reducing HQC key recovery to a shortened syndrome-decoding problem.
The recovered zero positions are then translated into decoding hints, reducing HQC key recovery to a shortened syndrome-decoding problem.
-
At 32-bit granularity, about 88.7% of machine words of y are zero for HQC-1, cutting decoding to roughly 2^46 bit operations.
at 32-bit granularity an expected $88.7\%$ of the machine words of~$y$ are zero for HQC-1, cutting the decoding to ${\approx}\,2^{46}$ bit operations
-
Experiments on Cortex-M4 recovered the zero words of an HQC-1 key at 32-bit granularity.
and recover the zero words of an HQC-1 key at 32-bit granularity
-
Paper discusses countermeasures that eliminate the sparsity the attack exploits.
we discuss practical countermeasures that eliminate the sparsity exploited by the attack
Numbers (as extracted, not quote-checked)
- Expected fraction of zero 32-bit machine words of y for HQC-1: 88.7%
- Decoding complexity for HQC-1 after hints (bit operations): approximately 2^46
- Traces needed for low-half channel: approximately 500
- Traces needed for high-half channel: approximately 5,000
For builders
If using HQC or any sparse-secret KEM on embedded targets, audit compiled load/store and spill behavior for secret vectors and apply the paper's sparsity-removing countermeasures.
Limits
Attack demonstrated on Cortex-M4 with EM measurements from the reference implementation; full text not reviewed, only ePrint abstract was provided.