Skip to content

u/systemofapwne

In this archive from Aug 2021 to Mar 2026

1
posts
22
comments
0
media
61
score

Top posts

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

2 points18 comments
Open on Reddit

Top comments

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.

5 points

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:

  1. Enroll your own keys and leave in the "Microsoft UEFI 2011 CA" certificate in your DB store
  2. Enroll your own keys and add the SHA256 hashes of the OpROMs to your DB store.

Pro & Cons:

  1. Pro: Easy route. Con: Third-party bootloaders signed by Microsoft can still be ran, including those of an adversary, even though this is highly unlikely (but not impossible)
  2. Pro: Only your signed bootloaders will run Con: Getting the hashes from your OpROMs and adding them to the DB store is not straight forward and not very documented. It took me several days of developing a working solution for that. Read more here
4 points

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.

4 points

Subreddits

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.