{
  "id": "2026/2914",
  "url": "https://opencryptology.org/2026/2914",
  "original_url": "https://eprint.iacr.org/2026/2914",
  "title": "Recovering HQC Secret Key from Distance Spectrum using Side-Channel Attack",
  "authors": [
    "Magali Salom",
    "Angélique Lopez",
    "Valentin Vasseur",
    "Gabriel Zaid"
  ],
  "affiliations": null,
  "abstract": "HQC is a code-based key encapsulation mechanism selected for standardiza-\ntion by NIST. It uses sparse secret vectors in a quasi-cyclic structure, where GJS-style\nattacks can exploit correlations between private syndrome weight and the secret-key\ndistance spectrum. However, HQC decapsulation does not directly manipulate any\nsyndrome, leaving open whether any such attack could be performed in practice.\nIn this work, we present the first practical end-to-end side-channel attack against\nHQC that recovers the secret key through error-weight leakage and distance-spectrum\nreconstruction. We identify two sources of leakage in the Reed–Muller decoder under\ndifferent attacker capabilities. In a chosen-ciphertext attack (CCA), we exploit the\nExpandAndSum function by imposing a zero message, whereas in a known-ciphertext\nattack (KCA), we target the FindPeaks function without modifying the legitimate\nencapsulation procedure. We provide a theoretical characterization of the Hadamard\ncoefficients manipulated by FindPeaks, establishing a direct relationship between the\nhighest peak and the error weight under a sufficient decoding condition, while showing\nthat the remaining coefficients also depend on the error pattern.\nWe develop profiled side-channel attacks to estimate the error weight and construct\na soft distance spectrum of the secret key. To recover the key from imperfect in-\nformation, we introduce a simulated-annealing reconstruction algorithm that, in\nsimulations, reduces the number of required error-weight observations by approxi-\nmately 5.8× compared with the state-of-the-art SSV26 method, with substantially\nlower reconstruction times. Our experiments on an ARM Cortex-M4 implementation\nof HQC-1 demonstrate end-to-end secret-key recovery in both attack settings. In the\nCCA setting, our algorithm achieves a 93.5% success rate with 40 000 decapsulation\ntraces, compared to 200 000 traces for SSV26, and recovers the secret key in all 200\ntrials with 100 000 traces. Most notably, in the more restrictive KCA setting, our\napproach recovers the secret key in all 200 trials using 1 000 000 traces, whereas the\nreconstruction algorithm from SSV26 fails to recover the key in any of the 200 trials,\neven with 1 300 000 traces.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Recovering HQC Secret Key from Distance Spectrum using Side-Channel Attack” by Magali Salom, Angélique Lopez, Valentin Vasseur, Gabriel Zaid, Cryptology ePrint Archive, Paper 2026/2914, https://eprint.iacr.org/2026/2914. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-11-16T14:30:30Z",
    "updated": "2026-11-16T14:30:30Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/2914.pdf",
    "sha256": "4f59311a0128e1fc3049d1d43f598b5d236401286a38b6f4da0b6d40950f863c",
    "size": 1345786,
    "source": "upload",
    "source_date": "2026-11-22T03:31:46.492Z",
    "maybe_stale": false,
    "newer_on_eprint": false,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/2914/versions/20261122T033146Z.pdf",
      "captured_at": "2026-11-22T03:31:46.492Z",
      "label": "copy captured 2026-11-22",
      "source": "upload",
      "source_url": null,
      "size": 1345786,
      "sha256": "4f59311a0128e1fc3049d1d43f598b5d236401286a38b6f4da0b6d40950f863c",
      "is_default_pdf": true
    }
  ],
  "other_sources": [],
  "bibtex": "@misc{cryptoeprint:2026/2914,\n      author = {Magali Salom and Angélique Lopez and Valentin Vasseur and Gabriel Zaid},\n      title = {Recovering HQC Secret Key from Distance Spectrum using Side-Channel Attack},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/2914},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/2914}\n}"
}
