RFC 10033 lists how LMS and XMSS signature keys get reused

In short

4 stateful schemes covered: LMS, HSS, XMSS, XMSS^MT; 1 signature allowed per one-time key; 4 ACID properties the state should satisfy; 9 approaches analysed in section 5 (our count)

Why a counter can break a signature scheme

A digital signature lets the holder of a private key prove that a message came from them, and lets anyone check it with a public key (our summary). Most signatures in use today rest on mathematical problems that a large quantum computer could solve. Hash-based signatures rest only on a hash function, which is why the RFC says they resist attacks with large-scale quantum computers.

The catch is in how they are built. They combine Merkle trees with one-time signatures (OTSs). The private key is a finite collection of OTS keys, often generated on demand from a seed, plus a record of which have been used. That record is usually a simple counter, which the RFC calls the state. Each key can sign a limited number of messages, and the state has to change with every signature.

One OTS key must never be used twice. The RFC says that if an attacker obtains signatures on two different messages made with the same OTS key, it is computationally feasible to create forgeries. Ordinary stateless schemes such as ECDSA are not free of this kind of trap either: the RFC notes ECDSA asks the signer never to reuse a nonce.

How can a device accidentally reuse a signing key?

Section 4 sets the requirement: no two signing operations may ever be issued from the same state, and creating a signature and updating the state should look like one atomic transaction. The system must not release a signature without irrevocably updating the state. The RFC asks for all four ACID properties:

The hazards it names:

The verifier needs no state. It does have to trust the signer not to have reused one, though a public log of all signatures would let anyone spot a repeated index. The RFC cites Certificate Transparency as an existing example of such a log.

The approaches, and what each costs

Section 5 deliberately does not pick a winner. A selection:

Two examples from the RFC show the idea. In pre-assignment, releases 1.0 to 1.99 get signatures 1 to 100 and releases 2.0 to 2.99 get 101 to 200, so after 99 minor releases one must move up a major version even if that breaks semantic versioning. In the time-based example, an instance with 1024 signatures is cut into 8 groups of 128, one per time window.

Key rotation, the RFC says, "just shifts the problem to the PKI and certificate handling". Variable-length signature chains are called research-class and "should not be considered as a viable solution".

Backups that cannot roll back

Section 6 describes a backup method that goes beyond NIST SP 800-208. After the usual multi-tree key generation, extra bottom-level trees are generated from random seeds. For each one, the top-level tree signs its root, the seed is securely exported, the signature, index and a hash of the seed are exported, and the seed and tree are irreversibly deleted from the device. The backup trees are used only in the worst case: when no bottom-level tree and not even the top-level tree is available, for example if all hardware modules break at once. A new module then imports the first unused seed, deletes it from the backup medium and outputs the seed's hash as a correctness check. Verifiers need no special handling.

Who should use these schemes at all

Section 1.1 is blunt. Stateful schemes are "not general-purpose signature schemes". Most applications, especially ones that may produce unrestricted numbers of signatures, should use stateless schemes such as SLH-DSA or ones based on other assumptions such as ML-DSA. Stateful schemes may suit cases where run time, implementation size, or key and signature sizes rule those out, and where the signing environment can be tightly controlled. The RFC says it seems likely that many scenarios can only meet its requirements with purpose-designed hardware such as hardware security modules. It points to firmware and software signing, and says the NSA's CNSA 2.0 allows LMS and XMSS in specific scenarios of that kind.

It also suggests a configurable warning when M signatures remain, so a system does not run out abruptly.

Terms in plain English

Where things stand

RFC 10033 is Informational, not a Standards Track specification, though the RFC says it represents IETF community consensus and was approved by the IESG. It has no IANA actions. We did not read NIST SP 800-208 or any product, so how well existing devices meet these requirements is not covered here.

Sources

Sources

Related stories

More from Wi-Fi Wizards

All stories from Wi-Fi Wizards