Quantum-Safe
Two papers cut the security of LMS and XMSS hash-based signatures with SHA-256
Two preprints cut the security of LMS and XMSS hash-based signatures with SHA-256. There is no practical attack, and SHAKE256 is not affected.
Key points
- One preprint lowers the security of LMS and XMSS with SHA-256 from 2^256 to about 2^156 or 2^166 with 2^64 signatures; with SHA-256/192, to about 2^153.
- Another shows that the LMS security proofs did not hold for the real construction of SHA-256 and gives new bounds: moderate security, not full.
- There is no practical attack. SHAKE256 parameter sets are not affected, which matters when choosing them for long-lived firmware.
Two preprints published last week on the IACR ePrint archive lower the security margin of the LMS and XMSS hash-based signatures when they use SHA-256. Neither is a practical attack, but both point in the same direction, and the first leaves a clear way out: the parameter sets based on SHAKE256 are not affected.
LMS and XMSS, with their multi-tree variants (HSS and XMSSMT), are stateful signatures that NIST approved in 2020 in SP 800-208, with SHA-256 or SHAKE256 and 192- or 256-bit outputs. Their security depends only on the hash function, which is believed to withstand quantum computers. NIST reserves them for specific cases: systems that need to sign now, that will be in service for many years and in which switching algorithms later is not practical, such as firmware updates for devices that will remain in use for decades.
What they found
- A multi-target attack on the message digest. Falko Strenzke (MTG AG) adapts the Kelsey–Kohno technique: the attack gathers many signatures and merges their internal SHA-256 states into a single one, so that one search works against all of them at once. This cancels out the protection the design puts in place against this kind of attack. With the NIST limit of 264 signatures, spread across any number of keys, the cost with SHA-256 falls from 2256 to about 2166 for messages of up to 4 GiB and to about 2156 at the theoretical limit: 100 bits less. With SHA-256/192 it is about 2153, 39 bits less.
- Security proofs that did not hold for SHA-256. Chun Guo, Hao Cheng, Bart Preneel and Meiqin Wang (Shandong University and KU Leuven) show that the LMS security proofs published in 2016 and 2017 use a model that does not match how SHA-256 is built internally. They demonstrate it with forgery attacks against the LMS_SHA256_M32 and LMS_SHA256_M24 parameter sets, and conclude that their exact security was not known and is not in the standards either. They give new bounds: a «moderate» level of security, but not full security.
Note · what these papers do not say
They do not make it possible to forge an LMS or XMSS signature today: these are theoretical costs, counted in calls to the SHA-256 compression function, far beyond any feasible computation. They are preprints without peer review. And they do not affect the other requirement of these signatures, state management, which remains their main risk in practice.
What changes for decision-makers
For what is already deployed with SHA-256, there is no new urgency. For anyone now choosing the parameters with which they will sign firmware that cannot be changed for decades, the two papers tip the balance towards SHAKE256: the first says explicitly that those parameter sets are not affected, and the second only studies SHA-256. Because Strenzke’s attack pools signatures from different keys, according to its author even the first signature of each key adds to the exposure of a whole ecosystem: the risk depends on how many signatures are issued in total, not only on each key.