r/framework • • 2d ago

Question Keys for Secure Boot

Does people have experience with adding your own keys for secure boot AND removing any existing MS/Framework keys?
I am going to install Linux on my framework.
Just want to make sure it will not be bricked or that i cannot install firmware updates.

6 Upvotes

19 comments sorted by

7

u/BBaoVanC 2d ago

Yes, I removed the original keys completely using the option in the bios, and installed only my own ones with sbctl. I haven't noticed any issues yet, BIOS updates work fine still

1

u/aala7 2d ago

Nice! So just clear the keys through the bios? And you did not back them up somewhere?

4

u/BBaoVanC 2d ago

I didn't back the keys up, but there's an option in BIOS to just restore the factory keys so I assume its not necessary

1

u/Gormah_Bossorange 2d ago

good to know bios updates still go through without the default keys, that's usually the main worry.

5

u/FrontearBot 2d ago

Yes, I generate personal keys using sbctl and enrolled them into the BIOS. I didn’t remove the Microsoft/Framework ones though, and I don’t think you should remove them either.

2

u/aala7 2d ago

I read it is the “ideal” setup, because manufacturer/thirdparty keys has shown to weaken secure boot 🤷🏽‍♂️ but essentially keeping them means that someone can boot windows on the machine?

1

u/AdLimp8574 2d ago edited 2d ago

removing the ms/framework keys will be more effort than its worth because the framework keys are required for firmware updates(obviously)

1

u/aala7 2d ago

How about Microsoft keys? I guess with them someone would be able to boot windows right?

1

u/AdLimp8574 2d ago edited 2d ago

You can remove Microsoft keys but I must ask what your trying to do. If your trying to (mostly) prevent others from booting a different o.s on your device disable usb boot in bios, if your going for data security encrypt with luks, have tpm decrypt make sure it secure boot status, bios settings, and cmdline(only need if not a stub booting)

1

u/aala7 2d ago

Honestly it is mostly an exercise of setting up the most secure setup 😅 I am just following the secure boot arch wiki entry, where they argue that the ideal setup is removing keys and only enrolling your own 🤷🏽‍♂️

1

u/aala7 2d ago

And yes, I will have both luks and tpm, so I guess even though someone booted another system and knew my passphrase, tpm will still block getting the decryption key?

1

u/AdLimp8574 2d ago

its (almost) impossible to get the decryption key off the tpm in software impossible hardware wise if your using the cpu baked in tpm (easier if using dedicated chip) also disk passphrase/recovery phrase WILL allow them to decrypt it, if you mean user account passphrase, no that will not allow them. Make sure your swap partition/file is also under luks. Oh and rember if someone really wants access to your data they will just take a crowbar to your kneecaps and beat you untill they tell you

1

u/aala7 2d ago

Yes😂

2

u/Sad-Cod-9584 2d ago

I completely wiped all keys to force secure boot into setup mode and the used sbctl enroll-keys -m to install my own and the microsoft ones and haven't had trouble with firmware updates afterwards

1

u/AdLimp8574 2d ago

really? didnt need framework keys for uefi updating what method did you use?

1

u/Sad-Cod-9584 2d ago

I just use fwupd in linux

3

u/ava1ar FW13 DYI | 1165G7 (B1) -> HX370 (B1) I Arch + 11 2d ago

Removed all them, enrolled my own. I am running dual boot, so now I have to sign windows boot files with my keys after major windows updates, but only my signed windows copy can boot on my laptop, which is what I wanted from secure boot exactly.

2

u/mjbulzomi 2d ago

I used sbctl just a few days ago to enable secure boot on my 13 Pro. In order to enter setup mode, you will need to wipe all the keys in the UEFI menu. When I was installing the custom key, I did also specify -f to also install the Framework manufacturer keys. I do not recall if I re-installed the Microsoft keys, but I know I did re-install the Framework keys. Note that if you wipe all Secure Boot keys in the UEFI, you will not have the dbx for excluded key database.