Join our Newsletter — 33% off our NHI Course
Home› Glossary› Architecture & Implementation› Stateful Hash-Based Signature
Architecture & Implementation

Stateful Hash-Based Signature

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Architecture & Implementation

A Stateful Hash-Based Signature is a quantum-resistant signature scheme, such as LMS or XMSS, built from hash functions and one-time keys. The signer must record which keys it has used. Reusing a one-time key, for example after a backup restore or virtual machine clone, can allow forgery, so state must be protected.

What Stateful Hash-Based Signatures Are

Stateful hash-based signatures use hash functions and one-time keys to produce signatures that remain resistant to quantum attack assumptions. The defining feature is not just the cryptography, but the signer’s obligation to remember which one-time keys have already been consumed. That state requirement is what makes the scheme secure, and what makes operational handling unusually important.

They are best understood as a family of post-quantum signature schemes, not a single product or protocol. LMS and XMSS are the best-known examples, and both rely on the same basic idea: a finite supply of signing material must never be reused. Once a one-time key is spent, it is cryptographically retired.

Why State Management Is Part of the Security Model

With ordinary signatures, key reuse is expected. With stateful hash-based signatures, reuse can destroy security. If a backup restore, virtual machine clone, rollback event, or manual operator mistake causes the signer to emit two signatures with the same one-time key, an attacker may be able to forge additional signatures or undermine trust in all signatures made under that key.

This means the “secret” is not only the private signing material itself, but also the record of which leaf, index, or signing position has already been used. In practice, the signer’s state becomes security-critical configuration data. If that state is lost, duplicated, or restored inconsistently, the scheme’s safety assumptions are broken even if the cryptographic primitive is still sound.

Because the scheme is stateful, it creates a different operational burden from stateless post-quantum signatures. The cryptography is designed to survive quantum-era adversaries, but it does not tolerate careless replication or reset behaviour. That makes state protection, monotonic update, and controlled recovery part of the signature system itself, not just surrounding administration.

Where Stateful Hash-Based Signatures Fit

These schemes are used where long-term authenticity matters and where hash-based constructions are attractive because they avoid reliance on number-theoretic assumptions. They are especially relevant for code signing, firmware signing, embedded systems, and other environments where the signer can maintain tight control over the signing process.

The practical trade-off is that stateful schemes can be excellent for high-assurance signing, but only when the organisation can enforce single-writer discipline, durable state storage, and careful backup design. If those conditions are not realistic, a stateless post-quantum signature scheme is often easier to operate safely.

For migration planning, this is one reason stateful signatures are usually evaluated alongside broader post-quantum cryptography strategy rather than in isolation. The question is not only whether the algorithm is quantum-resistant, but also whether the surrounding system can preserve its one-time-use guarantees over time.

Operational Consequences When State Is Lost or Reused

The main failure mode is not gradual degradation, but catastrophic misuse of the same one-time signing position. Once that happens, the risk is irreversible: the organisation may not know which signatures remain trustworthy, and previously issued signed objects may need to be revalidated or replaced.

Operationally, this makes restore procedures, image cloning, disaster recovery, and key escrow far more delicate than they are for ordinary signing systems. A safe design must ensure that recovery never reintroduces already-used signing state, and that operators can prove the signer will not repeat an index after failover or rollback.

That is why stateful hash-based signatures are usually paired with strict controls around hardware security modules, immutable logging, and controlled signing workflows. The cryptography itself is robust, but only if the organisation treats state continuity as a core security property.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-57, NIST CSF 2.0 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST SP 800-57Key ManagementStateful hash-based signatures depend on protected key lifecycle and non-reuse.
Recommendation — Apply key lifecycle controls to prevent reuse and preserve one-time signing state.
NIST CSF 2.0PR.DS-04 — Data is adequately protected at rest and in transitThe signer’s state must be protected as sensitive security material.
Recommendation — Protect signer state with strong storage, access, and recovery controls.
ISO/IEC 27001:2022A.8.24 — Use of cryptographyThe scheme is a cryptographic control with strict operational handling requirements.
Recommendation — Define cryptographic operating procedures that prevent one-time key reuse.
CIS Controls v8CIS-3 — Data ProtectionState records and signing material need protection against loss and duplication.
Recommendation — Protect signing state with hardened storage, backup discipline, and change control.

Practitioner Guidance

Why practitioners should care: The operational risk is easy to underestimate because the algorithm name sounds like a standard signature scheme, yet the security boundary includes the signer’s history. Teams need explicit ownership for state preservation, recovery testing, and clone prevention wherever these signatures are used.

What to watch for: Backup restore jobs, snapshot rollbacks, VM templating, and parallelised signing pipelines are the conditions most likely to create accidental key reuse. If those processes exist, the signing architecture needs stronger state controls before the scheme is trusted in production.

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.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org