Verified boot

On this page 7

Verified boot is a startup integrity mechanism in which every stage of the boot chain checks the cryptographic signature or hash of the next stage before handing over control, so that a device only runs code approved by its vendor or owner. In operating systems, it belongs to the boot & firmware layer and protects the path from the first instruction in read-only memory to the running kernel and, on many platforms, the system partition itself.

The concept is used under several product names, including Android Verified Boot, ChromeOS verified boot, the Apple secure boot chain and UEFI Secure Boot on PCs. All of them share one goal: detect tampering before it executes and respond by refusing to boot, warning the user or switching to a recovery image.

How verified boot builds a chain of trust

Verified boot works by forming a chain of trust that begins at an immutable root of trust, usually code in mask ROM or a fused boot block that cannot be rewritten after manufacturing. That first code holds or references a public key, often anchored by a hash burned into one-time programmable fuses, and uses it to verify the signature of the next stage.

Each verified stage then repeats the process for the following one. The bootloader checks the kernel and its initial ramdisk, and on systems such as Android and ChromeOS the kernel checks the read-only system partition block by block through dm-verity, a device-mapper target that compares every block read against a Merkle hash tree whose root hash is itself signed. Integrity therefore extends from silicon to the operating system files.

The following table lists the typical stages and what each one verifies.

StageWhere it livesWhat it verifies
Boot ROMMask ROM in the SoC or chipsetSignature of the first mutable bootloader
First-stage bootloaderProtected flash regionSecond-stage bootloader or firmware image
Main bootloaderFlash or boot partitionKernel, device tree and initial ramdisk
KernelBoot partitionSystem partition through dm-verity
Operating systemSystem partitionSigned apps, drivers or extensions
Typical stages of a verified boot chain

Key components and parameters

A working implementation depends on a small set of components whose design decides how strong the protection really is. The most important are the key hierarchy, the signature algorithm, the rollback protection scheme and the failure policy that applies when a check does not pass.

ComponentTypical choiceWhat it affects
Signature schemeRSA-2048 to RSA-4096 or ECDSA P-256Resistance to forged images
Hash functionSHA-256 or SHA-512Collision resistance of measured content
Root key storageFused key hash or ROM-embedded keyWhether an attacker can replace the anchor
Rollback indexMonotonic counter in fuses or secure storageBlocking of older vulnerable images
Device stateLocked or unlocked bootloaderWhether custom keys or images are accepted
Components that determine verified boot strength

Rollback protection deserves particular attention. A validly signed but outdated image with a known vulnerability passes a signature check, so the system stores a minimum accepted version and rejects any image whose rollback index is lower. Without it, an attacker can simply downgrade to a flawed release that the vendor once signed.

Verified boot is often confused with measured boot and Secure Boot, yet the three answer different questions. Verified boot enforces a decision at startup, while measured boot only records what ran so that a later party can judge it.

MechanismCore actionResponse to altered codeTypical platform
Verified bootVerifies each stage before executionHalts, warns or enters recoveryAndroid, ChromeOS, Apple devices
UEFI Secure BootChecks signatures of UEFI executablesRefuses to load the unsigned binaryPCs and servers with UEFI
Measured bootHashes each stage into TPM registersContinues booting, evidence is loggedWindows, Linux with a TPM
Remote attestationReports measurements to a verifierServer denies access or servicesEnterprise and cloud fleets
Verified boot versus neighboring boot protections

In practice, the mechanisms are complementary rather than competing. A hardened laptop may use Secure Boot to enforce signed loaders, measured boot to record the configuration in TPM platform configuration registers, and attestation to prove that state to a management server. Secure Boot on PCs is effectively one implementation of the verified boot principle limited to the firmware-to-loader portion of the chain.

Boot states and recovery behavior

Most implementations expose a visible boot state so that the user knows how much the current software can be trusted. Android Verified Boot, for example, uses color-coded states shown during startup.

StateMeaningUsual behavior
GreenLocked device, images signed with the OEM keyBoots normally without a warning
YellowLocked device, user-installed custom root keyBoots after showing the key fingerprint
OrangeUnlocked bootloader, no integrity enforcementBoots with a warning, user data was wiped on unlock
RedVerification failed or image is corruptRefuses to boot or offers recovery
Example boot states in Android Verified Boot

Recovery design matters as much as detection. Robust systems keep A/B partition slots so that a failed update or a failed check can fall back to the previous known-good slot, and they protect a separate read-only recovery image that is itself verified. Changing the lock state normally erases user data, which prevents an attacker with physical access from unlocking the bootloader to read private files.

Limitations and common misconceptions

Verified boot guarantees integrity at load time, not security for the entire runtime. Once the verified kernel is running, a runtime exploit can still compromise the system until the next reboot, which is why vendors pair verified boot with memory protections and frequent updates.

  • Signed does not mean safe: a vendor-signed bootloader with a flaw can be abused, as several bootkits have shown by exploiting vulnerable but trusted loaders.
  • Key compromise breaks the chain: if a signing key leaks, attackers can produce images that pass every check until the key is revoked through a rollback or revocation list.
  • User data is usually not covered: dm-verity protects read-only partitions, while writable data relies on separate encryption and integrity measures.
  • Owner control varies: some platforms allow custom keys, others lock devices to the vendor, which raises right-to-repair and longevity concerns.

A frequent operational mistake is disabling enforcement for convenience, for example leaving a bootloader unlocked on a production device. Doing so removes the protection entirely while the device still appears to function normally.

The idea in brief

Verified boot is like a relay race where each runner checks the identity badge of the next runner before passing the baton. The first runner is built into the chip and cannot be swapped out. If anyone in the line shows a fake or altered badge, the race stops.

For a computer or phone, this means only approved software gets to start. If malware has changed part of the startup process, the device notices before that code runs and either refuses to start or switches to a safe recovery mode. The key takeaway is that it protects the moment of starting up, not everything that happens afterward.

A practical scenario

A logistics company issues 2,000 rugged Android handhelds to warehouse staff. The devices ship with locked bootloaders and the green boot state, and the mobile device management console rejects any handheld that reports an unlocked or failed state through attestation.

One technician installs a modified system image on a test unit to add a debugging tool. On the next start, the dm-verity check detects altered blocks in the system partition and the device shows the red state, then falls back to the previous A/B slot. Because the rollback index already reflects the latest security patch, an attempt to flash an older vulnerable build is also rejected.

The result is that no tampered handheld ever reaches the warehouse network. The IT team reflashes the unit with the signed production image in about ten minutes, and the incident is recorded without any data exposure.