rhboot / shim-review

Reviews of shim
66 stars 130 forks source link

shim 15.8 for Oracle Solaris 11.4 #447

Open daveminer1 opened 1 month ago

daveminer1 commented 1 month ago

Confirm the following are included in your repo, checking each box:


What is the link to your tag in a repo cloned from rhboot/shim-review?


https://github.com/daveminer1/shim-review/tree/oraclesolaris-shim-x86_64-20241010


What is the SHA256 hash of your final SHIM binary?


b098fb90bff86509aacff0e5bc197583e7e77968cc64da4d41d310fb4eab3087 shimx64.efi


What is the link to your previous shim review request (if any, otherwise N/A)?


N/A


If no security contacts have changed since verification, what is the link to your request, where they've been verified (if any, otherwise N/A)?


N/A

es-fabricemarie commented 1 month ago

Issues:

jsetje commented 1 month ago

Since I work for the same company as the submitters, I don't count as a reviewer in this case. However, I looked this over in some detail before it was submitted.

DISABLE_EBS_PROTECTION is expected, since with the custom ELF validation code nothing will call back into shim lock protocol to have shim validate anything additional.

daveminer1 commented 1 month ago

My key is present on pgp.mit.edu:

Search results for 'oracle miner dave com'

Type bits/keyID Date User ID

pub 256E/8C450938 2024-07-23 Dave Miner dave.miner@oracle.com

steve-mcintyre commented 1 month ago

Mail sent to @daveminer1 for verification.

Alan's key is an ancient 1024-bit DSA key. We can't use that - it's way past time he generated something newer that's less readily broken.

daveminer1 commented 1 month ago

Confirming identity

leaders drearier picker sequins oatmeal torrential Portsmouth revert Lindsay strait

alanc commented 1 month ago

Mail sent to @daveminer1 for verification.

Alan's key is an ancient 1024-bit DSA key. We can't use that - it's way past time he generated something newer that's less readily broken.

Is not the RSA4096 key shown on https://keyserver.ubuntu.com/pks/lookup?search=0xCFDF148828C642A7&fingerprint=on&op=index sufficient?

jsetje commented 1 month ago

The old DSA one shows up first, presumably because it's your oldest key endorsing the others? I don't think we should use it anymore, but removing it from the server doesn't seem right either.

julian-klode commented 1 month ago

Mail sent to @daveminer1 for verification. Alan's key is an ancient 1024-bit DSA key. We can't use that - it's way past time he generated something newer that's less readily broken.

Is not the RSA4096 key shown on https://keyserver.ubuntu.com/pks/lookup?search=0xCFDF148828C642A7&fingerprint=on&op=index sufficient?

That is a subkey of a dsa1024 key, and as such the binding signature (the signature the primary key makes to certify the subkey as bound to it) is not strong enough, you need to properly rotate to a strong primary key.

As the primary key is the root of trust, when someone goes fetch the key it will fetch and trust all it's subkeys and encrypt to the latest encryption subkey.

An attacker with enough compute could be able to fake signatures binding arbitrary new suvkeys to the primary keys as dsa1024 is particularly weak.

steve-mcintyre commented 1 month ago

@julian-klode has described this exactly - just adding new stronger subkeys isn't sufficient

alanc commented 1 month ago

Sorry, I thought what I had done years ago was doing that, but I guess I did not. Unfortunately that description, no matter how exact, does not help me understand what I need to do now to satisfy you while not breaking the verification of the hundreds of X.Org package releases I've signed with that key which distros use to verify. Can you point to instructions for what gpg commands you want me to use here?

steve-mcintyre commented 1 month ago

Hi Alan!

No worries! You don't have to kill the old key, you can just create another new key for this new purpose.

The guide we typically point people to in the Debian community is https://keyring.debian.org/creating-key.html ; the defaults in gpg tend to be reasonable out of the box these days, but it dosn't hurt to check things look sane.

daveminer1 commented 1 month ago

Alan has generated a new key, the review is updated with the new fingerprint and updated pub files for both

steve-mcintyre commented 1 month ago

Mail to Alan on the way now

alanc commented 1 month ago

Confirming my identity:

primitive epigram tablelands raking drubs reactive teakettle layettes hoppers extrinsic

lorddoskias commented 1 week ago

Review

steve-mcintyre commented 4 days ago

I'm still looking at GRUB patches yet, but here's current state with some questions - see the end...

Shim 15.8 for Oracle Solaris 11.4

Tag oraclesolaris-shim-x86_64-20241010

Good

General

Shim

b098fb90bff86509aacff0e5bc197583e7e77968cc64da4d41d310fb4eab3087  /shimx64.efi
b098fb90bff86509aacff0e5bc197583e7e77968cc64da4d41d310fb4eab3087  /usr/share/shim/15.8-1.0.3.el9/x64/shimx64.efi

GRUB

Solaris

Issues / queries

daveminer1 commented 4 days ago

Thanks for the questions, Steve: