← Back to section · Digital Security

Post-Quantum Code Signing: Firmware and Software Updates Go First

Code signing is the part of the post-quantum migration that can least afford to wait: firmware signed today may still be verified a decade from now. This article covers the engineering constraints of stateful hash-based signatures, hybrid dual-signing transitions, and a retrofit checklist for signing infrastructure.

Published 22 November 2026 · 5 min read · PQ Frontier

Post-Quantum Code Signing: Firmware and Software Updates Go First
AI-generated site artwork
Video explainer · Digital Signatures: Signing and Verification

Code signing differs from other signature scenarios in one fundamental way: signing time and verification time can be a decade apart. A firmware signature burned into a router, an automotive ECU, or an industrial controller today must be trusted by the bootloader for the device’s entire lifetime. “Harvest now, decrypt later” is a threat to session encryption; for code signing the proposition is more direct — an attacker does not need to forge in real time, only to be ready, on the day quantum computers mature, to forge and deliver malicious firmware before the device is retired. That is why the CNSA 2.0 suite lists firmware and software signing among the earliest scenarios to switch, asking relevant systems to prefer post-quantum signatures from 2025 and complete the transition before 2030.

Why Hash-Based Signatures Lead

Beyond ML-DSA (FIPS 204), code signing has an earlier-maturing route: stateful hash-based signatures. LMS and XMSS rest only on the security of hash functions, introduce no new mathematical assumptions, and were approved for digital signatures by NIST SP 800-208 back in 2020, with full parameter and encoding specifications in RFC 8554 and RFC 8391. Their signatures are a few kilobytes and verification is fast — a good fit for firmware, where the verifying side is compute-constrained but relatively insensitive to signature size, since firmware images are usually measured in megabytes anyway.

The price is state. A stateful hash-based private key consists of many one-time signing keys, each usable exactly once; the signature counter is part of the private key’s state. If the same state is ever used for two different messages — two signing machines each restored from the same backup, or a virtual machine resuming after a snapshot rollback — the forgery threshold collapses. The engineering responses form a system:

  • Concentrate signing in a dedicated HSM or signing service whose hardware maintains state monotonically, with no export or cloning;
  • Plan tree height against the expected number of signatures; rather than stretching an old tree, generate a new key and roll the firmware trust root;
  • Forbid snapshot rollback on signing machines; design disaster recovery around “replace the key” instead of “restore the old state.”

Constraints at the Boot Chain and the Verifier

Signatures ultimately land on the verifying side, and in code signing that side is often the hardest part of the whole system to upgrade. The first-stage bootloader (Boot ROM) is usually fixed at chip fabrication time; its built-in root public keys and supported algorithms cannot change for the device’s life. The first step of a post-quantum migration is therefore not choosing an algorithm but inventorying trust roots: which devices have replaceable root keys (spare eFuse slots, updatable second stages), and which will carry a classical root to their grave. For the latter, the workable path is to give the updatable second-stage bootloader post-quantum verification as early as possible, letting the classical root vouch for exactly that one component and narrowing the exposure to a minimum.

Verification performance must be measured, not assumed. ML-DSA verification is comparable to or faster than ECDSA, which is fine; SLH-DSA (FIPS 205) signatures can reach tens of kilobytes with noticeably heavier verification, which can add perceptible boot latency on low-end microcontrollers; LMS/XMSS verification needs only a handful of hashes and is the comfort zone for such scenarios. When choosing an algorithm, put the weakest verifying device into the test matrix rather than benchmarking only the signing server.

Signing Ecosystems for Desktop and Server Software

Beyond firmware, code signing for operating systems and software distribution channels is on the same migration track. Driver signing, kernel module signing, and app-store package signing share one trait: the verification logic is maintained centrally by the platform, so upgrades are more controllable than firmware — but the ecosystem is far larger, and any format change must accommodate the legacy toolchains in the hands of countless third-party developers. The transition here leans more on algorithm agility at the format layer: signature containers must carry multiple signatures side by side, each with its own algorithm identifier, with verifiers choosing according to local policy. Mature formats such as CMS (RFC 5652) already support multiple signer infos; the real work lies in policy engines and the defaults of developer tools — dual-sign or single-sign by default, which algorithm for timestamps, whether an old system rejects or ignores an unrecognized signature. Each default will be executed billions of times over the coming decade.

Dual Signing and Verification Policy

Most products cannot switch overnight: existing devices accept only RSA or ECDSA, and only new devices support post-quantum algorithms. The standard transition pattern is dual signing — the same firmware carries both a classical and a post-quantum signature. The hard part is not signing twice but the verification policy:

  • Either passes (OR): best compatibility, but security equals the weaker algorithm — a quantum attacker only needs to break the classical signature;
  • Both must pass (AND): security is anchored by the post-quantum signature, but every verifier must be upgraded and legacy devices are excluded;
  • Phased: deploy with OR first, monitor coverage of new-algorithm verifiers, switch to AND past a threshold, and eventually retire the classical signature.

Which route to take depends on how controllable the device population is. Mobile app ecosystems can push hard through store review; industrial equipment may run under OR for years. Whichever is chosen, it must be written into the specification and covered by conformance tests on the verifier side — many historical signature-bypass incidents trace back to “the spec never said, so every implementation guessed.”

A Retrofit Checklist for Signing Infrastructure

Swapping the algorithm is only the surface; every link of the signing infrastructure needs a pass. Timestamping services must handle the new algorithms (otherwise there is no way to prove signing time after a certificate expires). Build pipelines must move signing keys out of files and software key stores into HSMs that support the new algorithms. Update frameworks and OTA channels need metadata formats with room for algorithm identifiers and multiple coexisting signatures. Offline verification tools, audit logs, and emergency revocation procedures all need a rehearsal. Finally, watch the mismatch between signature lifetime and device lifetime: the last classical signature issued for a long-lived device should hand its trust chain over to a post-quantum signature before the quantum threat materializes, not after an incident forces the issue.

Tags: Code SigningFirmware SigningLMS/XMSSSoftware Supply Chain