Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Security · Think Like an Attacker · about 15 min to read

Play it as a journeyTutor comes with a plan

Trust from the silicon up: TPM, secure boot and side channels

The Security Mindset
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.

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 plansAlready 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.

Related paper

Review Security