I consider bootloader attacks a very low-probability threat, and quite honestly I don't trust the average board vendor to produce anything that's actually secure anyway. If I were in the habit of carrying a laptop back and forth across international borders I might feel differently, but for a desktop stuck in a room in Canada that hardly anyone enters when I'm not present, Secure Boot is a major hassle in return for a small security gain. So I just don't bother.
post
Very recent relevant article, apparently not mentioned yet https://arstechnica.com/security/2024/07/secure-boot-is-completely-compromised-on-200-models-from-5-big-device-makers/
I have my home folder encrypted and I enter my password on boot. I'm not really sure what benefits Secure Boot has in environments where you have to enter your password anyway. And in environments where you don't have to enter your password, someone could just steal your system anyway and boot it to get your data.
You can use measured boot as part of the firmware boot process, store a hash of the known good boot files on a trusted media and compare that.
This is done with the Heads payload in Coreboot. But support is like only Thinkpads and now also soon Novacustom, Nitrokey and maybe System76 laptops.
The thing is, then you know your kernel is safe, but what about the rest? Depending on the attack vector, a system like on Android with full immutability and a recovery that verified the whole OS root partition would be safer.
But this means that you have no ability to customize, without breaking things.
Keep EFI bootloader off the computer (n+1 copies on a flash drive). Make /boot partition fully encrypted.
Don't trust Secure Boot.
If you can, try the coreboot.
Don't trust Secure Boot.
That's the second best thing as long as you don't worry about nation state actors (you're fucked by then anyway). Only requirement is a board/laptop manufacturer with a proper uefi setup (eg ability to set your own keys, not using those "do not use" test keys, etc) - that usually comes with business machines.
And if you are?
Now I'm not very smart, but I see no purpose of it, so I just turn it off so it doesn't fuck with my ability to boot.
Just use disk encryption and be done
Mandatory read on the subject for the curious (also goes over Secure Boot, Boot Guard etc):
You have to turn off Secure Boot to enable hibernation, and I value hibernation enough to do so.
This is patently false. Secure boot and hibernation are not mutually exclusive.
While I believe you, I haven't been able to enable hibernation with it on.
It's a kernel build config. Debian for one ships with support disabled due to security concerns.
Not mutually exclusive, but it's highly probable that if you're running a mainstream distro, the default kernel is in lockdown mode, preventing hibernation while secure boot is enabled.
I believe if your swap partition is on an encrypted LVM, you can still hibernate with kernel lockdown enabled.
all 35 comments