Secure Boot: How to extract nVidia UEFI boot option ROM from "vBIOS" to generate hash for custom PK, KEK, db? (black screen upon boot without "Microsoft Corporation UEFI CA 2011" in db, which I do not want)
Problem is solved TLDR: I extracted the OptRom hashes from /sys/kernel/security/tpm0/binary_bios_measurements and added them to DB. More info are down the comments. Original post I am currently migrating my system to secure boot using my own platform key (PK), key excha
Yes
Oh yeah, there is an emacs command for that ;)
I use it to sign my efi-stubbed kernel image/initramfs to prevent modification of it pre-boot (evil maid attack). Everything else of my laptop lives on a encrypted LVM. Won't protect against hardware keyloggers though but makes it way harder to start tampering with my device in the first place. Was it worth it? Probably not. Setting it up was a huge mess, especially due to some OptROMs of hardware such as the GPU also being singed and need to be either re-signed (literally next to impractical) or their hashes added to the db allow-list. And the later is not very straight forward.
This is basically because of the OpROMs of hardware, specifically GPUs being signed by the "Microsoft UEFI 2011 CA" certificate. In order to use secure boot with Linux and be safe regarding OpROMs, you can go two routes:
Pro & Cons:
Just fire a
sudo pacman -Syuu. I just have recently updated an arch machine in our lab which had a runtime of more than 330 days and most certainly was not even updated beforehand. The update went smooth.