← Lab /Crypto & theory

Load/store leakage reveals 88.7% of HQC secret words, reducing key recovery to ~2^46 ops

The authors claim their side-channel attack can recover zero positions in HQC secret vectors and lower key-recovery complexity to about 2^46 operations

Crypto & theory arXiv 21 Jul 2026 Attack Prototype evidence

Published as “Exploiting Load/Store Leakage of Sparse Vectors for Key Recovery in HQC”

Why it matters

The attack shows that HQC’s secret sparse vector leaks enough information on typical microcontrollers to enable full private-key recovery in minutes, calling for immediate countermeasures in implementations.

Summary

The authors demonstrate a practical load/store side-channel attack that fully recovers the HQC private key by distinguishing zero versus non-zero 32-bit halves of the secret sparse vector y. On an STM32F446RE they separate the low half in ≈500 traces and the weaker high half in ≈5 000 traces, and the resulting hints reduce the ISD decoding cost for HQC-1 to ≈246 bit operations (about 40 s on a 48-core machine) instead of several days. The evidence is based on real hardware measurements and a concrete implementation of the attack, though the high-half requires an order-of-magnitude more traces and the attack assumes very low false-zero rates.

What they found 1

  1. Half-word (32-bit) hints cut HQC-1 decoding to ≈246 bit operations (~40 s on 48-core) versus several days for word (64-bit) hints.

    “The half-word (32-bit) hints cut HQC-1 decoding to ≈246 bit operations-about 40 s on a 48-core machine-versus several days for word (64-bit) hints; the compiler induced lower bit granularity is thus what turns an impractical decoding into a routine one.”

Caveats 3

  • The high-half channel is much weaker, requiring ≈5 000 traces to classify, which may limit attack practicality on noisy platforms.
  • Only false zeros are fatal, and they are one-sided, so the attacker biases the distinguisher toward “nonzero”: a (half-)word is declared zero only when its averaged leakage is statistically indistinguishable from the zero template, rather than at the symmetric TVLA threshold.
  • a complete statistical decoder is left to future work.

What’s new here 4

  • Identification of a previously unexplored load/store leakage in the schoolbook_mul routine of the reference HQC implementation.
  • Construction of a Welch’s t-test based zero-word distinguisher that works at 32-bit granularity.
  • Mapping of the leakage-derived zero-position hints into the decoding-with-hints frameworks of ISD, enabling full key recovery.
  • Demonstration of practical key recovery on real hardware and proposal of two concrete mitigations.