Stephanie Anne Timmer

Chapter 7

Firmware, Boot, and Hardware Roots of Trust

The Most Operationally Sensitive Migrations in Your Program

Every chapter in this cookbook carries some operational risk. This one carries more than all the others combined. A misconfigured TLS certificate fails gracefully — users get a browser warning. A failed firmware signing migration can brick a device permanently. A broken Secure Boot configuration can prevent an entire fleet of servers from booting. A TPM attestation failure can lock users out of encrypted drives at scale.

This chapter covers the migrations that live in the deepest layer of the trust stack: UEFI Secure Boot signature verification, TPM 2.0 attestation, firmware signing keys, and HSM PQC readiness. These are not areas where you move fast and fix later. They require staged rollouts, validated rollback procedures, and extensive pre-production testing before a single production device is touched.

Read this chapter carefully. Follow the checklists in order. Do not skip the rollback verification steps.

⚠ Before You Begin This Chapter
Every procedure in this chapter should be tested in a lab environment on identical hardware before any production deployment.
Maintain physical access to all devices during firmware migration in case remote management becomes unavailable.
Verify recovery mechanisms (USB boot, BMC/iDRAC out-of-band access, physical console) are functional before beginning.
Have your hardware vendor's support contact information available before starting any firmware migration.
What You Will Learn
How UEFI Secure Boot uses cryptographic signatures and what PQC migration requires.
The current state of TPM 2.0 PQC support and practical workarounds.
A complete firmware signing migration checklist with rollback procedures.
How to assess and prepare HSMs for PQC key generation and signing operations.

7.1 UEFI Secure Boot with PQC Signatures

How UEFI Secure Boot Works

UEFI Secure Boot is a firmware-level mechanism that prevents unauthorized code from executing during the boot process. When a system boots, the UEFI firmware verifies the digital signature on each bootloader, kernel, and driver before executing it. Only code signed by a key in the system’s signature database (db) and not revoked in the forbidden signature database (dbx) is permitted to run.

The cryptographic foundation of Secure Boot today is RSA-2048 or RSA-4096 with SHA-256, and occasionally ECDSA P-256 on newer implementations. Both RSA and ECDSA are quantum-vulnerable under Shor’s algorithm. A sufficiently powerful quantum computer could forge Secure Boot signatures, allowing malicious firmware to pass signature verification and execute before the operating system loads — before any software-layer security controls are active.

The Secure Boot Key Hierarchy

Secure Boot uses a four-level key hierarchy:

KeyFull NamePurposeStored InWho Controls
PKPlatform KeySigns KEK; root of Secure Boot trustUEFI firmware non-volatile storageHardware OEM or enterprise owner
KEKKey Exchange KeySigns updates to db and dbxUEFI firmware non-volatile storageOS vendor or enterprise owner
dbSignature DatabaseContains keys/hashes trusted to sign bootloadersUEFI firmware non-volatile storageEnterprise owner
dbxForbidden Signature DatabaseContains revoked keys and hashesUEFI firmware non-volatile storageEnterprise owner

Migrating Secure Boot to PQC requires replacing the signing keys at every level of this hierarchy — PK, KEK, db, and dbx — and re-signing every bootloader and kernel with PQC keys. This is a significant program, not a configuration change.

Current State of PQC Secure Boot

UEFI Forum PQC working group. The UEFI Forum published guidance on post-quantum Secure Boot in 2024, recommending migration to ML-DSA for Secure Boot signature verification. The UEFI specification is being updated to formally include ML-DSA as a supported signature algorithm. As of mid-2026, ML-DSA Secure Boot support is available in:

PQC Secure Boot Migration Sequence

⚠ Do Not Begin This Sequence Without a Tested Rollback Plan
If the PK enrollment fails or the new PQC-signed bootloader fails to verify, the system will fail to boot. Confirm your out-of-band management access (BMC/iDRAC/iLO) and USB recovery media are working before proceeding.

The migration sequence must follow the key hierarchy from top to bottom:

  1. Verify firmware supports ML-DSA Secure Boot (check vendor release notes and firmware version).
  2. Generate new ML-DSA PK, KEK, and db keys in an HSM. Do not use software key storage for Secure Boot keys.
  3. Sign the new KEK with the new PK. Sign the new db with the new KEK.
  4. Re-sign all bootloaders (GRUB, systemd-boot, Windows Boot Manager) and kernels with the new ML-DSA db key.
  5. Enroll the new ML-DSA db key in the signature database — without yet replacing the PK or KEK. Verify that the PQC-signed bootloader validates successfully while the old PK/KEK are still in place.
  6. On a single test machine: replace KEK with the new ML-DSA KEK. Boot and verify.
  7. On the same test machine: replace PK with the new ML-DSA PK. Boot and verify. Confirm that only the new PQC chain is trusted.
  8. Stage the rollout to 5% of production, then 25%, then 100% with validation at each stage.

Signature Size Implications for Secure Boot

ML-DSA signatures are larger than RSA-2048 signatures. An ML-DSA-65 signature is approximately 3,309 bytes; an ML-DSA-87 signature is approximately 4,627 bytes, compared to 256 bytes for RSA-2048. This matters in two contexts:

Vendor Firmware Update Signing

Vendor firmware updates (BIOS updates, BMC/iDRAC firmware, NIC firmware) are also signed by the hardware vendor. These signatures are verified by the device’s embedded hardware root of trust — a separate layer from UEFI Secure Boot. PQC migration of vendor firmware update signing is entirely governed by the hardware vendor’s roadmap. Your role is to verify that the vendor has a published PQC firmware signing roadmap and that firmware updates delivered after the CNSA 2.0 2030 exclusive-use deadline will be ML-DSA signed.

Include this question in every hardware vendor PQC assessment (Section 2.5) and in all hardware procurement solicitations. The January 2027 CNSA 2.0 acquisition gate means NSS-scope hardware procured after that date must have a CNSA 2.0 compliant firmware signing roadmap.

7.2 TPM 2.0 and PQC: Current State and Workarounds

The Trusted Platform Module (TPM) is the hardware security element that anchors platform integrity attestation, disk encryption key storage (BitLocker, LUKS), and remote attestation in most enterprise and federal computing environments. It is also, as of mid-2026, the most significant near-term constraint on PQC migration.

The TPM 2.0 PQC Problem

TPM 2.0 as specified in TCG TPM Library Specification Part 1 (Revision 01.59) does not include ML-DSA, ML-KEM, or any other NIST PQC algorithm. The TPM 2.0 algorithm registry supports RSA, ECC (P-256, P-384), AES, SHA families, and HMAC — all classical. Adding new algorithms to the TPM 2.0 specification requires a formal TCG specification revision, followed by updated firmware from every TPM manufacturer, followed by testing and certification, followed by deployment to end devices. This pipeline has a multi-year lead time.

The Trusted Computing Group (TCG) published its Post-Quantum Cryptography for TPM Devices guidance in 2024, outlining the path to TPM PQC support. The current roadmap envisions a TPM 3.0 specification or a formal PQC extension to TPM 2.0, with device availability anticipated in the 2027–2029 timeframe depending on the implementation approach.

TPM FunctionCurrent AlgorithmQuantum VulnerabilityPQC PathTimeline
Platform attestation (AIK)RSA-2048 or ECDSA P-256High — Shor's breaks bothTPM 3.0 / PQC extension2027–2029+
Key storage (sealing/binding)RSA or ECDSAHighTPM 3.0 / PQC extension2027–2029+
Random number generationInternal DRBG (NIST SP 800-90A compliant)None — already quantum-safeNo change requiredN/A
Symmetric operations (AES)AES-128 or AES-256Low (Grover) if AES-256AES-256 already safeImmediate (verify AES-256)
PCR extend/read (integrity)SHA-1 (deprecated) / SHA-256 / SHA-384Low if SHA-256+SHA-384 preferredFirmware config change

Practical Workarounds for TPM PQC Limitations

While TPM 2.0 PQC support matures, the following approaches provide meaningful risk reduction for the highest-priority TPM use cases:

Workaround 1: Software-layer PQC attestation above the TPM. Rather than relying on the TPM’s RSA/ECC attestation key for all remote attestation, implement a software attestation layer using ML-DSA above the TPM. The TPM continues to provide platform integrity measurement (PCR values); the ML-DSA layer provides the quantum-safe attestation signature over those measurements. This is a hybrid approach: the PCR values are trustworthy (TPM-measured), but the attestation signature is PQC.

Workaround 2: External PQC-capable HSM for attestation. For high-value attestation use cases (secure boot attestation, classified system integrity), supplement the TPM with an external HSM that supports ML-DSA attestation. The HSM holds the attestation identity key; it receives PCR values from the TPM and signs them with ML-DSA. This adds hardware cost but provides information-theoretically grounded platform attestation with a quantum-safe signature.

Workaround 3: Minimize TPM key exposure window. For TPM-sealed disk encryption keys (BitLocker, LUKS with TPM binding), assess the HNDL risk based on the data classification of the encrypted drive. Short-sensitivity-window data is lower risk. Long-sensitivity-window data (classified information, long-lived credentials) should be evaluated for migration to software-layer encryption with PQC-derived keys as an interim measure until TPM PQC support is available.

BitLocker and LUKS with TPM 2.0
BitLocker and LUKS using TPM 2.0 for key sealing are dependent on the TPM's RSA/ECC key material. This cannot be changed without TPM hardware replacement or the availability of TPM PQC firmware. For CNSA 2.0-scope systems with classified data, consult NSA guidance on interim disk encryption posture and monitor TCG TPM PQC specification progress. For FCEB civilian systems, NIST IR 8547 deprecation timelines (2030–2035) provide a planning window for TPM hardware refresh.

7.3 Firmware Signing Migration Checklist

Firmware signing is the CNSA 2.0 highest-urgency migration item — the “prefer CNSA 2.0 by 2025, exclusively use by 2030” requirement applies first to software and firmware signing. This section provides the complete checklist for migrating firmware signing from classical to PQC algorithms, including LMS/XMSS for CNSA 2.0 scope.

LMS vs. ML-DSA for Firmware Signing

CNSA 2.0 specifically requires LMS (Leighton-Micali Signature) or XMSS (eXtended Merkle Signature Scheme) per NIST SP 800-208 for software and firmware signing in NSS environments — not ML-DSA. This is a deliberate choice: LMS and XMSS are stateful hash-based signature schemes whose security rests entirely on hash function security, making them extremely conservative. For non-NSS FCEB environments, ML-DSA-65 is the standard recommendation for firmware signing.

AlgorithmStandardSecurity BasisScopeKey Management Complexity
LMS (HSS)NIST SP 800-208Hash functions onlyCNSA 2.0 required for NSS firmware/software signingHigh — stateful; one-time keys must be tracked
XMSS (XMSS-MT)NIST SP 800-208Hash functions onlyCNSA 2.0 alternative to LMSHigh — stateful; same key management requirements
ML-DSA-65FIPS 204Lattice (LWE)FCEB civilian firmware signingLow — stateless; no key tracking required
SLH-DSAFIPS 205Hash functions onlyFCEB civilian; conservative alternative to ML-DSALow — stateless

LMS/XMSS Key Management: The Critical Operational Requirement

⚠ Stateful Signature Key Reuse Will Compromise Security
LMS and XMSS are one-time signature schemes. Each key in the tree can sign exactly one message. If a one-time key is ever reused to sign a second message, the private key material is exposed and all signatures from that key are compromised.
Key state must be maintained persistently and exclusively by a single signing system. If two systems share an LMS key, or if a backup restore causes a key state rollback, key reuse WILL occur.
Store LMS/XMSS private keys exclusively in an HSM with persistent state storage. Never copy LMS/XMSS private keys between systems.

LMS key management requirements:

The Complete Firmware Signing Migration Checklist

Execute the following checklist in order. Do not advance to the next phase until the current phase is complete and verified.

Phase 1: Inventory and Assessment

Phase 2: Lab Validation

Phase 3: Dual-Signing Transition

Phase 4: PQC-Exclusive Signing

CNSA 2.0 Firmware Signing Timeline
Prefer CNSA 2.0 (LMS/XMSS): 2025 — this date has already passed. If you are in CNSA 2.0 scope and have not begun firmware signing migration, you are behind.
Exclusively use CNSA 2.0 (LMS/XMSS): December 31, 2030.
If you are behind on the 2025 preference date, begin Phase 1 and Phase 2 immediately and document your migration plan for compliance records.

7.4 Hardware Security Modules: PQC Readiness Assessment

The HSM is the trust anchor for every cryptographic operation in your migration program — root CA key generation and signing, firmware signing, disk encryption key management, and attestation. If your HSM does not support the PQC algorithms your migration requires, nothing else can proceed. HSM PQC readiness assessment is the gating prerequisite for the entire migration program.

The HSM PQC Readiness Matrix

HSM Vendor / ProductML-KEM SupportML-DSA SupportLMS / XMSSFIPS 140-3 PQCNotes
Thales Luna Network HSM 7Firmware 7.8+ (planned)Firmware 7.8+ (planned)RoadmapIn progressCheck Thales PQC roadmap; firmware update required
Entrust nShield ConnectnShield 13.x (roadmap)nShield 13.x (roadmap)nShield 13.xIn progressnShield 12.x supports SLH-DSA; full PQC in 13.x
AWS CloudHSMAvailable (limited)Roadmap 2026RoadmapIn progressCheck AWS CloudHSM PQC release notes; GovCloud availability may lag
Azure Dedicated HSM (Marvell LiquidSecurity)Vendor roadmapVendor roadmapVendor roadmapIn progressGoverned by Marvell firmware; check Azure HSM PQC roadmap
Utimaco Se-SeriesSe-Series v5+ (planned)Se-Series v5+ (planned)Se-Series v5+In progressUtimaco published PQC roadmap; verify model-specific support
Infineon SLx9xxx TPM 2.0Not supported (TPM 2.0 spec)Not supported (TPM 2.0 spec)Not supportedNot applicableTPM 2.0 spec does not include PQC; see Section 7.2
Verify Against Current Vendor Documentation
HSM PQC support is changing rapidly. The information in the table above reflects the state as of mid-2026 and will be outdated. Before making procurement or migration decisions, consult your HSM vendor's current PQC roadmap documentation and the NIST CMVP database for active FIPS 140-3 validation certificates. Always request the specific CMVP certificate number, not just a vendor assertion.

HSM PQC Assessment Questionnaire

Send the following questions to your HSM vendor before beginning any PQC migration that depends on HSM capabilities:

  1. Does your HSM currently support ML-KEM (FIPS 203) key generation and encapsulation? At which parameter levels (512/768/1024)?
  2. Does your HSM currently support ML-DSA (FIPS 204) key generation and signing? At which parameter levels (44/65/87)?
  3. Does your HSM support LMS and XMSS per NIST SP 800-208? Does it maintain LMS key state persistently through power cycles and firmware updates?
  4. What FIPS 140-3 validation certificate number covers PQC operations? Provide the specific CMVP certificate.
  5. Is a firmware update required to enable PQC support on existing hardware? If yes, what is the update procedure and what is the downtime requirement?
  6. Does the firmware update for PQC support require re-initialization of the HSM (which would destroy existing key material)? If yes, what is the key backup and restore procedure?
  7. What is the performance specification for ML-DSA-87 signing operations (signatures per second)?
  8. Does the HSM support the PKCS#11 interface for PQC operations? Which PKCS#11 mechanisms are supported?

PKCS#11 Interface for PQC Operations

Most enterprise applications interface with HSMs through the PKCS#11 standard API. PKCS#11 v3.0 added formal mechanism definitions for PQC operations. Verify that your HSM’s PKCS#11 implementation supports the following mechanisms:

PKCS#11 MechanismOperationRequired For
CKM_ML_KEM_KEY_PAIR_GENML-KEM key pair generationPQC key encapsulation in TLS, IKEv2, applications
CKM_ML_KEM_ENCAPSULATEML-KEM encapsulationEstablishing shared secrets
CKM_ML_KEM_DECAPSULATEML-KEM decapsulationRecovering shared secrets
CKM_ML_DSA_KEY_PAIR_GENML-DSA key pair generationPQC signing keys in CA, code signing, auth
CKM_ML_DSAML-DSA sign and verifyAll ML-DSA signing operations
CKM_LMS_KEY_PAIR_GENLMS key pair generationCNSA 2.0 firmware signing
CKM_LMS_SIGNLMS signingCNSA 2.0 firmware signing

Performance Sizing for PQC HSM Operations

PQC operations are more computationally intensive than their classical equivalents. Size your HSM capacity for peak PQC load before migration:

OperationClassical Performance (typical HSM)PQC Performance (typical HSM)Impact
RSA-2048 sign / ML-DSA-65 sign~2,000 ops/sec~800 ops/sec~2.5x slower; size for peak signing load
ECDSA P-256 sign / ML-DSA-87 sign~10,000 ops/sec~600 ops/sec~17x slower; may require additional HSM capacity
ECDH key gen / ML-KEM-1024 keygen~5,000 ops/sec~3,000 ops/sec~1.7x slower; generally manageable
LMS sign (h=20, w=16)N/A~400 ops/secAcceptable for low-volume firmware signing

For high-volume signing operations (TLS certificate issuance at scale, high-frequency code signing in CI/CD pipelines), ML-DSA HSM performance may require additional HSM hardware or load balancing across multiple HSM partitions. Benchmark your specific workload against your HSM vendor’s published ML-DSA performance figures before migration.

Chapter 7 Summary

Before moving to Chapter 8, you should be able to answer these questions:

The Hardware Refresh Opportunity
The firmware and HSM migrations in this chapter have one silver lining: they create a natural forcing function for hardware refresh. Older hardware that cannot be upgraded to support PQC Secure Boot or PQC-capable HSMs needs to be replaced. In most cases, hardware approaching end-of-support was already on a replacement schedule.
Align your PQC migration hardware requirements with your existing hardware refresh cycle wherever possible. Procuring new hardware with CNSA 2.0 PQC capability requirements included in the solicitation is far cheaper than retrofitting existing hardware. The January 2027 NSS acquisition gate makes this alignment mandatory for NSS-scope procurement.

What’s Next

Chapter 8 covers constrained and embedded device migration — IoT devices, PLCs, SCADA controllers, and single-board computers that cannot run standard TLS migration playbooks. These devices face the same quantum cryptographic threat but with severe constraints on RAM, compute, power, and physical access. Chapter 8 provides the architecture pattern and lab exercise for deploying PQC-quality security on hardware that costs less than a textbook.

References

[1] UEFI Forum. (2024). UEFI Specification Post-Quantum Cryptography Guidance. UEFI Forum Technical Working Group. [Recommendation for ML-DSA Secure Boot signature migration; EDK II implementation reference.]

[2] Trusted Computing Group. (2019). TPM Library Specification Part 1: Architecture (Revision 01.59). [Defines TPM 2.0 algorithm registry; does not include PQC algorithms.]

[3] Trusted Computing Group. (2024). Post-Quantum Cryptography for TPM Devices. TCG Technical Note. [TCG roadmap for TPM PQC support; TPM 3.0 and PQC extension planning.]

[4] NIST SP 800-208. (2020). Recommendation for Stateful Hash-Based Signature Schemes. National Institute of Standards and Technology. [LMS (HSS) and XMSS (XMSS-MT) specifications; CNSA 2.0 required algorithms for firmware signing.]

[5] NSA. (2022, updated December 2024). CNSA 2.0 Cybersecurity Advisory Ver. 2.1. [Software and firmware signing: prefer CNSA 2.0 by 2025; exclusively use by 2030.]

[6] PKCS#11 Technical Committee. (2020). PKCS #11 Cryptographic Token Interface Version 3.0. OASIS. [Mechanism definitions for PQC operations referenced in Section 7.4.]

[7] Thales Group. (2026). Luna HSM Post-Quantum Cryptography Roadmap. Available at: thalestgroup.com. [Vendor PQC HSM roadmap; verify current firmware version support.]

[8] Entrust. (2026). nShield Post-Quantum Cryptography Technical Brief. Available at: entrust.com/digital-security. [nShield PQC algorithm support and roadmap.]

[9] NIST. NIST CMVP. Cryptographic Module Validation Program. Available at: csrc.nist.gov/projects/cryptographic-module-validation-program. [Source for FIPS 140-3 validation certificates covering PQC operations.]

[10] EDK II Project. (2024). Post-Quantum Secure Boot Implementation. Tianocore/edk2 GitHub repository. [Open-source UEFI reference implementation with ML-DSA Secure Boot support.]