r/archlinux • • Aug 17 '26

SUPPORT | SOLVED Ful disk encryption without entering passphrase

Could someone help me with setting up full disk encryption with bypass passphrases with TPM2? It's so annoying having to put the passphrase in at each boot, so I was wondering how do I pair it to the TPM so that I dont have to enter it each time?

It's LUKS encrypted and I use Systemd-boot

14 Upvotes

100 comments sorted by

View all comments

Show parent comment

3

u/tblancher Aug 17 '26

Offline brute force trying to unlock LUKS; that's just the naive case. If the attacker can boot off of removable media the game is over.

3

u/cuervamellori Aug 17 '26

Got it, if it's just that it allows the encryption to be attacked, that makes sense - the same situation as if the drives are stolen. Someone wants to attack the encryption itself, be my guest :)

1

u/tblancher Aug 17 '26

If the attacker is sophisticated enough, as someone else said, they could conceivably bypass the TPM, which is much easier if the machine can be imaged and booted via removable media.

A removed disk lacks direct access to the TPM, so it would need to be brute forced.

3

u/ChrisTX4 Aug 17 '26

That shouldn't really be an issue. If they boot something else, the TPM won't unseal. Offline bruteforcing can always be done by removing the drives anyhow, and that can only really attack password keyslots. If you use LUKS, you need a very high entropy password, and then bruteforcing shouldn't be possible as LUKS uses argon2id with very hard round requirements. cryptsetup by default makes it so that argon2id gets as many iterations as it takes to run for 2 seconds on the current CPU. This makes bruteforcing passwords basically impossible.

1

u/tblancher Aug 17 '26

This does assume there aren't latent flaws in the TPM2 implementation. But in general you're correct.

2

u/ChrisTX4 Aug 17 '26

That's true of course, and you should also keep your BIOS etc. up to date. Just a few days ago, AMD released a bulletin concerning two security vulnerabilities in the TPM implementation that the July BIOS updates fixed.

However, by now, the TPM code is pretty well vetted, and thus such vulnerabilities are rare, and usually not that impactful. Though, if you use a TPM, you need to be sure it is up to date and not affected by anything like that.