Quantum-safe code signing: protecting software and firmware updates against future forgery
Signed updates are the trust anchor of all software. Which post-quantum signatures are ready for code signing and what manufacturers should plan now.
- Firmware shipped today often still checks its updates in ten years. The verification key in the device therefore has to be planned as quantum-safe today.
- Two routes are available for code signing: stateless signatures under FIPS 204 and FIPS 205, and hash-based schemes under NIST SP 800-208, which must manage their state strictly.
- The signing key belongs in an HSM, the signing step in its own logged process. From December 2027 the Cyber Resilience Act indirectly requires this as well.
A controller on the shop floor checks every update before installing it: if the manufacturer's signature is valid, the new firmware runs. This check is the trust anchor of the entire software supply chain. Whoever can forge the signature can install any code. Making code signing quantum-safe is therefore one of the tasks with the longest lead time.
Why code signing comes before other signatures
With signatures, unlike encryption, there is no retroactive attack: a signature verified today does not become false later. The problem with code signing lies in the lifetime of the verification keys. The public key a device uses to check updates sits in the bootloader, the secure element or the firmware itself. Machines, vehicles and controllers run for ten, fifteen or twenty years.
If one day a classical signature can be forged with a powerful quantum computer, switching only then is no help: devices in the field keep trusting the old key. The new scheme therefore has to be in the device before it is needed. How signatures and encryption differ here is explained in Post-quantum signatures and standards.
The US National Security Agency has therefore put software and firmware signing at the start of its timeline: under CNSA 2.0, products for national security systems should support and prefer the new schemes from 2025 and use them exclusively from 2030 (NSA, CNSA 2.0).
Which schemes are available for code signing
- Stateless lattice signatures under FIPS 204 (standard since August 2024): compact enough for most updates, fast to verify, the general candidate for software signatures.
- Stateless hash-based signatures under FIPS 205 (standard since August 2024): rely only on hash functions and are considered particularly conservative, but have large signatures and are slower.
- Stateful hash-based signatures under NIST SP 800-208 (recommendation, 2020), i.e. LMS and XMSS: small verification routine, ideal for bootloaders. The German BSI lists them as recommended in TR-02102-1.
The catch with stateful schemes: each one-time key may sign only once. If a state is used twice, for example because a backup was restored, signatures can be forged. RFC 10033 (informational, September 2026) describes how to manage state and backups safely and recommends stateless schemes for applications with an unlimited number of signatures.
Key point: Hash-based schemes suit the bootloader that rarely checks signed firmware. Stateless signatures under FIPS 204 suit applications, packages and frequent releases.
Quantum-safe code signing: the architecture
A new scheme alone is not enough. What matters is how signing is organised:
- Key in the HSM: the private signing key never leaves a hardware security module. The HSM must support the new schemes, and for hash-based signatures also state management. What matters for HSMs and key management is covered in Quantum-safe key management.
- Signing as a separate step: the build pipeline produces the artefact, a separate signing service checks origin and approval and only then signs. Every operation is logged.
- Two signatures during the transition: new devices verify both classical and quantum-safe signatures, older devices only classical ones. The installed base stays updatable.
- Plan key rotation in the field: an update must be able to load new verification keys. Without this path, a replacement requires a service visit.
What the Cyber Resilience Act has to do with it
The Cyber Resilience Act obliges manufacturers of products with digital elements to fix vulnerabilities through security updates and to protect the integrity of their software. Reporting obligations have applied since 11 September 2026, the main obligations apply from 11 December 2027. Anyone designing new product generations now decides how their updates will be verified in the 2030s. How manufacturers query vulnerabilities at suppliers is shown in CRA: querying suppliers about a vulnerability.
Frequently asked questions
Do I need to re-create existing signatures?
No. A signature verified correctly today remains valid. What matters is that devices can verify future updates with a quantum-safe scheme before classical signatures can be forged.
Is it enough to swap the scheme in the pipeline?
No. The verification key in the device, the HSM and the path for replacing keys in the field must follow as well. Otherwise the pipeline signs with a scheme the devices cannot verify.
What you can do now
- Inventory signing points: which products, bootloaders, packages and containers are signed with what? This belongs in the crypto inventory.
- Long-lived devices first: products with more than ten years of service life and no key rotation in the field take priority.
- Check HSMs and tools: ask about support for FIPS 204, FIPS 205 and SP 800-208 including state management.
- Plan dual signatures: ship new product generations with classical and quantum-safe verification.
- Document the signing process: approval, logging and an emergency path for compromised keys.
Tools from the QuantiCor portfolio
QorKey manages keys and certificates centrally and quantum-resistantly in an isolated environment, with an automated lifecycle. For the signing keys of a build environment, that is the foundation. If you want to add post-quantum encryption to your own devices and applications, the PQVault SDK provides the building blocks. Release approvals and test reports can be shared end-to-end encrypted with test labs and customers in PQVault Spaces. More scenarios under Machinery & plant engineering.
PQVault is a product of QuantiCor Security GmbH, Darmstadt — specialists in post-quantum cryptography. More about QuantiCor Security
