← Back to section · Digital Security
Firmware Signing and Long-Term Trust: The Signatures That Live Longest Must Migrate First
The risk for encrypted traffic is being recorded; the risk for signatures is living too long: a firmware signature still being verified a decade from now must remain unforgeable for its entire lifecycle. This article covers the threat model for long-term signatures, where LMS/XMSS fit, and how to migrate a secure boot chain.
In quantum migration checklists, firmware signing is often placed near the end, on the reasoning that “signatures don’t fear being recorded and decrypted.” That reasoning confuses two threat models. The risk for encryption comes from the past: ciphertext recorded today, decrypted in the future. The risk for signatures comes from the future: a device installed today will keep trusting a particular signing key in its boot verification for the next ten or twenty years; if that private key is broken by quantum computing at any point before the device retires, the attacker can sign malicious firmware the device will accept completely. The longer the device lives, the longer that door stands open — long-term signatures are not the tail of the migration; ranked by asset lifetime, they are among its first items.
Which signatures are long-term signatures
The criterion is how long verification continues and whether the verifying end can be updated. Firmware signatures in industrial control, medical, automotive, network infrastructure, and building systems are typical: deployment cycles start at a decade, and verification logic is burned into ROM or one-time-programmable storage and cannot change. Satellite and avionics systems are more extreme still, physically unreachable after launch. By contrast, web TLS certificates rotate every ninety days and the verifying end is a continuously updated browser — a completely different migration flexibility.
Another easily missed class is archival and evidence signatures. Contracts, audit archives, and timestamps held for the long term need signatures that still prove authenticity decades later; verification happens in the distant future, staking trust entirely on the algorithm’s lifespan. Beyond algorithm replacement, the countermeasures for this class include evidence preservation and re-timestamping while the algorithm is still trusted.
Long-term signatures also have an organizational trait: the decision-makers and the consequence-bearers are often not the same people. The team speccing a platform today decides the verification situation the operations team will face in ten years; if algorithm lifetime and upgradeability are not written into selection documents as explicit clauses, short-term cost pressure will naturally leave the bill to the future. Writing “the signature trust period must cover the device’s expected lifetime with margin” into procurement and design acceptance criteria is the most direct correction to that time misalignment.
The ready-made answer: stateful hash-based signatures
NIST SP 800-208 standardizes two stateful hash-based signature schemes: LMS and XMSS. Their security rests only on the collision and preimage resistance of hash functions, not on any mathematical problem targeted by Shor’s algorithm, making them inherently quantum-resistant. NSA’s CNSA 2.0 suite explicitly lists LMS/XMSS as the preferred choice for software and firmware signing and provides transition timelines — a rare migration area where the standards-level answer already exists.
The cost is in the word “stateful”: in these schemes each one-time key may be used only once, and if the signing counter state ever rolls back or is reused in two places, security collapses. Engineering must guarantee that signing state is monotonically increasing and non-cloneable: host signing in a hardware security module (HSM), bind state storage to the key, and never copy used state in backup and disaster-recovery procedures. For a firmware release pipeline, this means the signing step graduates from a script to a controlled service with state management. That operational cost is real — but unlike ML-DSA, it does not have to wait for an ecosystem to mature; it can be deployed today.
Where ML-DSA fits in firmware scenarios
Beyond stateful hash-based signatures, FIPS 204’s ML-DSA is a stateless, general-purpose signature with a richer tooling ecosystem — so why does CNSA 2.0 still prefer LMS/XMSS for firmware? The reasons are verifier-side constraints and conservatism: hash-based constructions are simple, rest on the fewest security assumptions, and do not depend on the hardness of lattice problems; for boot environments with frozen verification logic and limited compute, implementation and audit costs are lower. ML-DSA’s signature and public-key sizes (on the order of kilobytes) are acceptable for most modern devices, but on older platforms where ROM space and bus bandwidth are tight, they inflate image size and verification time.
Real-world selection is usually a division of labor: new designs with ample verifier resources can use ML-DSA in exchange for stateless operational simplicity; verifier-constrained, extremely long-lived, or compliance-specified scenarios use LMS/XMSS and pay the HSM-hosting cost of state management. Both routes share one prerequisite: the root verification must recognize the new algorithm, and that decision must be made before the device design is frozen — after installation, every route narrows to the dual-signing transition.
Boot-chain migration: start at the root, transition with dual signing
Secure boot is a chain: the root in ROM verifies the first-stage bootloader, the first stage verifies the second, and so on down. The migration difficulty sits at the chain’s root: if the root verification logic recognizes only ECDSA and cannot be updated, no algorithm change above it matters — the root will not accept it. The first inventory question is therefore: what are the root key and root verification algorithm, and is multi-algorithm verification or updatable verification reserved?
For the installed base, the realistic path is a dual-signing transition: at the layers that can still be updated, firmware images carry both a classical and a quantum-resistant signature; new verification logic requires both (or at least the quantum-resistant one) to pass, while legacy devices keep using the classical signature. Maintaining two signing tracks in the release pipeline adds complexity, but it avoids cutting the device fleet over in one step to a stack never validated in the field. For new device procurement, write the requirements directly into the specification: root verification supporting LMS/XMSS or ML-DSA, updatable verification logic, and a hardware-hosted plan for signing state management.
Conclusion
Ranked by asset lifetime, long-term signatures belong at the front of the migration list: their risk window opens on installation day and closes at device retirement, with no room for “wait and see” in between. The good news is that this area has the most complete answers: the stateful hash-based signatures of SP 800-208 carry both standards and CNSA 2.0 endorsement, and the engineering points are clear — state management into HSMs, boot-chain inventory starting at the root, dual signing for the installed base. Migrate the signatures that live longest first, and the hardest bone on the migration checklist is dealt with.
Tags: firmware signingLMSXMSSsecure boot