Skip to content

PSA: Don’t install custom secure boot keys on X1 Carbon 7th

Crossposted from

The original post is not in the archive.

110 points35 comments
Open on Reddit
About this post
Posted
Archived
Score
110 · 100% up
Kind
Link · crosspost
ID
eparlo

Author

10
posts
1
comments
9
media
View profile

37 comments

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?

40 points

I was able to remove to remove the existing keys, replacing them with my own.

5 points
unknown author1 hidden

And restoring the keys from firmware did nothing?

2 points

Why would you need secure boot? I thought it was generally discouraged in the arch community.

14 points

To mitigate against evil maid attacks. I don't know if a simple CMOS reset would be able to remove the keys.

11 points

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

3 points

It doesn't actually protect from evil maid. It protects against malware modifying anything in your boot chain.

3 points

Why is it discouraged? I haven’t seen anything on that.

3 points

It isn't, setting it up is just non-trivial and provides little benefit for many users.

7 points

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.

1 points

Interesting. I wonder if resetting CMOS memory would help in this situation.

11 points

Tried it. Doesn’t work.

Thinkpads seems to store BIOS config on EEPROM, which keeps data without power.

18 points
unknown author

Deleted before we saved it.

1 points

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!

7 points

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.

4 points

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?

3 points

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.

3 points

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.

1 points

May I ask a dumb thing? What is a secure boot precisely? What do we need it for, if it can be disabled anyway?

1 points
unknown author

That's not a dumb thing, but you ought to feed goodle with "secure boot" and just read the first 100 hits.

1 points
unknown author

Deleted before we saved it.

1 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.