Module 01 · Security · Think Like an Attacker · about 15 min to read
Continue where you left off ×
Trust from the silicon up: TPM, secure boot and side channels
The Security Mindset · Open board
The habit of asking what could go wrong, and who could make it go wrong. This lesson asks it about the machine itself: the chip, the first program it runs, and the speed tricks inside it.
Before you start. When memory betrays you: overflows, ROP and mitigations showed attackers taking over a running program, and ended on the idea that each defence was answered by the next attack. Cryptography Foundations gave you the hash: any input becomes a fixed-size fingerprint, and one changed letter changes the whole fingerprint. The CPU (fetch-decode-execute, the ISA, assembly) showed a processor guessing which way a branch will go, and paying about 18 cycles when it guesses wrong. The Memory Hierarchy (cache, locality, the memory wall) showed that data kept in the small fast cache comes back much faster than data fetched from main memory. Everything below is built from those four.
The idea in 30 seconds
A TPM is a small chip whose registers can only be extended, never set, so they record what happened in order.
Measured boot writes each boot stage into a register, so a changed stage gives a different final value.
Sealing locks a secret to a register value, so an altered machine cannot get it back.
Secure boot refuses to run a stage that is not on the trusted list, but a list can be fooled with an old signed program, as BlackLotus did in 2023.
A side channel leaks a secret through time, power or cache instead of through the answer.
Spectre uses the processor’s wrong guesses, which leave traces in the cache after they are undone.
Read the story
Lesson 16 of 39 in Security
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson 1 June 2017 to 3 January 2018: a flaw in the chip, kept quiet for seven months The TPM: a small chip with a logbook that only grows Measured boot: every stage signs the book before the next one runs Secure boot: the guard who turns away what is not on the list 1 March 2023: the guard fooled with a pass that was meant to be cancelled Side channels: the secret that leaks through something else Speculation: the processor guesses ahead and forgets to tidy up A PCR model Remote attestation and what trust means Constant-time and the timing leak Spectre and Meltdown, and what was done Where this meets earlier lessons Terms it explains: TPM, PCRs, extend, measured boot, sealing, Secure boot, side channel, speculative execution, Spectre, Common mistakes, event log, remote attestation, assume breach, attack surface, authenticity, CIA triad, complete mediation, defense in depth, fail secure, least privilege, no security through obscurity (Kerckhoffs), non-repudiation, security mindset, stride, threat model, trust boundary.
Review Security
Mark as read Saved in this browser, and to your account when you sign in.