Join our Newsletter — 33% off our NHI Course
Home› Guides› LMS and XMSS Status: Stateful Hash-Based Signatures and…
Guide Data Security

LMS and XMSS Status: Stateful Hash-Based Signatures and State Management Risks

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 12 min read
On this page

LMS and XMSS are the post-quantum signature schemes NSA asks firmware signers to adopt now, but a single reused signing state can let an attacker forge signatures. Their security rests on simple, well understood hash functions, which is why standards bodies trusted them early. The price is state: every signature consumes a one time key, and the signer must never use the same one twice, across crashes, backups, clones or failover. This guide sets out the current status of LMS and XMSS in the IETF, NIST and NSA documents, where they are approved, the ways state gets reused in practice, the controls that prevent it, and when stateless SLH-DSA is the better choice. It is written for cryptographers, firmware and code signing engineers and PKI teams; for the wider programme see the Post-Quantum Cryptography Migration Guide.

Status checked against the primary sources on 26 November 2026. Standards and agency guidance change, so confirm dates against the current documents before relying on them.

Key takeaways

  • Approved, but only for narrow use. NIST SP 800-208 (October 2020) and the final NIST IR 8547 (October 2026) both describe stateful hash-based signatures as not intended for general use, with software and firmware signing as the fit.
  • NSA prefers LMS and XMSS now for firmware. The CNSA 2.0 FAQ (version 2.1, December 2024) approves single tree LMS and XMSS, recommends LMS with SHA-256/192, disallows HSS and XMSS^MT for national security systems, and wants the transition to start now rather than wait for ML-DSA.
  • State reuse is the real risk. RFC 8554 and RFC 8391 both say that if a private key state is used twice, security guarantees are lost and forging a signature on a new message becomes feasible.
  • Hardware is a requirement, not an option. SP 800-208 requires key and signature generation in FIPS 140-2 or FIPS 140-3 Level 3 or higher modules that never export private keying material, even encrypted.
  • Choose SLH-DSA when you cannot guarantee state. FIPS 205 SLH-DSA (August 2024) is stateless, at the cost of larger signatures and slower signing.

What stateful hash-based signatures are

A hash-based signature scheme builds a many time signature from one time signatures (OTS). Each OTS key pair can sign exactly one message. A Merkle tree hashes all the OTS public keys together into a single root, which becomes the long term public key. A signature contains the OTS signature, the index of the leaf used, and the authentication path from that leaf to the root. A tree of height h therefore holds 2^h one time keys and can sign at most 2^h messages.

  • LMS: the Leighton-Micali scheme, specified in RFC 8554 (April 2019), uses LM-OTS as its one time scheme. HSS, the Hierarchical Signature System in the same RFC, chains LMS trees so a top tree signs the roots of lower trees.
  • XMSS: the eXtended Merkle Signature Scheme, specified in RFC 8391 (May 2018), uses WOTS+ as its one time scheme. XMSS^MT is the multi tree variant.
  • Why stateful: the signer must track which leaves are used. The "state" is that index. If it ever goes backwards, a leaf signs a second message, and an attacker with both signatures can forge.
  • Why trusted: security depends only on properties of the underlying hash function, not on a new mathematical problem, which is why NIST published SP 800-208 years before the lattice based standards.

Standards status

DocumentStatus and dateWhat it says about LMS and XMSS
IETF RFC 8554Informational, IRTF CFRG stream, April 2019Specifies LM-OTS, LMS and HSS; warns against use unless the system prevents reuse of secret key states
IETF RFC 8391Informational, IRTF CFRG stream, May 2018Specifies WOTS+, XMSS and XMSS^MT; SHA2-256 parameter sets mandatory for deployment; signing APIs must return updated state
NIST SP 800-208Final, 29 October 2020Approves LMS, HSS, XMSS and XMSS^MT with SHA-256, SHA-256/192, SHAKE256/256 and SHAKE256/192 parameter sets; hardware module requirement; not suitable for general use
NIST FIPS 205 (SLH-DSA)Final, 13 August 2024Stateless hash-based signature based on SPHINCS+; the stateless alternative
NIST IR 8547Final, 27 October 2026 (initial draft November 2024)Lists LMS/HSS and XMSS/XMSS^MT as post-quantum signature algorithms at category 3 and 5; not intended for general use, may be useful for software and firmware signing
NSA CNSA 2.0 FAQVersion 2.1, December 2024LMS and XMSS approved for all classification levels; HSS and XMSS^MT not allowed; LMS SHA-256/192 preferred; equipment transitions expected by 31 December 2030

Parameter sets approved by NIST

SchemeHash options in SP 800-208Tree heightsNotes
LMS (and HSS levels)SHA-256, SHA-256/192, SHAKE256/256, SHAKE256/1925, 10, 15, 20 or 25HSS chains LMS trees; NSA does not allow HSS for national security systems
XMSSSame four options10, 16 or 20Single tree
XMSS^MTSame four optionsTotal heights 20, 40 or 60, with varying layersNSA does not allow XMSS^MT for national security systems

SP 800-208 does not approve the RFC 8391 parameter sets based on SHAKE128, SHA-512 or the 512-bit SHAKE256 output, and it notes that the 192-bit variants offer weaker collision resistance than the 256-bit ones. NSA nonetheless names LMS with SHA-256/192 as its preferred set. For federal systems, IR 8547 sets RSA, ECDSA and EdDSA signatures as deprecated after 2030 and disallowed after 2035, with earlier deadlines for prioritised federal systems. See the CNSA 2.0 Transition.

Approved use cases

SP 800-208 describes the target as applications that need a signature scheme soon, will have a long lifetime and could not practically switch schemes after deployment, with firmware updates for constrained devices that may stay in service for decades as the example. That matches roots of trust burned into hardware.

  • Firmware and boot chain signing: the main fit. A device can verify LMS or XMSS with only a hash function, which suits small boot ROMs. See the Firmware and Boot Security Guide.
  • Software release signing: centralised, low volume, high value signing where a release pipeline calls one signing service. See the Code Signing Security Guide.
  • National security systems: the CNSA 2.0 FAQ says NSS code signers must use CMVP validated hardware for signing, with no waivers, while verify only products need CAVP algorithm validation.
  • Poor fits: TLS, document signing at user scale, per transaction signing, and any signer running on many replicas. IR 8547 notes that tracking indices is especially hard across distributed systems.

Choosing between LMS and XMSS

QuestionGuidance
Are you building for US national security systems?Single tree LMS or XMSS only; NSA prefers LMS with SHA-256/192
What does your HSM validate?Use the scheme and parameter set your module's FIPS 140 certificate and CAVP listing cover
How many signatures over the key's life?Size the tree height for the lifetime volume with a margin; single tree keys cannot be extended
Do you need signing in several places?Outside NSS, multi tree HSS or XMSS^MT across modules (SP 800-208 Section 7); for NSS, consider ML-DSA or separate keys
What can the verifier run?Both need only the hash function; match the verifier's boot ROM or library support

State management risks

Every failure below ends the same way: a one time key signs two different messages. RFC 8554 is blunt that once that happens no cryptographic security guarantees remain.

Failure modeHow state goes backwardsPrevention
Backup and restoreA private key and index are restored from a backup taken before later signaturesNever back up a single tree private key with its state; SP 800-208 prohibits export, so use distributed multi tree keys or separate keys per module
Virtual machine clones and snapshotsA software signer is cloned or reverted to a snapshot, and both copies sign from the same indexDo not sign in software or VMs; SP 800-208 requires hardware modules for key and signature generation
HSM cluster replicationKey material replicated to several HSMs that each keep their own counterUse modules whose stateful key support prevents replication, or assign distinct sub keys per module
Crash before the counter is savedThe signature is released, then power fails before the new index is writtenIncrement and store the index in non-volatile storage before releasing the signature (SP 800-208 Section 8.1; RFC 8554)
Write cachingThe counter update sits in a cache and is lost on power failureSP 800-208 flags cached writes; use monotonic counters and synchronous writes
Load balancing and failoverTwo signers hold copies of the key for availabilityRFC 8391 requires partial keys or copies to be managed so each index signs only once; give each signer disjoint index ranges or its own key
Key exhaustionAll 2^h leaves are used and signing stops, or a team "resets" the counterMonitor remaining signatures and plan the next key long before exhaustion

Operational controls

  1. Select validated hardware: SP 800-208 requires FIPS 140-2 or FIPS 140-3 modules validated at Level 3 or higher physical security, operating only in an approved mode, with no bypass mode and the entropy source inside the boundary. See the HSM Deployment and Operations Guide.
  2. Plan availability without copying: SP 800-208 Section 7 describes a two level approach where a top level key signs the roots of bottom level trees held on different modules. Generate the bottom level keys up front, because the top level module is a single point of failure, and consider several top level keys on separate modules. For NSS, where HSS and XMSS^MT are not allowed, use separate single tree keys per module with each public key trusted by the verifier.
  3. Size for the lifetime: count releases, hotfixes, test signatures and emergency re-signing across the device's service life, and choose a tree height with headroom.
  4. Separate test and production keys: test signing consumes leaves and creates opportunities to clone state; keep it on separate keys and modules.
  5. Control who can sign: signing should run through a release pipeline service identity with approval gates, not interactive operator sessions. Log every signature with its leaf index.
  6. Plan revocation: SP 800-208 leaves revocation out of scope, so design the verifier's trust anchor update and key rotation path before the first device ships.
  7. Dual sign during transition: where verifiers vary, ship classical and hash-based signatures side by side until every verifier in the field supports the new scheme.

Detection and measurement

  • Index monotonicity: alert if any logged leaf index repeats or decreases; a repeat is a key compromise event.
  • Remaining capacity: track signatures remaining per key as a percentage, with alerts at agreed thresholds.
  • Signing provenance: percentage of signatures made through the approved pipeline identity.
  • Module integrity: HSM audit events for key replication, export attempts or restores on stateful keys (target zero).
  • Verifier coverage: share of shipped device models whose boot chain verifies the hash-based signature.

Where identity fits

The signer is a machine identity with the power to make any firmware image trusted by every device. Treat the pipeline identity that calls the HSM as a privileged non-human identity: short lived credentials, approval for each release, and an inventory entry with an owner. See the Cryptographic Key Management Guide.

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev 5SC-12 Cryptographic Key Establishment and ManagementState and key lifecycle in hardware
NIST SP 800-53 Rev 5SC-13 Cryptographic ProtectionUse of approved algorithms and parameter sets
NIST SP 800-53 Rev 5SI-7 Software, Firmware, and Information Integrity; CM-14 Signed ComponentsFirmware and software signature verification
NIST CSF 2.0PR.PS-02Software maintained and replaced with integrity

Comparison with SLH-DSA

SLH-DSA, specified in FIPS 205, is also hash-based but stateless: it removes the index that must never repeat, so keys can be backed up, replicated and used on several signers like any other key. IR 8547 likewise describes SLH-DSA as stateless and LMS and XMSS as stateful schemes needing strict index tracking.

FactorLMS / XMSS (SP 800-208)SLH-DSA (FIPS 205)
StateSigner must track and never reuse an indexNo state
Signature limitFixed by tree height (2^h per tree)No practical per key limit for normal use
Signature size and signing speedSmaller signatures, fast signingLarger signatures and slower signing
Key handlingHardware only, no export, no cloningStandard key management and backup
CNSA 2.0 positionApproved now for firmware and software signingNot in the CNSA 2.0 list
Best fitLong lived roots of trust with a central HSM signerDistributed or replicated signers, or teams that cannot guarantee state

The CNSA 2.0 FAQ also notes that ML-DSA (FIPS 204) is approved for all signing use cases and may suit strategies needing more signatures than one LMS or XMSS key supports, or distributed signing. A practical rule: choose LMS or XMSS where a validated HSM signer, a bounded signature count and a long lived verifier coincide; choose SLH-DSA or ML-DSA where any of those is missing. See the ML-DSA and SLH-DSA Post-Quantum Signatures Guide.

Practitioner checklist

  • Confirm each use case is firmware or software signing with a bounded, centrally controlled signature volume.
  • For national security systems, use single tree LMS or XMSS only, preferably LMS with SHA-256/192, in CMVP validated hardware.
  • Generate and sign only inside FIPS 140 Level 3 or higher modules that never export stateful private keys.
  • Prohibit software signers, VM snapshots and key backups for stateful keys; design availability with separate keys or SP 800-208 Section 7 multi tree keys.
  • Confirm the module stores the incremented index in non-volatile storage before releasing each signature.
  • Size tree height for the full device lifetime and monitor remaining signatures.
  • Log every signature with its leaf index and alert on any repeated or decreasing index.
  • Define verifier trust anchor update and revocation before devices ship.
  • Use SLH-DSA or ML-DSA wherever state cannot be guaranteed.

Standards and references

Related NHI Mgmt Group resources: Post-Quantum Cryptography Migration Guide · Post-Quantum Readiness Maturity Model · Firmware Signing vs Secure Boot · Post-Quantum Algorithms Compared

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.