Secure Boot Chain Animation
Trace how each trusted boot stage verifies the next before an IoT device runs code
Each boot stage earns the right to run.
Start from an immutable root key, verify each mutable image before control transfers, and see where tampering, rollback, revoked keys, and production-policy failures stop the boot.
Secure boot chain controls and verification outputs
Secure Boot Chain Lab
Step through the verification boundary. The diagram, manifest, policy checks, and boot log update together so the chain-of-trust decision stays explicit.
ROM anchors the chain of trust
The first code is immutable. It holds or derives a trusted public-key hash and only transfers control to a signed first-stage bootloader.
Image Manifest
The manifest binds the image hash, signer, version, and policy fields to the signature.
Verification Trace
Secure boot is a sequence of cryptographic and policy gates, not a single checksum.
Boot Log
ROM verified BL1, BL1 verified BL2, BL2 detected a kernel hash mismatch and refused to transfer control.
Playback
Use Play for the complete boot or Step for slow inspection of each trust boundary.
Platform
Different devices name the stages differently, but the trust-chain pattern is the same.
Injected Condition
Try the common ways a boot chain breaks.
Trust Anchor
The device verifies with public keys or key hashes. Private signing keys stay off-device.
Fail-Secure Response
A recovery path is safe only if it is independently verified before execution.
What To Watch
- Trust flows forward: each verified stage checks the next image before jumping to it.
- Hash plus signature: a modified image produces a different digest, so the signature check fails.
- Rollback protection: an old image can still have a valid signature, so a monotonic version check is needed.
Technical Accuracy Notes
- The public key, certificate, or key hash is used for verification; the private signing key is not stored on the device.
- Debug lock, flash encryption, runtime memory safety, and attestation are separate controls that complement secure boot.
- Recovery mode must verify its own image and update package, or it becomes a bypass around the secure boot chain.
Practice Prompts
- Select Clean boot and explain why every stage can transfer control.
- Select Old signed image. Identify why signature validity alone is not enough.
- Select Signer revoked. Decide whether this is a hash failure, key trust failure, or runtime failure.
Common Misreads
"Secure boot encrypts firmware" is not necessarily true. Secure boot verifies authenticity and integrity. Confidentiality usually comes from a separate flash-encryption feature.
"A valid signature means the newest image" is also incomplete. A stolen old image may be validly signed, so production devices commonly compare a signed security version against monotonic storage.