News for hackers. Stuff that matters.
Re:Update on Linux hibernation support when lockdown is enabled by josephcsible on Saturday January 01, 2022 @11:46AM (#29760110)
I'm still waiting for someone to explain any legitimate use of kernel lockdown. To me, it just seems like a tool that makes it easier for bad guys to do tivoization.
Re:Update on Linux hibernation support when lockdown is enabled by dcomp on Saturday January 01, 2022 @01:50PM (#29761330)
You have a disk encrypted laptop. That key is protected by a password.

Secure boot means that when you log in you can trust that the disk decryption screen is not a disk encryption key exfiltration screen waiting for you to enter your password so that a disk backup taken earlier can be decrypted.

How?

The disk encryption is based on a key in the TPM which only is decrypted with your password. That TPM gets wiped when you disable secure boot. The result is that when you enter your password either you get a correct decryption key or your disk encryption key has already been wiped. Assuming it's not possible to run untrusted code before the disk encryption key login screen with secure boot enabled.

kernel lockdown is part of the parcel for making sure that untrusted code does not run that can exfiltrate the disk decryption key.

Re:Update on Linux hibernation support when lockdown is enabled by josephcsible on Saturday January 01, 2022 @01:58PM (#29761423)
That doesn't actually protect against that attack, though. The evil maid just steals the guts of your computer and replaces them with ones that always say "sorry, wrong password", while exfiltrating the password you tried over Wi-Fi or Bluetooth. Then they use your password to decrypt your unmodified hard drive with your unmodified TPM on your unmodified motherboard.

Also, I don't think this is true:

> That TPM gets wiped when you disable secure boot.

Won't the TPM not be able to decrypt anything while Secure Boot is disabled, since the PCRs will be different, but then it will work again if you later re-enable it? I don't think it actually wipes itself. And even if it did, couldn't you just unplug the TPM, disable Secure Boot, steal the password, re-enable it, and then plug the TPM back in? Then even if it did want to wipe itself, it wouldn't know to.

Re:Update on Linux hibernation support when lockdown is enabled by kmeisthax on Saturday January 01, 2022 @04:10PM (#29762832)
There's one flaw in your scenario: if your computer suddenly stopped respecting valid credentials, it'd be extremely obvious that the motherboard had been replaced or tampered with.

Generally speaking most evil-maid attacks assume that the attacker wants to remain covert, otherwise the victim will start revoking stolen credentials, calling the authorities, etc. If you don't care about remaining covert then you don't need to do an evil-maid attack; just buy a wrench.

Re:Update on Linux hibernation support when lockdown is enabled by josephcsible on Saturday January 01, 2022 @04:16PM (#29762910)
The evil maid could use the credentials within seconds of you typing them in, so you wouldn't have time to revoke anything. With rubber-hose attacks, you might give the attacker a duress code rather than the real password, which wouldn't happen with this one. And let's face it: it's probably nation-states that would do this kind of attack, so calling the authorities wouldn't be helpful anyway.
Re:Update on Linux hibernation support when lockdown is enabled by dcomp on Saturday January 01, 2022 @02:01PM (#29761453)
In a high security situation. It would not be a password, but a smartcard which authenticates the device before providing its key, and the device authenticating the smartcard.

Edit: For the purposes of the Networked Evil Maid Attacks. Mutual Authentication (of device and user) is currently the purpose of research. It has not needed to be implemented yet as the regular Evil Maid is still possible due to the fact that Secure Boot is currently the easier target to circumvent. Once Secure Boot becomes harder to circumvent and old "assumed" buggy kernels are revoked from running. Networked Evil Maid counter measures will need to be implemented as standard

Re:Update on Linux hibernation support when lockdown is enabled by 05 on Saturday January 01, 2022 @02:09PM (#29761540)
And you can still proxy that smart card over WiFi/LTE and boot the stolen internals at least once :)
Re:Update on Linux hibernation support when lockdown is enabled by josephcsible on Saturday January 01, 2022 @02:03PM (#29761471)
Does anything actually support this, or is it purely hypothetical? And even if that did exist, wouldn't that mean that password stealing wouldn't be an issue even without Secure Boot?
Re:Update on Linux hibernation support when lockdown is enabled by DHowett on Saturday January 01, 2022 @02:13PM (#29761594)
There are machines that keep track of chassis intrusion and measure it into a PCR, making the hardware replacement part of the attack less feasible; I’ll grant that your “evil maid” could also pass off a completely separate device as being yours, though.

FYI: The tone of your original question suggests that you might have prepared responses to any answers you might receive about secure boot and kernel lockdown. If that’s the case, maybe a comment tree isn’t the correct forum for having a discussion about it because of the inherent information inequity.

Re:Update on Linux hibernation support when lockdown is enabled by geofft on Saturday January 01, 2022 @05:37PM (#29763593)
The historic goal of the free software movement has been to make sure that users have freedom over their computing environment. Implicit in that is the idea that other people do not have freedom to mess with your computing environment, that the computer runs exactly what you tell it to run, no more and no less.

To that end, the goal is in fact similar from a technical perspective to TiVoization! The only difference is that TiVoization is where the manufacturer of a device controls the device after it's been sold to a new owner, and lockdown is where the owner controls their own device. For the most part, this is a social constraint, not a technical one.

It shouldn't be surprising that the technical tools are similar between the two opposed social goals of user freedom and corporate control. The entire idea of free software licensing depends on the idea that software is copyrightable and its copyrights can be enforced in court. The free software movement demands access to source code to enable user freedom, but companies also demand access to source code for business continuity reasons using source code escrow services (if not for ongoing access - Microsoft licenses Windows source code to major customers, for instance). The GNU Project demands their contributors sign papers assigning copyright so that GNU is in a better legal position to enforce licenses, but so do proprietary software development shops, for exactly the same reason. They just are achieving different things.

But there is an important way in which this has technical implications: the owner of the device needs to be able to change. TiVo does not need to change who is the admin. That is why the lockdown work is harder. Remember that TiVoization actually happened without any of this work, and in fact happened so long ago that barely anyone remembers what a "TiVo" is.