Hardware Roots of Trust: How a Computer Verifies What It Booted

Defined across NIST Special Publication 800-193 (Platform Firmware Resiliency Guidelines) and the Trusted Computing Group (TCG) TPM 2.0 Library Specification, a hardware root of trust anchors platform integrity in immutable silicon boot ROM and isolated cryptographic processors so that a machine can verify and cryptographically prove every layer of firmware it executes from power-on to operating system launch.
When an operating system kernel boots up and runs an endpoint security agent or an antivirus scanner, that defensive software has a blind spot: it trusts the hardware and firmware underneath it to tell the truth. If an attacker modifies the motherboard's Unified Extensible Firmware Interface (UEFI) flash chip, implants a bootkit in the bootloader, or compromises a network card's option ROM before the operating system ever loads into memory, the malicious firmware executes first at the highest privilege level (Ring 0 or System Management Mode). From below the operating system, a firmware implant can patch kernel memory on the fly, hide its own files, and report to the operating system that everything is clean. Solving this bootstrap paradox requires starting the chain of verification inside hardware that software cannot rewrite.
How the immutable silicon boot ROM anchors the chain of trust
A computer cannot verify its first piece of software using another piece of mutable software. When power is applied to a processor or a baseboard management controller, the very first instruction fetched by the reset vector must come from a Root of Trust for Measurement (RTM) and Root of Trust for Verification (RTV) etched permanently into silicon mask read-only memory (Boot ROM) inside the system-on-chip (SoC), alongside public-key hashes burned into one-time-programmable (OTP) silicon fuses during manufacturing.
Because mask ROM and blown silicon fuses cannot be altered by any firmware update or remote exploit, the processor trusts this tiny first-stage code unconditionally. Before the processor executes a single instruction from the external SPI flash chip soldered onto the motherboard, the silicon boot ROM reads the first mutable firmware stage into internal static RAM, computes its cryptographic hash (SHA-256 or SHA-384), verifies the vendor's digital signature against the public key hash fused into silicon, and only jumps to that firmware stage if the signature passes.
Each verified stage then repeats the exact same check on the next layer in the boot sequence: the first-stage bootloader verifies the main UEFI or U-Boot firmware, UEFI verifies the operating system's .efi bootloader against keys stored in the Secure Boot database, and the bootloader verifies the signed operating system kernel and early boot drivers. This sequential handoff is called a chain of trust. In advanced multi-die processors, this same hardware verification model now extends across individual dies using UCIe 4.0 package-level chiplet security and lifecycle management and deterministic RISC-V automotive safety microcontrollers.
The critical difference between Secure Boot and Measured Boot
Security engineers often conflate Secure Boot with Measured Boot, yet the two mechanisms answer different questions and use different hardware primitives, as detailed in Microsoft's Hardware Root of Trust architecture documentation:
- Secure Boot is a local policy enforcement gate. Each stage checks whether the next binary is signed by an authorized key and does not appear on a local revocation blocklist (
dbx). If the signature fails, Secure Boot halts or enters recovery. However, once the machine finishes booting, Secure Boot leaves behind no cryptographic proof for an external server or disk-encryption module of which specific firmware version, configuration setting, or kernel command line was actually loaded. - Measured Boot is an auditable cryptographic flight recorder backed by a Trusted Platform Module (
TPM) or discrete hardware security processor (Pluton,Titan, orCaliptra). As each stage of the boot chain loads the next binary or configuration table, it computes a cryptographic hash of that component and sends the hash to theTPMbefore executing the code.
Why TPM Platform Configuration Registers use one-way hash extension
If a TPM simply let software overwrite a register with a hash value, a compromised operating system kernel that gained control later in the boot sequence could easily send a command to the TPM overwriting the bad boot record with the hash of a clean bootloader. To make forging boot history mathematically impossible, a TPM stores measurements inside special hardware registers called Platform Configuration Registers (PCRs, typically numbered PCR 0 through PCR 23).
When the system powers on or resets, the TPM initializes the boot PCRs (PCR 0 through PCR 7) to all zeros. No instruction exists in the TCG TPM 2.0 specification to write an arbitrary value directly into a PCR. Instead, the TPM only exposes a one-way operation called PCR_Extend:
The TPM takes the current 32-byte value sitting inside the register, concatenates the new 32-byte measurement onto the end of it, runs the combined 64 bytes through a one-way SHA-256 hash function inside the TPM chip, and stores the result back in the register.
Because SHA-256 is preimage-resistant, no attacker who compromises the system at step five of the boot sequence can compute a crafted input that will roll PCR 0 or PCR 4 backward to match the value of a clean boot chain. Every single component loaded, along with the exact order in which those components loaded, permanently shapes the final PCR digest.
Key sealing and remote attestation in zero-trust infrastructure
Once those PCR registers hold an unforgeable summary of the boot sequence, the system can use them in two powerful ways. First is local key sealing (used by full-disk encryption systems such as BitLocker and LUKS2 with TPM2). The disk encryption master key is sealed inside the TPM under a policy stating that the TPM will only unseal and release the decryption key if PCR 0, PCR 2, PCR 4, and PCR 7 match the exact values recorded when the machine was known to be clean. If someone modifies the bootloader, changes the UEFI boot order to boot from a live USB stick, or disables Secure Boot, the PCR hashes change, the TPM refuses to unseal the disk key, and the encrypted drive remains unreadable.
Second is remote attestation. Before a cloud control plane or corporate zero-trust gateway allows a server or laptop onto a production network, the remote verifier sends a random cryptographic nonce to the machine. The TPM signs the current PCR values together with that fresh nonce using an Attestation Identity Key (AIK) derived from a hardware Endorsement Key (EK) burned into the TPM at the factory. By checking that signed quote and replaying the accompanying event log against a golden reference database, the verifier knows with cryptographic certainty what firmware and kernel the remote machine booted before granting it credentials or workloads.



