{
  "id": "2026/071",
  "url": "https://opencryptology.org/2026/071",
  "original_url": "https://eprint.iacr.org/2026/071",
  "title": "Codeword Masking Can Be Harmful Under Replay Attacks on HQC",
  "authors": [
    "Jaeho Jeon",
    "Yongseong Park",
    "Jaeyeon Lee",
    "Suseong Lee",
    "Donghyen Kim",
    "Young-Sik Kim"
  ],
  "affiliations": null,
  "abstract": "HQC, selected by NIST for standardization in 2025, was recently shown\nvulnerable to a replay attack recovering $\\mathbf{v} - \\mathbf{u}\\cdot \\mathbf{y}$, from which the long-term secret $\\mathbf{y}$ was shown to be recoverable, and against which \\emph{codeword masking} was proposed as the countermeasure. We revisit both and demonstrate that the countermeasure yields an opposite effect: on the target build, the unmasked replay attack is ineffective, whereas introducing codeword masking paradoxically enables its success. We present a new leakage venue in HQC, in the Reed--Muller encoder, and apply to it the post-decoding idea of recent work, turning HQC's own error correction into a side-channel budget that recovers the message: a single trace suffices, with only ${\\sim}80$ profiling traces, and we confirm the same across the official implementations (the NIST reference and optimized code, and PQClean) at both \\texttt{-O3} and \\texttt{-Os}. We then improve the replay attack on $\\mathbf{v} - \\mathbf{u}\\cdot \\mathbf{y}$, raising its per-bit recovery probability; at the optimization level we study, that is still not enough for a practical attack. Codeword masking, adopted as the defense, supplies what replay could not: the random share erases the ambiguity that identical replays leave behind, and the extrapolated probability of recovering the whole $\\mathbf{v} - \\mathbf{u}\\cdot \\mathbf{y}$ rises from $10^{-555}$ to $1.0$. Increasing the masking order fails to mitigate the attack: we demonstrate identical recovery against a three-share implementation, without incurring additional profiling overhead for the adversary. Masking must therefore be designed against the optimization level and the device it is deployed on.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Codeword Masking Can Be Harmful Under Replay Attacks on HQC” by Jaeho Jeon, Yongseong Park, Jaeyeon Lee, Suseong Lee, Donghyen Kim, Young-Sik Kim, Cryptology ePrint Archive, Paper 2026/071, https://eprint.iacr.org/2026/071. 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-01-16T13:18:24Z",
    "updated": "2026-09-17T06:55:28Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/071.pdf",
    "sha256": "d9c4e393270efc0589f95677c3721fac40ab8b6733ed73b9157eee7b58a05519",
    "size": 3861068,
    "source": "upload",
    "source_date": "2026-11-14T03:44:37.469Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/071/versions/20261114T034437Z.pdf",
      "captured_at": "2026-11-14T03:44:37.469Z",
      "label": "copy captured 2026-11-14",
      "source": "upload",
      "source_url": null,
      "size": 3861068,
      "sha256": "d9c4e393270efc0589f95677c3721fac40ab8b6733ed73b9157eee7b58a05519",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2026/071/versions/20260525T202614Z.pdf",
      "captured_at": "2026-05-25T20:26:14Z",
      "label": "copy captured 2026-05-25",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20260525202614id_/https://eprint.iacr.org/2026/071.pdf",
      "size": 3197179,
      "sha256": "32d87eb63c64e3b1fbe418bf76fdfb20daf02ab6080b0772a3671838648601e7",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2026/071/versions/20260512T112848Z.pdf",
      "captured_at": "2026-05-12T11:28:48Z",
      "label": "copy captured 2026-05-12",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2026/71.pdf",
      "size": 1048172,
      "sha256": "1a87bf3eab10edaebd9afdb64b99e11973d04c53d079a6d46e61ae56cc162577",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2026/071/versions/20260120T112449Z.pdf",
      "captured_at": "2026-01-20T11:24:49Z",
      "label": "copy captured 2026-01-20",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20260120112449id_/https://eprint.iacr.org/2026/071.pdf",
      "size": 1124797,
      "sha256": "b0a78001b35fe948d8ebdecb18121f033fa047bdd5969eac9755292afb2b04a6",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260525202614id_/https://eprint.iacr.org/2026/071.pdf",
      "captured_at": "2026-05-25T20:26:14Z",
      "size": 3184820
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2026/71.pdf",
      "captured_at": "2026-05-12T11:28:48Z",
      "size": 1048172
    }
  ],
  "bibtex": "@misc{cryptoeprint:2026/071,\n      author = {Jaeho Jeon and Yongseong Park and Jaeyeon Lee and Suseong Lee and Donghyen Kim and Young-Sik Kim},\n      title = {Codeword Masking Can Be Harmful Under Replay Attacks on HQC},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/071},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/071}\n}"
}
