Trust before login

Computer theft, USB boot, and automatic unlocking: what disk encryption protects on desktops and laptops, and which access paths remain.

December 05, 2026 · About 8 minutes to read

Piranesi’s imaginary architecture with overlapping staircases, arches, and walkways, crossed by a drawbridge.

The Drawbridge

Giovanni Battista Piranesi, from Carceri d’invenzione (Imaginary Prisons), ca. 1749–50. The Metropolitan Museum of Art, Harris Brisbane Dick Fund, 1937, 37.45.3(23). Public domain.

A stolen computer may keep asking for a login password without preventing the person who took it from reading the files on its disk. If the data isn't encrypted, another operating system can access it without going through the login screen we use every day.

This distinction matters both for a laptop we carry around and for a desktop that stays at home or in the office. The user's password controls access through the installed operating system, but someone with physical possession of the computer can try booting it another way or removing the disk and connecting it to another machine.

All the disks in my computers are encrypted with LUKS2. On my desktop, I've also configured automatic unlocking so I don't have to enter a passphrase every time I turn it on. These choices address different needs, and to understand the protection they provide together, we need to start with what someone who gets hold of the computer can do.

An unencrypted disk and a USB drive

Imagine a laptop is stolen while it's turned off. The person who took it doesn't know the user's password, but they can try booting an operating system from a USB drive. If it boots successfully, that system can read the internal disk and copy any data that doesn't have its own cryptographic protection.

File permissions don't solve this problem because they're enforced by the operating system managing the files. Someone who boots another system under their own control doesn't have to respect the original installation's access rules. Documents, photos, work archives, and other files may therefore be accessible without knowing the password the owner uses to log in.

Restricting USB boot makes this less straightforward, but it doesn't change how the data is stored on disk. If the drive can be removed and connected to another computer, the same access is possible there. Removing a disk from a desktop may be even easier than removing one from a laptop.

The missing protection concerns the data itself: we need to prevent access to the storage device alone from being enough to read its contents.

What encryption changes

Encrypting a volume means storing data in a form that requires a key to read. Another computer can still detect the drive and copy its encrypted contents, but without the key it can't recover the original files.

The passphrase we enter to unlock a LUKS volume provides access to the key needed to read it. If the volume contains the operating system, it must be unlocked during startup so the computer can continue to the login screen. The two prompts serve different purposes: the first enables access to the volume, while the second authenticates the user who wants to use the system.

Unlocking the disk doesn't mean rewriting the entire drive in plaintext. Data stays encrypted on the storage device, and the system decrypts it when reading and encrypts it when writing. For the user and authorized programs, files become available as they would on an ordinary disk.

This also explains the limits of the protection. Encryption can stop someone who steals a locked disk from reading its data, but it doesn't stop a program that already has access to the files from copying them. If someone takes the computer while our session is open, the documents accessible from that session remain readable.

Letting the computer unlock the disk

Entering a passphrase is an additional step before the login we use to access our account. On a desktop or a laptop, we might prefer to skip that step, but doing so requires giving the machine a way to access the key without asking us for a secret each time.

Keeping a freely readable key on the same disk wouldn't provide useful protection against theft: whoever takes the drive would also find what they need to unlock it. One way to enable automatic unlocking instead is to use the TPM, a security component that can be integrated into modern processors or implemented as a separate chip on the motherboard.

The TPM can protect the key and bind access to conditions measured during boot. The computer can then unlock the volume without our passphrase if the expected conditions are met. Moving the disk to another machine removes access to the TPM where unlocking was configured, so that mechanism is no longer available.

The theft of the whole computer is different because it includes the TPM. If the person who stole the machine turns it on normally and the boot conditions are met, the disk can unlock automatically. The computer reaches the login screen, and the person who took it still has to get past user authentication to access files through that system.

Automatic unlocking therefore retains protection against reading a removed disk, but entrusts part of the security to the operating system that receives the key. Reaching the login screen doesn't make the files freely accessible; it does mean the volume is already unlocked and protection now also depends on the security of that system.

What happens when booting from USB

With an encrypted disk, booting an operating system from USB isn't enough to read its contents: that system needs the key too. If unlocking requires a passphrase, whoever uses the USB drive must know it or have another valid credential.

With automatic unlocking, we instead need to check whether the system booted from USB can obtain the key from the TPM. Tying unlocking only to the presence of the hardware isn't enough; the conditions must prevent an environment other than the authorized one from receiving the key.

Secure Boot contributes to this check by verifying the signatures of boot components against the authorizations stored in the firmware. It must also be consistent with the TPM's unlock conditions: if Secure Boot can be disabled while the key remains available, another system could boot without those checks. The set of accepted signatures matters too, because a signed image isn't necessarily the system we want to trust with our data.

On my desktop, I've enabled Secure Boot and enrolled keys I generated myself. I've configured automatic unlocking to require Secure Boot to be enabled and the authorizations stored in the firmware to match the expected ones. In this configuration, disabling Secure Boot prevents the volume from unlocking automatically. This choice controls which boot processes can obtain the key without requiring a passphrase every time.

Desktops and laptops, powered off or with an open session

A laptop can be left on a train or taken from a bag, while a desktop can be stolen during a break-in at home or in the office. The likelihood of losing control of the machine differs, but the problem with an unencrypted disk is the same: someone with physical access can try to read it without using the installed system.

On either type of computer, we can require a passphrase at startup or use the TPM with a PIN so the volume cannot unlock without user input. The prompt appears before login and adds a condition that simply possessing the computer doesn't satisfy. Fully automatic unlocking avoids this prompt, accepting that an authorized boot can succeed even without the owner present.

The state we leave the computer in matters too. Locking the screen prevents access to the session through the normal interface, but isn't the same as locking the encrypted volume. In sleep modes that keep the session in memory, the keys already in use may also remain available: closing the lid therefore isn't equivalent to shutting the machine down with the disk still to be unlocked.

We can't assess the protection of a laptop lost while powered off in the same way as that of a computer taken with a session already open. Our choice of unlocking method needs to account for these habits as well as convenience at startup.

Being able to recover our own data

The conditions that prevent another system from obtaining the key can also take effect after a legitimate change. A firmware update, a settings reset, or a motherboard replacement can make automatic unlocking stop working.

That's why I checked that each of my LUKS volumes had a passphrase independent of the TPM and different from the login password. It must be retrievable even when that computer won't boot, so its only copy can't be on the disk it's meant to unlock. Backups are still necessary too, because encryption doesn't protect against drive failures or reconstruct data if we lose every credential needed to read it.

The login password, disk encryption, and boot checks protect different stages of access to data. To assess our computer, we need to understand what remains accessible when one of those stages is bypassed: with a removed disk, a system booted from USB, or a normal boot performed by someone who stole the whole machine. These concrete situations let us decide whether to keep automatic unlocking or require a secret before even reaching the login screen.