You Only Decapsulate Once: Ciphertext-Independent Single-Trace Passive Side-Channel Attacks on HQC
Shows single-trace passive timing and power side-channel attacks on HQC (NIST KEM) that recover the secret key via sparse-vector processing leakage, plus BIKE and Classic McEliece session-key attacks, and a CT-grind workflow.
Schemes: HQC, BIKE, Classic McEliece, CT-grind
Findings (quotes checked against the source text)
-
An attacker can recover the HQC secret key from a single measured trace by exploiting timing leakage when processing sparse vectors, without targeting CCA-insecure decryption.
For the first time, we show that an attacker can recover the secret key of HQC without targeting the CCA-insecure decryption and internal states of message decryption.
-
The leakages persist in the latest stable HQC implementation, supposedly constant-time, including when run under AMD Secure Encryption Virtualization.
We find two such timing leakages in the latest stable HQC implementation, supposedly constant-time, and practically extract the leakages even when the process is protected by AMD Secure Encryption Virtualization.
-
A power side-channel can extract similar leakages on embedded devices.
We also show that a power side-channel can extract similar leakages on embedded devices.
-
Similar passive single-trace attacks recover session keys for BIKE and Classic McEliece, so the findings apply to code-based KEMs in NIST Round 4.
Our findings apply to all code-based KEMs that are submitted to the NIST Round 4 PQC submission.
-
CT-grind can find all timing leakages in various HQC implementations and is suggested as a development-time constant-time check.
We find that CT-grind can effectively find all timing leakages in various implementations of HQC.
For builders
If you deploy HQC or other code-based KEMs, treat sparse-vector handling as a side-channel target and run CT-grind-style constant-time analysis in CI rather than trusting the stock implementation.
Limits
Abstract-only read (full text not fetched); attack details, trace counts, and platform specifics are unverified here. Relevant to KEM implementation, not to signatures or chain design.
Topics: implementation-sidechannel kem cryptanalysis benchmarks