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.
| Stage | What it measures | Typical PCR |
|---|---|---|
| CRTM and early firmware | Main UEFI firmware code | PCR 0 |
| Firmware configuration | Platform settings and data | PCR 1 |
| Option ROMs and drivers | Add-in card firmware | PCR 2 and 3 |
| Boot manager | Bootloader binary and boot attempts | PCR 4 and 5 |
| Secure Boot policy | Secure Boot state, db and dbx keys | PCR 7 |
| Operating system loader | Kernel, boot configuration, early drivers | PCR 8 to 14 (OS-defined) |
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.
| Component | Role | Practical note |
|---|---|---|
| TPM 2.0 | Holds PCRs and signs quotes | Discrete chip or firmware TPM |
| PCR bank | Stores extended hash values | Usually 24 registers per bank |
| Hash algorithm | Produces measurements | SHA-256 replaces legacy SHA-1 |
| TCG event log | Lists each measured event | Must be replayed to be trusted |
| Attestation key | Signs PCR quotes for verifiers | Bound to the TPM endorsement key |
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.
| Mechanism | Core question | Action on unknown code | Main dependency |
|---|---|---|---|
| Secure Boot | Is this code signed by a trusted key? | Blocks execution | UEFI key databases |
| Measured boot | What exactly ran? | Records it and continues | TPM and event log |
| Trusted boot | Is the OS kernel and its drivers intact? | Stops or repairs the OS load | OS loader signatures |
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.
| Situation | Recommended approach | Reason |
|---|---|---|
| Laptops with full disk encryption | Seal keys to PCR 7 and PCR 11 | Survives routine updates more reliably |
| Managed corporate fleet | Add remote attestation | Central detection of tampered devices |
| High-security servers | Combine with Secure Boot and IMA | Covers both startup and runtime |
| Personal desktop without TPM | Rely on Secure Boot only | No hardware to hold measurements |
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.
| Symptom | Likely cause | Fix |
|---|---|---|
| Recovery key requested after update | Firmware changed PCR 0 values | Suspend sealing before updating |
| Attestation fails on healthy device | Outdated reference values | Refresh the verifier baseline |
| Event log does not match PCRs | Log truncated or tampered | Treat the device as untrusted |
| No measurements recorded | TPM disabled in firmware | Enable and provision the TPM |
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.