Notes
The physical threat
Start with the threat. With physical access, an attacker ignores your permissions. They boot from a USB stick and read your disk directly, because file permissions are enforced by the OS they just skipped. They pull the drive and mount it elsewhere. Or they tamper with the bootloader to capture your password next time, the evil-maid attack. The answers: encrypt the disk so the data is unreadable, and verify the boot chain so tampering is caught.
- boot from USB, read the disk directly — your file perms do not apply
- pull the drive, mount it elsewhere
- tamper with the bootloader to plant a backdoor (evil maid)
- so: encrypt the disk, and verify the boot chain
Secure Boot
Secure Boot, a feature of modern UEFI firmware, checks that each stage of startup is signed before it runs. The firmware only launches a signed bootloader, the bootloader only launches a signed kernel, and the signatures chain back to keys held in the firmware. If an attacker swaps in a tampered bootloader or kernel, the signature does not match and the machine refuses to boot it. That defeats bootkits, malware that loads before the operating system, and many evil-maid tampering attacks.
- firmware only runs a signed bootloader
- the bootloader only runs a signed kernel
- signatures chain to keys in the firmware
- result: unsigned or tampered boot code is refused
- defeats bootkits and many evil-maid attacks
The TPM
The Trusted Platform Module, or TPM, is a small secure chip separate from the main processor. It does two security jobs. It stores cryptographic keys in hardware, so they never sit in normal memory or on disk where malware could read them. And it measures each stage of boot into special registers, building a fingerprint of exactly how the machine started. It can then be told to release a secret only if that fingerprint matches a known-good boot. That is what ties encryption to a trusted startup.
- a secure chip, separate from the CPU
- stores keys so they never touch normal memory or disk
- measures each boot stage into registers (PCRs)
- can release a secret only if the measurements match a known-good boot
- basis for BitLocker + Linux measured boot
Full-disk encryption
Full-disk encryption is the answer to a stolen drive. BitLocker on Windows, LUKS with dm-crypt on Linux, encrypt the entire volume at rest, so without the key the disk is just random bytes. The important question is where the key lives. It can be protected by the TPM, by a PIN or passphrase, or by a recovery key kept safe elsewhere. The strongest common setup is the TPM plus a PIN, so the disk unlocks only on the right machine and only when the person also knows the PIN.
- Windows: BitLocker
- Linux: LUKS/dm-crypt
- the whole volume is encrypted at rest
- without the key, a stolen drive is random bytes
- key protected by the TPM, a PIN/passphrase, or a recovery key — ideally TPM plus a PIN
How it fits together
Here is how the pieces combine. Secure Boot starts a signed chain. The TPM measures each stage into its registers. If those measurements match a trusted boot, the TPM releases the disk-encryption key and the system unlocks normally. But if an attacker tampered with the bootloader or kernel, the measurements differ, the TPM withholds the key, and the disk stays locked. So the data is protected not just by encryption, but by encryption that only unlocks on a machine that booted the way it should.
- 1 firmware + Secure Boot start a signed chain
- 2 TPM measures each stage
- 3 if the measurements match a trusted boot, the TPM releases the disk key
- 4 tampered boot → measurements differ → key withheld → disk stays locked
The limits
Be clear about the limits. These controls protect data at rest and the integrity of boot. They do nothing once the machine is unlocked and running: then the data is readable, and OS controls take over. So a thief who steals an awake, logged-in laptop is not stopped by disk encryption. There are also niche hardware attacks, like cold-boot and DMA, largely mitigated on modern devices. And the recovery key is a master key: store it safely but keep it secret.
- they protect data at rest and the boot chain
- once unlocked and running, the data is readable; OS security takes over an awake, logged-in laptop is not protected by encryption
- cold-boot/DMA attacks exist (mitigated by modern HW)
- keep the recovery key secret
In practice
In practice, turn these on everywhere. Enforce full-disk encryption on every laptop through device management, so it is not optional (Part twelve). Encrypt server disks too, especially anything outside your own data centre. Keep Secure Boot on and the TPM in use. Add a lock screen and a short auto-lock, which closes the awake-laptop gap for a device left unattended. And escrow recovery keys in a central, access-controlled system, so you can recover a device without leaving keys around.
- laptops: BitLocker / LUKS on, enforced by device management
- servers: encrypt disks, especially off-prem
- Secure Boot enabled
- TPM present and used
- lock screen + short auto-lock (covers the awake-laptop gap)
- escrow recovery keys centrally, access-controlled
Common mistakes
Mistakes. Shipping laptops with no disk encryption, so a loss is a breach. Disabling Secure Boot to make some driver work and never re-enabling it. Having a TPM but not using it, so the disk key rests on a weak passphrase. Storing recovery keys in a shared spreadsheet, turning the master keys into the easiest target. No auto-lock, so every unattended awake laptop is open. And putting servers in third-party or edge locations with unencrypted disks, where physical access is far more likely.
- laptops with no disk encryption
- Secure Boot disabled "to make something work"
- TPM unused, key only a weak passphrase
- recovery keys in a spreadsheet
- no auto-lock, so awake = open
- servers off-site unencrypted
Say it like this
In the interview: I protect a lost or stolen device with full-disk encryption, BitLocker or LUKS, with the key sealed to the TPM plus a PIN so the disk unlocks only on the right machine and only on an untampered boot. Secure Boot verifies the boot chain to defeat bootkits and evil-maid tampering. I enforce encryption through device management so it is never optional, add a short auto-lock to cover an awake laptop left unattended, and escrow recovery keys in a central access-controlled store.
- "Full-disk encryption, BitLocker
- or LUKS, with the key sealed to the TPM plus a PIN, so the disk
- unlocks only on an untampered
- boot. Secure Boot verifies the boot chain against evil-maid
- attacks. I enforce it via device
- management, add short auto-lock, and escrow recovery keys."