Measured boot

On this page 7

Measured boot is a startup security mechanism in which each stage of the boot chain computes a cryptographic hash of the next component and records it in the Trusted Platform Module (TPM) before handing over control. In the Boot & firmware layer of operating systems, it does not stop anything from running; instead, it produces a tamper-evident record of what actually ran, which local software or a remote verifier can examine afterward.

The mechanism complements Secure Boot. Where Secure Boot enforces a policy by refusing unsigned code, measured boot reports the facts, which makes it the foundation for remote attestation, disk encryption key release and health checks in managed fleets.

How measured boot builds a chain of measurements

Measured boot works by having each component measure before it executes the next one. The process starts at the Core Root of Trust for Measurement (CRTM), a small piece of immutable or tightly protected firmware code that is trusted by definition because nothing earlier exists to measure it.

Each measurement is a hash, typically SHA-256 on TPM 2.0 devices, and it is not stored directly. The TPM extends a Platform Configuration Register (PCR) with it: the new PCR value equals the hash of the old value concatenated with the new measurement. Because a PCR can only be extended and never written directly until the next platform reset, an attacker cannot erase an earlier measurement or reorder events without changing the final value.

In parallel, firmware and the bootloader write a human-readable TCG event log that lists every measured item with its digest. A verifier replays the event log, recomputes the expected PCR values and compares them with the values reported by the TPM. If they match, the log is trustworthy; if not, the log or the platform has been altered.

The following table shows the typical order of measured stages on a UEFI system.

StageWhat it measuresTypical PCR
CRTM and early firmwareMain UEFI firmware codePCR 0
Firmware configurationPlatform settings and dataPCR 1
Option ROMs and driversAdd-in card firmwarePCR 2 and 3
Boot managerBootloader binary and boot attemptsPCR 4 and 5
Secure Boot policySecure Boot state, db and dbx keysPCR 7
Operating system loaderKernel, boot configuration, early driversPCR 8 to 14 (OS-defined)
Typical measurement sequence on a UEFI platform

Key components and parameters

Measured boot depends on a small set of hardware and firmware building blocks that must all be present and correctly configured. A missing TPM or a firmware that skips measurements leaves gaps in the chain that no later stage can repair.

ComponentRolePractical note
TPM 2.0Holds PCRs and signs quotesDiscrete chip or firmware TPM
PCR bankStores extended hash valuesUsually 24 registers per bank
Hash algorithmProduces measurementsSHA-256 replaces legacy SHA-1
TCG event logLists each measured eventMust be replayed to be trusted
Attestation keySigns PCR quotes for verifiersBound to the TPM endorsement key
Building blocks of measured boot

The TPM quote is the critical output for remote use. It is a signed structure containing selected PCR values and a verifier-supplied nonce, which prevents an attacker from replaying an old, healthy report from the same machine.

Measured boot compared with Secure Boot and trusted boot

Measured boot, Secure Boot and trusted boot are complementary, not interchangeable. They are often confused because all three concern code integrity at startup, yet they answer different questions and fail in different ways.

MechanismCore questionAction on unknown codeMain dependency
Secure BootIs this code signed by a trusted key?Blocks executionUEFI key databases
Measured bootWhat exactly ran?Records it and continuesTPM and event log
Trusted bootIs the OS kernel and its drivers intact?Stops or repairs the OS loadOS loader signatures
How the three startup protections differ

The practical difference is prevention versus evidence. Secure Boot can be defeated by a signed but vulnerable bootloader, while measured boot would still record the unexpected binary, allowing a verifier to detect it. Conversely, measured boot alone cannot stop a rootkit from loading; it only makes the compromise visible to whoever checks.

Where measured boot is used in practice

Measured boot delivers value only when something consumes the measurements. Several common features in modern operating systems do exactly that.

  • Disk encryption key sealing: BitLocker and similar tools seal the volume key to PCR values, so the TPM releases the key only when the boot chain matches the expected state.
  • Remote attestation: an attestation service evaluates TPM quotes and reports device health to management or conditional access systems.
  • Early launch anti-malware: Windows can measure and log boot-start drivers so that security software can review them after startup.
  • Linux integrity frameworks: systemd-boot, GRUB with TPM support and the Integrity Measurement Architecture (IMA) extend measurements into the running system.

The decision table below summarizes when to rely on measured boot and what to pair it with.

SituationRecommended approachReason
Laptops with full disk encryptionSeal keys to PCR 7 and PCR 11Survives routine updates more reliably
Managed corporate fleetAdd remote attestationCentral detection of tampered devices
High-security serversCombine with Secure Boot and IMACovers both startup and runtime
Personal desktop without TPMRely on Secure Boot onlyNo hardware to hold measurements
Choosing how to use measured boot

Limitations and common mistakes

The most frequent operational problem is PCR brittleness. Any legitimate change, such as a firmware update, a new boot order or a changed option ROM, alters PCR values, so sealed secrets become unavailable and users face a recovery key prompt.

SymptomLikely causeFix
Recovery key requested after updateFirmware changed PCR 0 valuesSuspend sealing before updating
Attestation fails on healthy deviceOutdated reference valuesRefresh the verifier baseline
Event log does not match PCRsLog truncated or tamperedTreat the device as untrusted
No measurements recordedTPM disabled in firmwareEnable and provision the TPM
Typical problems, causes and fixes

Measured boot also has structural limits. It trusts the CRTM unconditionally, it does not observe what happens after the operating system takes over unless runtime measurement is added, and physical attacks on the bus between a discrete TPM and the CPU have been demonstrated. A measurement is only as useful as its verification: logs that nobody checks provide no protection.

Explained without jargon

Measured boot is like a sealed logbook that a computer fills in while it starts. Each piece of startup software writes a unique fingerprint of the next piece into the book before letting it run. The book is kept inside a small security chip, and its pages cannot be torn out or rewritten.

The logbook does not stop anything bad from starting. Its job is honesty. Later, the computer or a company server can read the book and ask a simple question: did this machine start the way it should have? If the answer is no, the computer can refuse to unlock its files or be kept off the network.

A typical use case

An organization manages 2,000 laptops with full disk encryption, and the volume keys are sealed to the expected PCR values. One morning a laptop that was left in a hotel asks its owner for the 48-digit recovery key. The help desk checks the attestation service and sees that PCR 4 now contains a bootloader hash that does not match any approved version.

Because Secure Boot was briefly disabled in the firmware settings, a modified bootloader had been installed without blocking. Measured boot recorded the foreign binary, the TPM refused to release the disk key and the attestation report flagged the device. The security team reimaged the laptop and reset its firmware, and the encrypted data was never exposed.