News for hackers. Stuff that matters.
Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by LinusU on Friday September 01, 2023 @11:34AM (#37352143)
Did you read the article? ;)

> From here it’s easy to manually use the TPM to unlock the disk with the Clevis tooling and mount the root volume for hacking (it takes a few tries sometimes, but it gets there in the end):

They use the exploit to get dropped into a root shell, and then asks the TPM to unlock the disk for them, which it promptly does.

Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by Guvante on Friday September 01, 2023 @11:47AM (#37352303)
Technically, but really the fault lies in the OS for providing an exploitable prompt that doesn't break the chain of custody of the boot process on failure.
Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by rlpb on Friday September 01, 2023 @11:58AM (#37352453)
Ubuntu developer here. I don't think that's fair. The OS, as shipped today, isn't designed with this threat model in mind. It's correct to say that for TPM-based LUKS unlock to be safe, the initramfs must not allow the user to take control of it. But that's a new requirement introduced when the user modified their system to configure TPM-based LUKS unlock. This isn't the responsibility of an OS that doesn't ship with that support, and in fact, prior to TPMs, it was perfectly reasonable to allow the user to take control of the initramfs prior to LUKS unlock!

That's not to say that an improvement can't be made as we move towards a future where TPM+LUKS might be the norm - just that you can't retrospectively claim fault on an OS that doesn't claim to support that.

Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by AshamedCaptain on Friday September 01, 2023 @12:09PM (#37352621)
> This isn't the responsibility of an OS that doesn't ship with that support, and in fact, prior to TPMs, it was perfectly reasonable to allow the user to take control of the initramfs prior to LUKS unlock!

And it still is perfectly reasonable behavior. Any distribution that decides (perhaps as a consequence of this) that on any boot process abnormality the default response is to enter an immediate reboot loop would be called crazy.

Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by phoronixrly on Friday September 01, 2023 @12:10PM (#37352637)
Sorry but Clevis (similarly to bitlocker without PIN) is security theatre.
Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by Guvante on Friday September 01, 2023 @05:35PM (#37356427)
I think it is fair to say that OS configuration to fix this should be required.

I agree with the logic that by default the OS is doing the right thing without any changes to support this model.

Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by ivlad on Saturday September 02, 2023 @08:31AM (#37360916)
> it was perfectly reasonable to allow the user to take control of the initramfs prior to LUKS unlock!

It’s still looks perfectly reasonable, just PCR should be fed with some value before that, maybe a hash of initramfs file? It seems to be reasonable as at this moment the state of the operating system differs from the one properly booted, which seems to fit the idea of secure boot.

This way it would be possible to still unlock LUKS with a pass phrase but not access TPM keys locked for configuration when initramfs shell is not running.

Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by formerly_proven on Friday September 01, 2023 @11:57AM (#37352446)
This is one of those designs where you skim a description and already know it’s going to break in a million different ways.
Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by AshamedCaptain on Friday September 01, 2023 @12:22PM (#37352837)
I still don't understand why people believe that you can have any expectation in these ludicrous scenarios.

Like, you are dropping a general purpose computer into the middle of Russia, expect to be able to command it remotely to do anything, even remotely update it and reboot it; and at the same time never bother to come check it up in person or even have minimum chassis intrussion detection. Do people really expect this to work just by adding some TPM craziness?

The article is just connecting a keyboard sniffer/simulator but it would have been as easy to do anything to the network traffic, SSD, motherboard/CPU JTAGs, RTC, etc.

Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by michaelt on Friday September 01, 2023 @12:52PM (#37353283)
Well, it's sorta possible. Just not with the TPM, and not in general purpose computing applications.

Games consoles are super locked down, to prevent piracy, and some modern consoles have gone years without a successful hack, despite being in the physical possession of the attacker. The iphone's activation lock is extremely hard to bypass, and even cops and border guards struggle to extract users' data.

Simply buy your PC from your operating system vendor directly, and forego options like being able to replace components and being able to install your own software, allowing the memory and PCI bus to be encrypted. Add some cloud backup features so the device can wipe itself at the drop of a hat without losing your data. After that, just have your OS vendor produce perfect code with no exploits, and you're secure!

Simple! /s

Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by Guvante on Friday September 01, 2023 @05:37PM (#37356437)
100% this is sketch. I was thinking if this was a supported security model you shouldn't be able to take control without disabling the TPM.

But it isn't so not the OSes problem.

Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by betaby on Friday September 01, 2023 @11:57AM (#37352441)
I did. It says 'From here it’s easy to manually use the TPM to unlock the disk with the Clevis tooling and mount the root volume for hacking (it takes a few tries sometimes, but it gets there in the end)'

However screenshot says 'Unsealing failing'. Yet Ubuntu-lv is mounted. I don't follow how Luks password was guessed for it.

Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by bri3d on Friday September 01, 2023 @12:06PM (#37352584)
There wasn't a password necessary, the TPM was an unlocking mechanism.

Secure Boot with TPM-backed disk encryption works off of a series of numbered hashes. The idea of TPM based FDE is that the machine will use Secure Boot to boot only a software chain that the end-user trusts not to contain authentication bypasses. In Secure Boot, the EFI firmware provides hashes of each stage in the boot chain to the TPM, and the TPM only unlocks the full-disk encryption key (really the key encryption key, since the TPM isn't fast enough to actually decrypt the disk) slot if each stage / configuration is valid.

This issue breaks that chain. In some sense it's an illustration of this system being silly conceptually, but it is a real issue IMO.

Re:Mashing Enter to bypass full disk encryption with TPM, Cl... by j0057 on Friday September 01, 2023 @12:07PM (#37352598)
No LUKS password was guessed, clevis-disk-unlock command in the last screenshot used the TPM to provide a key to a LUKS keyslot for getting at the actual decryption key to decrypt the disk. The TPM should have had information about the boot state to be able to refuse to provide the key, but didn't.