Post-quantum firmware signing for embedded devices.

The NSA's Post-Quantum Warning: What It Means for Firmware Signing

December 3, 2026 • By Michael Mikuš

A server can switch to a new signature algorithm with a software update. Many microcontrollers can’t. The boot ROM and the key that verifies the first firmware image sit in memory nobody can rewrite, and a device you ship next year may still be running in 2040.

On 2 December 2026, the NSA told the owners, operators, and vendors of US national security systems to speed up their move to post-quantum cryptography (PQC) immediately. It singled out exactly this problem: firmware signatures and hardware roots of trust can be hard or impossible to update once a device is in the field.12

Key Takeaways

  • The NSA wants post-quantum migration to start now. Its 2 December advisory asks the owners, operators, and vendors of national security systems to prioritize quantum-resistant firmware signatures and hardware roots of trust, because they can be hard or impossible to update after a device ships.
  • Anthropic’s AI-discovered lattice attack doesn’t break today’s standards. It’s asymptotic and impractical at the ML-KEM and ML-DSA parameter sets, and independent cryptographers advise continuing the migration.
  • Hash-based signatures suit firmware signing. CNSA 2.0 names LMS and XMSS for it, and wolfBoot verifies a 1,776-byte LMS signature on a 48 MHz Cortex-M0+ with a smaller bootloader than its ECDSA build.
  • The decision happens at hardware selection. Pick a chip and bootloader that can verify a post-quantum signature, leave room for signatures of up to about 5 KB, and keep LMS signing state in an HSM.

What Happened

The NSA’s advisory, Immediate Actions to Push Toward Post-Quantum, asks national security system owners, operators, and vendors to:2

  • inventory their cryptography, including firmware validation mechanisms,
  • prioritize quantum-resistant firmware signatures and hardware roots of trust,
  • specify CNSA 2.0 requirements when they buy equipment,
  • plan the transition of fielded equipment, including hardware replacement where needed,
  • build in cryptographic agility, with enough processing power, memory, and capacity for future algorithm updates.

The same day, the Office of the National Cyber Director, the NSA, and CISA said in a joint statement that American AI companies had disclosed discoveries that affect “some cryptography currently in use.”34 The statement doesn’t say which cryptography. Its assessment is that the advances “do not present an immediate and widespread threat” to it, while the NSA’s own release calls these discoveries, together with quantum computing, a significant threat to cryptographic systems.12

The UK’s NCSC responded on 2 December by reaffirming its timeline: complete the highest-priority migration work by 1 January 2031, and the full migration by 2035.56 The EU’s roadmap, published in June 2025, asks member states to start the transition by the end of 2026 and to move critical infrastructure by the end of 2030.7

Why Firmware Signing Is the Hard Part

Secure boot is a chain. The chip’s boot ROM verifies the first-stage bootloader against a public key, or a hash of one, stored in one-time programmable memory or fuses. That bootloader then verifies the application. Neither the ROM code nor the fused key changes after manufacturing. If the ROM can only verify ECDSA or RSA signatures, no firmware update can teach it a new algorithm. Once a large quantum computer can recover a signing key from its public key, an attacker can sign firmware that every such device still accepts. Spare key slots for revocation don’t help when every slot holds a key for the same algorithm.

Signatures and key exchange also fail on different schedules. Traffic recorded today can be decrypted once a large enough quantum computer exists, which is why TLS key exchange is usually migrated first. A signature only matters when a device checks it, so the risk for firmware starts on the day someone can forge one and lasts as long as your devices stay in the field.

The NCSC sets a planning deadline: by 2028, your initial migration plan should identify any requirement to migrate long-lived hardware roots of trust.6 CNSA 2.0, the NSA’s algorithm suite, already names the algorithms for the job. Software and firmware signing uses LMS or XMSS, the stateful hash-based signatures from NIST SP 800-208, and general-purpose signatures use ML-DSA-87. New national security system acquisitions must support CNSA 2.0 from 1 January 2027.89

What the AI Research Does and Doesn’t Change

At the end of November, Anthropic published four papers on lattice problems, with Lean 4 formalizations of the main results, and said an internal research Claude model found the results.10 The main result is a quantum algorithm that solves certain module-lattice problems in quasi-polynomial time when the module rank is fixed. ML-KEM and ML-DSA are built on this family of problems. The repository states that the results are asymptotic and that the algorithms aren’t practical at the ML-KEM and ML-DSA parameter sets.

The Cryptography Incident Review Group (CIRG), an independent group of cryptographers, published its assessment on 30 November.11 Against ML-KEM and ML-DSA, the new attack needs vastly more computation than the best attacks known before, which were already far beyond practical reach. Its speedup grows with the ring degree, while both standards fix the degree at 256 and gain security by raising the module rank. CIRG’s advice is to keep migrating, use the highest security level your application supports, combine schemes with different mathematical foundations in hybrids, and design systems so that individual algorithms can be replaced.

Neither the joint statement nor the NSA’s release names the research behind the warning, so it isn’t confirmed that this is what the agencies meant. For firmware signing, one point is clear: the lattice results don’t apply to LMS and XMSS, which use no lattices. Their security rests on the hash function.

Signature Sizes on a Microcontroller

Post-quantum signatures are much larger than ECDSA’s, but verifying them doesn’t have to be expensive. The table shows what your bootloader, flash layout, and update packages need room for.1213

Algorithm Standard Signature Public key Stateful
ECDSA P-256 FIPS 186-5 64 B 64 B No
LMS (SHA-256, H=20, W=8, single-level HSS) SP 800-208 1,776 B 60 B Yes
ML-DSA-44 FIPS 204 2,420 B 1,312 B No
ML-DSA-65 FIPS 204 3,309 B 1,952 B No
ML-DSA-87 (the CNSA 2.0 level) FIPS 204 4,627 B 2,592 B No

ECDSA sizes are for the raw encoding. A DER-encoded P-256 signature is up to 72 bytes.

wolfBoot’s port to the NXP Kinetis KL26 shows what verification costs on a small part: a 48 MHz Cortex-M0+ with 128 KB of flash, 16 KB of SRAM, and no crypto accelerator. With LMS (H=20, W=8), the bootloader takes 14.9 KB of code and peaks at 5.7 KB of RAM, against 24.3 KB and 7.7 KB for its ECDSA P-256 build.13 LMS verification is almost entirely hashing, which is why it fits.

The catch is state. An LMS key with H=20 can sign 1,048,576 images, and each one-time key inside it must never sign twice, because reuse lets an attacker forge signatures. Keep the private key and its state in an HSM or a signing service that tracks it, and never restore the key from a backup without its state. Generating the H=20 key also takes minutes, according to wolfSSL.13

Then check your bootloader. wolfBoot supports ML-DSA, LMS/HSS, and XMSS/XMSS^MT, and a hybrid mode that verifies a classical and a post-quantum signature on the same image.14 MCUboot, the bootloader in Spotflow’s Zephyr OTA guide, documents RSA, ECDSA, and Ed25519 image signatures, so confirm what your version supports before you plan a post-quantum key.15

What to Do Now

  1. List where your product uses public-key cryptography. Boot ROM, bootloader, update packages, TLS to the cloud, device certificates. Mark which of them can change after manufacturing.
  2. Choose hardware for your next design with this in mind. Check whether the chip’s secure boot, or a bootloader you can update in the field, can verify LMS, XMSS, or ML-DSA, and ask your silicon and bootloader vendors for their post-quantum plans.
  3. Leave room. Budget flash, RAM, and update package size for signatures of up to about 5 KB (4,627 bytes for ML-DSA-87), plus the classical signature if you sign each image with both.
  4. Plan the signing side. For LMS or XMSS, decide where the state lives before you generate the first key.
  5. Move device-to-cloud TLS to hybrid key exchange, such as X25519MLKEM768, where your TLS stack and cloud endpoint support it. Recorded traffic is the part that’s exposed today, and the NCSC lists adopting its post-quantum TLS profiles as a near-term action.5

Where Spotflow Fits

Spotflow doesn’t sign or verify firmware. Your bootloader does that. Spotflow helps with the fleet side of two items on the NSA’s list: the inventory, and the transition of fielded equipment.

  • Inventory. The Spotflow device module reports each device’s build ID, and Spotflow links it to the firmware version whose symbol file matches. If you tag devices by model or hardware revision, you can count how many have a chip that can verify a post-quantum signature. Spotflow also extracts the components, including the crypto library and its version, from the SBOM you upload to each firmware version.
  • Rollout. Deploy each signed image over the air to a small cohort selected by device tags, then expand. Follow each device’s update status, and the build ID it reports after it reboots.

For how the same data helps during a security incident, see Cybersecurity Incidents in IoT Device Fleets.

Conclusion

The NSA’s advisory didn’t announce a broken algorithm. It asked for the work to start now, and for embedded teams that work starts with decisions made once per product: which chip, which bootloader, which signing key. For a server, post-quantum migration is a software project. For a device that ships next year and runs until 2040, it’s a hardware choice you make now, with flash to spare for a larger signature and a signing process that never reuses state.


Ready to get started? Sign up for Spotflow, no credit card required.

Explore the documentation to go deeper:

Questions or feedback? Reach out on Discord or email hello@spotflow.io.


Citations

Footnotes

  1. National Security Agency, press release on the advisory “Immediate Actions to Push Toward Post-Quantum,” 2 December 2026. https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662430/nsa-advises-immediate-transition-to-post-quantum-cryptography-to-protect-nation/ ↩ ↩2

  2. The Quantum Insider, “NSA Urges National Security Systems to Accelerate Post-Quantum Cryptography Migration,” 2 December 2026. https://thequantuminsider.com/2026/12/02/nsa-faster-post-quantum-cryptography-migration/ ↩ ↩2 ↩3

  3. Office of the National Cyber Director, NSA, and CISA, “Joint Statement on Recent Advances in Cryptographic and Cybersecurity Capabilities,” 2 December 2026. https://www.cisa.gov/news-events/news/joint-statement-recent-advances-cryptographic-and-cybersecurity-capabilities ↩

  4. The Hacker News, “NSA Urges Immediate Post-Quantum Migration After Undisclosed AI Cryptography Discoveries,” December 2026. https://thehackernews.com/2026/12/nsa-urges-immediate-post-quantum.html ↩

  5. UK National Cyber Security Centre, “NCSC advises urgent action on migration to post-quantum cryptography,” 2 December 2026. https://www.ncsc.gov.uk/news/ncsc-advises-urgent-action-on-migration-to-post-quantum-cryptography ↩ ↩2

  6. UK National Cyber Security Centre, “Timelines for migration to post-quantum cryptography,” 20 March 2025. https://www.ncsc.gov.uk/guidance/pqc-migration-timelines ↩ ↩2

  7. European Commission, “EU reinforces its cybersecurity with post-quantum cryptography,” 23 June 2025. https://digital-strategy.ec.europa.eu/en/news/eu-reinforces-its-cybersecurity-post-quantum-cryptography ↩

  8. Global Quantum Intelligence, “NSA Advises Immediate Acceleration of Post-Quantum Cryptography Transition Ahead of 2027 CNSA 2.0 Procurement Mandate,” Quantum Computing Report, 2 December 2026. https://quantumcomputingreport.com/nsa-advises-immediate-acceleration-of-post-quantum-cryptography-transition-ahead-of-2027-cnsa-2-0-procurement-mandate/ ↩

  9. NIST, SP 800-208, “Recommendation for Stateful Hash-Based Signature Schemes,” October 2020. https://csrc.nist.gov/pubs/sp/800/208/final ↩

  10. Anthropic, “Four papers on lattices: a Lean 4 formalization,” anthropics/formal-math repository on GitHub. https://github.com/anthropics/formal-math/tree/main/lattices ↩

  11. Cryptography Incident Review Group, “Initial Assessment of Anthropic’s Findings on Lattice Cryptography,” 30 November 2026. https://cirg.org/statements/1/ ↩

  12. NIST, FIPS 204, “Module-Lattice-Based Digital Signature Standard,” 13 August 2024. https://csrc.nist.gov/pubs/fips/204/final ↩

  13. wolfSSL, “wolfBoot Now Supports the NXP Kinetis KL26 with Post-Quantum LMS Signatures,” June 2026. https://www.wolfssl.com/wolfboot-now-supports-the-nxp-kinetis-kl26-with-post-quantum-lms-signatures/ ↩ ↩2 ↩3

  14. wolfSSL, “Post-Quantum Signatures,” wolfBoot documentation. https://github.com/wolfSSL/wolfBoot/blob/master/docs/PQ.md ↩

  15. MCUboot, “Bootloader” (design documentation). https://github.com/mcu-tools/mcuboot/blob/main/docs/design.md ↩

Spotflow ©

SOCIALS & CONTACT

>>>>>>>>>>>>>>>>>>>>>>>
>

COMPARE

>>>>>>>>>>