I DID NOT remove any pre-existing keys. Just added my PK, KEK, and DB keys.
From the Arch Wiki:
User must not use 3rd party keys, especially from Microsoft (there is at least one known boot manager, signed by Microsoft, able to load anything
Doesn't this mean that practically no one currently using Secure Boot is actually protected right now, because it's possible to just completely replace the OS with whatever you want, and a Microsoft signed boot manager will be able to load it?
That is why the dbx list exists. I just downloaded the two official M$ keys (one for OSes and the other for drivers) and added it to that restricted list.
Good to know that's around, but it's still crazy that this feature that was supposedly necessary to make our devices secure is basically broken-by-default.
I recently spent some time trying to understand what secureboot does and I'm no longer sure if evil maid attacks are actually it.
Someone with access to your device could a) boot a signed bootloder if you didn't remove the default keys b) disable secureboot if they can access your bios settings
I think secureboot is intended to protect you against rootkits that are installed from something that runs on your OS. Applications on your OS can't reboot into another OS or modify your BIOS settings so for them secureboot is actually quiet hard to circumvent.
If you want protection against evil maids you need a TPM. They are designed to check if your "boot environment", software and hardware, matches a known good state and only if this is the case they will continue booting and allow the system to access your LUKS keys for example.
Still not 100% sure if this is correct but it seems to make a lot more sense to me than what I though secureboot was made for in the beginning
I guess it’s not that it’s discouraged but i remember reading somewhere that it is “not supported” by arch. I was just wondering what causes some people to insist on still using it.
I just had a similar predicament few days ago when I followed the wiki to add my own keys on my Asus Laptop , except that I did set the authorized signature DB not append to it causing factory DB to be overridden.
But I didn't get a boot loop, i booted to black screen but the lights in my laptop indicated POST was successful.
Luckily I signed my kernel before I made the change and was able to boot to arch Linux which didn't have X installed yet.
I blindly logged in and installed ssh and then from another laptop logged in and installed X and the screen turned on.
This meant that the UEFI application was no longer trusted to access the GPU.
After 3 days of trial and error and searching Google pictures for my bios screens , I was able to blindly enter the bios and enroll the default factory keys to the default one and got the screen working on boot again.
This is not an Arch Linux issue that why I didn't post anything here but I did on Asus Reddit and contact support who were just useless saying that they don't support Linux or a custom BIOS!
I'm curious because I will be in the market for a new laptop soon, and I haven't ever had to deal with secure boot, since my last laptop is almost 8 years old.
What are the pro's and cons of running with secure boot disabled vs trying to enable it like OP. What is it supposed to protect you from, and are those risks greater than the risk of bricking your new laptop?
In theory, secure boot means that your laptop will refuse to boot any piece of software that is not specifically signed and verified, with that requirement enforced by a separate chip on the mainboard to help resist an evil maid attack (provided your laptop is password protected against adding new keys). In theory the secure bootloader also only allows you to load a verified kernel, which is running off a disk that can in theory be encrypted.
In other words in theory the whole chain from power button to the software you run is secured, even if your laptop is compromised. In practice (see other comments in the thread) it's apparently broken by default.
So if I am not even slightly worried about an evil maid attack, then I might as well just run with secure boot disabled... like every other computer I've ever had.
37 comments
From the Arch Wiki:
Doesn't this mean that practically no one currently using Secure Boot is actually protected right now, because it's possible to just completely replace the OS with whatever you want, and a Microsoft signed boot manager will be able to load it?
It means exactly this. See https://habr.com/ru/post/446238/
God damn it, of course it's an antivirus company.
That is why the
dbxlist exists. I just downloaded the two official M$ keys (one for OSes and the other for drivers) and added it to that restricted list.https://wiki.archlinux.org/index.php/Secure_Boot#Microsoft_Windows
Good to know that's around, but it's still crazy that this feature that was supposedly necessary to make our devices secure is basically broken-by-default.
I was able to remove to remove the existing keys, replacing them with my own.
And restoring the keys from firmware did nothing?
Why would you need secure boot? I thought it was generally discouraged in the arch community.
To mitigate against evil maid attacks. I don't know if a simple CMOS reset would be able to remove the keys.
Y'all need to tip/pay your maids better or update your threat model.
I recently spent some time trying to understand what secureboot does and I'm no longer sure if evil maid attacks are actually it.
Someone with access to your device could a) boot a signed bootloder if you didn't remove the default keys b) disable secureboot if they can access your bios settings
I think secureboot is intended to protect you against rootkits that are installed from something that runs on your OS. Applications on your OS can't reboot into another OS or modify your BIOS settings so for them secureboot is actually quiet hard to circumvent.
If you want protection against evil maids you need a TPM. They are designed to check if your "boot environment", software and hardware, matches a known good state and only if this is the case they will continue booting and allow the system to access your LUKS keys for example.
Still not 100% sure if this is correct but it seems to make a lot more sense to me than what I though secureboot was made for in the beginning
It doesn't actually protect from evil maid. It protects against malware modifying anything in your boot chain.
Why is it discouraged? I haven’t seen anything on that.
It isn't, setting it up is just non-trivial and provides little benefit for many users.
I guess it’s not that it’s discouraged but i remember reading somewhere that it is “not supported” by arch. I was just wondering what causes some people to insist on still using it.
You should update the wiki with warning about this for your model.
Done.
Interesting. I wonder if resetting CMOS memory would help in this situation.
Tried it. Doesn’t work.
Thinkpads seems to store BIOS config on EEPROM, which keeps data without power.
Deleted before we saved it.
I just had a similar predicament few days ago when I followed the wiki to add my own keys on my Asus Laptop , except that I did set the authorized signature DB not append to it causing factory DB to be overridden.
But I didn't get a boot loop, i booted to black screen but the lights in my laptop indicated POST was successful.
Luckily I signed my kernel before I made the change and was able to boot to arch Linux which didn't have X installed yet.
I blindly logged in and installed ssh and then from another laptop logged in and installed X and the screen turned on.
This meant that the UEFI application was no longer trusted to access the GPU.
After 3 days of trial and error and searching Google pictures for my bios screens , I was able to blindly enter the bios and enroll the default factory keys to the default one and got the screen working on boot again.
This is not an Arch Linux issue that why I didn't post anything here but I did on Asus Reddit and contact support who were just useless saying that they don't support Linux or a custom BIOS!
I want to believe this is a fault for this specific board&bios or some form of operator error. Not an actual PsA that effects everybody.
Hence the specific hardware mentioned in title
I'm curious because I will be in the market for a new laptop soon, and I haven't ever had to deal with secure boot, since my last laptop is almost 8 years old.
What are the pro's and cons of running with secure boot disabled vs trying to enable it like OP. What is it supposed to protect you from, and are those risks greater than the risk of bricking your new laptop?
In theory, secure boot means that your laptop will refuse to boot any piece of software that is not specifically signed and verified, with that requirement enforced by a separate chip on the mainboard to help resist an evil maid attack (provided your laptop is password protected against adding new keys). In theory the secure bootloader also only allows you to load a verified kernel, which is running off a disk that can in theory be encrypted.
In other words in theory the whole chain from power button to the software you run is secured, even if your laptop is compromised. In practice (see other comments in the thread) it's apparently broken by default.
So if I am not even slightly worried about an evil maid attack, then I might as well just run with secure boot disabled... like every other computer I've ever had.
May I ask a dumb thing? What is a secure boot precisely? What do we need it for, if it can be disabled anyway?
That's not a dumb thing, but you ought to feed goodle with "secure boot" and just read the first 100 hits.
Its validating the boot image with preinstalled keys
Deleted before we saved it.
Deleted before we saved it.