Single trace HQC shared key recovery with SASCA
Single-trace side-channel attacks using soft analytical SASCA with belief propagation against HQC KEM's Reed-Solomon decoder and encoder, plus evaluation of masking and shuffling countermeasures.
Schemes: HQC, Kyber, Reed-Solomon
Findings (quotes checked against the source text)
-
First soft analytical side-channel attacks (SASCA) against code-based cryptography, using belief propagation on several steps of HQC decapsulation, practicable from a single trace.
These attacks are the first Soft Analytical Side-Channel Attacks (SASCA) against code-based cryptography.
-
Simulated attack on the Reed-Solomon decoder reaches accuracy above 0.9 at high noise (sigma = 3) using a re-decoding strategy.
We perform simulated attacks under Hamming weight leakage model, and reach excellent accuracies (superior to $0.9$) up to a high noise level ($\sigma = 3$), thanks to a re-decoding strategy.
-
On an STM32F407 real-case attack on the RS decoder achieves a perfect success rate.
In a real case attack scenario, on a STM32F407, this attack leads to a perfect success rate.
-
Masking HQC is a limited countermeasure against BP attacks, and Kyber-style shuffling is also limited; only full shuffling thwarts the attack.
we show that masking HQC is a limited countermeasure against BP attacks, as well as shuffling countermeasures adapted from Kyber.
-
Protecting the current RS encoder with shuffling is hard; the paper suggests switching to another encoding algorithm to enable full shuffling at small cost.
A possible countermeasure would be to consider another encoding algorithm for the scheme to support a full shuffling.
Numbers (as extracted, not quote-checked)
- Simulated RS decoder attack accuracy at high noise: superior to 0.9 at sigma = 3
For builders
Implementations of HQC or other code-based KEMs on embedded devices need side-channel hardening, and the RS encoder should be replaced or fully shuffled rather than relying on masking.
Limits
Based on the ePrint abstract only; full text was not read. Results are for Hamming weight leakage on one STM32F407 target, so generalization to other platforms is unverified.