How to lose some weight: a practical template syndrome decoding attack
Abstract We study the hardness of the Syndrome Decoding problem, the base of most code-based cryptographic schemes, such as Classic McEliece, in the presence of side-channel information. We use ChipWhisperer equipment to perform a template attack on Classic McEliece running on an ARM Cortex-M4, and accurately classify the Hamming weights of consecutive 32-bit blocks of the secret error vector $$\textbf{e}\in {{\mathbb {F}}}_2^n$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mi>e</mml:mi> <mml:mo>∈</mml:mo> <mml:msubsup> <mml:mi>F</mml:mi> <mml:mn>2</mml:mn> <mml:mi>n</mml:mi> </mml:msubsup> </mml:mrow> </mml:math> . With these weights at hand, we optimize Information Set Decoding algorithms. Technically, we demonstrate how to speed up information set decoding via a dimension reduction, additional parity-check equations, and an improved information set search, all derived from the Hamming-weight information. Consequently, using our template attack, we can practically recover an error vector $$\textbf{e}\in {{\mathbb {F}}}_2^n$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mi>e</mml:mi> <mml:mo>∈</mml:mo> <mml:msubsup> <mml:mi>F</mml:mi> <mml:mn>2</mml:mn> <mml:mi>n</mml:mi> </mml:msubsup> </mml:mrow> </mml:math> in dimension $$n=2197$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mi>n</mml:mi> <mml:mo>=</mml:mo> <mml:mn>2197</mml:mn> </mml:mrow> </mml:math> in a matter of seconds. Without side-channel information, such an instance has a complexity of around 88 bit. We also estimate how our template attack affects the security of the proposed McEliece parameter sets. Roughly speaking, even an error-prone leak of our Hamming weight information leads for $$n=3488$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mi>n</mml:mi> <mml:mo>=</mml:mo> <mml:mn>3488</mml:mn> </mml:mrow> </mml:math> to a security drop of 89 bits.
Authors
- Jeroen Delvaux (ORCID: https://orcid.org/0000-0003-0684-8427)
- Antonia Wachter-Zeh (ORCID: https://orcid.org/0000-0002-5174-1947)
- Sebastian Maaßen
- Sebastian Bitzer (ORCID: https://orcid.org/0000-0002-5928-359X)
- Elena Kirshanova (ORCID: https://orcid.org/0000-0001-8924-7605)
- Alexander May (ORCID: https://orcid.org/0000-0001-5965-5675)
Institutions
- Technology Innovation Institute (AE)
- Technical University of Munich (DE)
- Ruhr University Bochum (DE)
Publication Details
- Journal
- Designs Codes and Cryptography
- Published
- 2025-03-07
- DOI
- https://doi.org/10.1007/s10623-025-01603-1
- Citations
- 2
- Primary Topic
- Cryptographic Implementations and Security
- Type
- article
- Field-Weighted Citation Impact
- 4.96
Funders
- Technische Universität München