← Back to section · Industry Applications
Firmware Updates and Signature Verification: The Single Most Important Cryptographic Operation in a Device's Life
For an industrial device serving twenty years, firmware signature verification is nearly the only public-key operation still actually working; once quantum computing breaks it, what the attacker gains is a legitimate channel for replacing the device's brain.
Why Firmware Verification Is the First Priority of Industrial PQC
Inventory the public-key cryptography of a typical industrial device and the conclusion is surprising: its day-to-day communications may use no public-key cryptography at all (plaintext protocols), its configuration may use some occasionally (a TLS management port), but one function almost certainly uses it, and uses it where it matters most — signature verification during firmware updates, together with the secure boot that accompanies it. Every firmware upgrade and every power-on self-check asks the same question: did this code really come from the vendor, and has it been tampered with? Digital signatures are what answer that question.
The exposure of this function to quantum attack is also special. Communications encryption faces “store now, decrypt later” — harvest today, decrypt tomorrow. Firmware verification faces “forge when the time comes”: the attacker needs to do nothing now, and need only, on the day quantum computing matures, forge a malicious firmware image that passes verification to turn every device of that model in the field into their own. The time skew makes it worse: a device still in service in 2030 had its verification logic fixed in the early 2020s. If that logic uses RSA or ECDSA and the quantum threat becomes real before the device retires, the device is, cryptographically, a door that cannot be locked. Firmware signing is therefore widely regarded as the highest-priority item in industrial post-quantum migration, and one of the few that should be acted on now — because it does not depend on any communication peer cooperating; the device vendor can change it unilaterally.
The Candidates: The Natural Fit of Hash-Based Signatures
The requirement profile of the firmware scenario is crisp: few signatures (a device verifies on the order of hundreds in its life), verification that must be cheap and reliable, security that must withstand decades of scrutiny, and an implementation simple enough to fit into boot code and be thoroughly audited. That profile matches hash-based signatures exactly. Stateful schemes such as LMS and XMSS base their security entirely on the collision and preimage resistance of hash functions, depending on no number-theoretic hardness assumption, and quantum computing’s impact on hashes is only Grover’s square-root weakening, compensable by longer outputs. Their verification logic is simple and highly deterministic; NIST has explicitly approved them for scenarios such as firmware signing in SP 800-208, and RFC 8554 and RFC 8391 give the standardised constructions.
The stateless SLH-DSA (FIPS 205) removes the state-management burden at the price of much larger signatures and slower signing. In the firmware scenario that trade usually pays: firmware images run from hundreds of kilobytes to megabytes, so a few extra kilobytes of signature are a small fraction; signing happens offline at the vendor, where slowness is tolerable; the device only verifies, and SLH-DSA verification speed is acceptable. Lattice-based ML-DSA verifies fast with moderate signature sizes, but its implementation complexity and side-channel protection requirements are markedly higher than hash-based schemes, demanding more careful evaluation before it is placed into resource-tight boot code. In practice a dual track is common: hash-based signatures guard the boot layer of new devices, while ML-DSA is introduced at the application layer as needed.
Note also the time asymmetry of verification: the security need of communications cryptography decays as data expires, while the security need of firmware verification grows as the device ages. Early in a device’s service, the attacker has no quantum computer and traditional signatures suffice; late in its service, the security of an entire fleet of the same model rests on the same verification logic — at which point the vendor may have ended maintenance, the original engineers may have left, and the replacement budget may not yet be scheduled. Firmware signing is therefore one of the few scenarios where algorithms must be chosen not for the commissioning date but for the end of the device’s full lifecycle: the question at selection time is not whether it is safe enough today, but whether it will still be safe enough in the year the device retires.
The Discipline of Stateful Signatures: State Is Life
The one real difficulty of stateful schemes is in the words “stateful”: each one-time key may be used exactly once, and if the signature counter is ever reused, the private key is compromised. This is not an algorithm flaw but a deployment-discipline problem, and it must be solved by engineering the discipline into constraints that cannot be violated. In practice: the counter lives in storage with rollback protection (a secure element, flash with a monotonic counter), the signing process is forcibly serialised by a hardware state machine or a controlled signing service, and the private key is never exported to an ordinary server for casual signing. The signature budget must be estimated at product-planning time: the number of leaves in an LMS tree determines the lifetime signature ceiling for that device family, and the tree height must be set from the firmware release cadence multiplied by the number of models, with generous margin. The real signing incidents on record were mostly not algorithm breaks but counter rollbacks caused by backup restoration, or two signing machines using the same state in parallel — lessons that all point to the same sentence: treat signing as a controlled ceremony, not a function call.
An Implementation Checklist
For device vendors: secure boot in new products should directly support hash-based signature verification, boot code should reserve room for dual verification (old and new roots in parallel) for algorithm upgrades, and legacy devices should use one last traditionally signed firmware to hand over to a new verification root — one of the very few self-rescue windows the installed base has, and it opens only once. For asset owners: include the firmware signing algorithm in procurement acceptance checks, inventory the verification algorithms and root-replacement options of the installed base, and schedule early replacement for devices whose verification root cannot be changed and whose algorithm faces retirement. For operations teams: accept firmware only through official signed channels, keep verification fingerprints offline, and treat any “engineering mode” that bypasses verification as a top-tier risk. Firmware signing is the most important cryptographic operation in a device’s life; it deserves the most conservative algorithms and the strictest process we have.
Tags: Firmware SigningSecure BootLMSXMSSSLH-DSA