Update grub's SBAT

https://crrev.com/c/3720921 changed grub's SBAT data. Update the
questionnaire to match.

BUG=b:235243412
TEST=None

Change-Id: Id4d9972d4f2d897a0541e9319ac5cb7f173fb03b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/shim-review/+/3723076
Auto-Submit: Nicholas Bishop <nicholasbishop@google.com>
Commit-Queue: Paul Nardini <nardini@google.com>
Reviewed-by: Paul Nardini <nardini@google.com>
Tested-by: Nicholas Bishop <nicholasbishop@google.com>
1 file changed
tree: 4056715a880988bdfdfd8ba1cff4b1fd1f8dc3ad
  1. build_log.txt
  2. chromeos_reven.cer
  3. DIR_METADATA
  4. Dockerfile
  5. Makefile
  6. manifest
  7. nbishop.key
  8. OWNERS
  9. pnardini.key
  10. README.md
  11. sbat.csv
  12. shimia32.efi
  13. shimx64.efi
README.md

What organization or people are asking to have this signed?


Google


What product or service is this for?


Chrome OS (reven board)


What's the justification that this really does need to be signed for the whole world to be able to boot it?


Chrome OS is a Linux distribution. We want to enable (and encourage) our user base to boot Chrome OS (reven) with secure boot enabled.


Who is the primary contact for security updates, etc.?


(Key should be signed by the other security contacts, pushed to a keyserver like keyserver.ubuntu.com, and preferably have signatures that are reasonably well known in the Linux community.)


Who is the secondary contact for security updates, etc.?


(Key should be signed by the other security contacts, pushed to a keyserver like keyserver.ubuntu.com, and preferably have signatures that are reasonably well known in the Linux community.)


Were these binaries created from the 15.6 shim release tar?

Please create your shim binaries starting with the 15.6 shim release tar file: https://github.com/rhboot/shim/releases/download/15.6/shim-15.6.tar.bz2

This matches https://github.com/rhboot/shim/releases/tag/15.6 and contains the appropriate gnu-efi source.


We confirm that our shim binaries are built from the referenced tarball.


URL for a repo that contains the exact code which was built to get this binary:


https://github.com/rhboot/shim/tree/15.6


What patches are being applied and why:


No patches are applied.


If shim is loading GRUB2 bootloader what exact implementation of Secureboot in GRUB2 do you have? (Either Upstream GRUB2 shim_lock verifier or Downstream RHEL/Fedora/Debian/Canonical-like implementation)


Upstream GRUB2 with shim_lock verifier.


If shim is loading GRUB2 bootloader and your previously released shim booted a version of grub affected by any of the CVEs in the July 2020 grub2 CVE list, the March 2021 grub2 CVE list, or the June 7th 2022 grub2 CVE list:

  • CVE-2020-14372

  • CVE-2020-25632

  • CVE-2020-25647

  • CVE-2020-27749

  • CVE-2020-27779

  • CVE-2021-20225

  • CVE-2021-20233

  • CVE-2020-10713

  • CVE-2020-14308

  • CVE-2020-14309

  • CVE-2020-14310

  • CVE-2020-14311

  • CVE-2020-15705

  • CVE-2021-3418 (if you are shipping the shim_lock module)

  • CVE-2021-3695

  • CVE-2021-3696

  • CVE-2021-3697

  • CVE-2022-28733

  • CVE-2022-28734

  • CVE-2022-28735

  • CVE-2022-28736

  • CVE-2022-28737

Were old shims hashes provided to Microsoft for verification and to be added to future DBX updates?

Does your new chain of trust disallow booting old GRUB2 builds affected by the CVEs?


Pre-SBAT shim builds have been sent to Microsoft for revocation. Our current cert has not been used to sign anything pre-SBAT.


If your boot chain of trust includes a Linux kernel:

Is upstream commit 1957a85b0032a81e6482ca4aab883643b8dae06e “efi: Restrict efivar_ssdt_load when the kernel is locked down” applied?

Is upstream commit 75b0cea7bf307f362057cc778efe89af4c615354 “ACPI: configfs: Disallow loading ACPI tables when locked down” applied?

Is upstream commit eadb2f47a3ced5c64b23b90fd2a3463f63726066 “lockdown: also lock down previous kgdb use” applied?


Yes, all three commits are in the chromeos-5.10 branch our kernel is built from: https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/chromeos-5.10


If you use vendor_db functionality of providing multiple certificates and/or hashes please briefly describe your certificate setup.

If there are allow-listed hashes please provide exact binaries for which hashes are created via file sharing service, available in public with anonymous access for verification.


We do not use this functionality.


If you are re-using a previously used (CA) certificate, you will need to add the hashes of the previous GRUB2 binaries exposed to the CVEs to vendor_dbx in shim in order to prevent GRUB2 from being able to chainload those older GRUB2 binaries. If you are changing to a new (CA) certificate, this does not apply.

Please describe your strategy.


N/A: we already switched to a new certificate for our Shim 15.4 submission: https://github.com/rhboot/shim-review/issues/204


What OS and toolchain must we use to reproduce this build? Include where to find it, etc. We‘re going to try to reproduce your build as closely as possible to verify that it’s really a build of the source tree you tell us it is, so these need to be fairly thorough. At the very least include the specific versions of gcc, binutils, and gnu-efi which were used, and where to find those binaries.

If the shim binaries can‘t be reproduced using the provided Dockerfile, please explain why that’s the case and what the differences would be.


The Dockerfile in this repository will reproduce our shim build. As a convenience, make build-no-cache will do a clean build.


Which files in this repo are the logs for your build?

This should include logs for creating the buildroots, applying patches, doing the build, creating the archives, etc.


build_log.txt


What changes were made since your SHIM was last signed?


  • Dropped all patches
  • Upgraded to Shim 15.6
  • Updated Grub with the latest security patches
  • Updated Shim and Grub SBAT sections
  • Made some improvements requested in our previous review:
    • Combined our shim-review and shim-build repos.
    • Gave the new repo a simpler URL that no longer makes it sound like a github mirror: https://chromium.googlesource.com/chromiumos/shim-review
    • Switched the default container command in the Makefile to podman (can be overridden by setting the CONTAINER_CMD env var).
    • The Dockerfile prints the SHA256 digests at the end.

What is the SHA256 hash of your final SHIM binary?


0fcef16c44af02cf586200c93bccec6c5776591c01f7317b62a45d1d5f91361e  shimia32.efi
bcd526a9a726680f9ac6334c99aa1fb53a6f6228f65251dfda59e18cece0052f  shimx64.efi

How do you manage and protect the keys used in your SHIM?


The keys used in this shim are generated and stored in an HSM. They are then encrypted for export to a signing fleet for usage in build signing by our CI pipeline, where they remain encrypted at rest. Only 4 trusted individuals in the org have access to the signing fleet machines, enforced by ACL and 2FA.


Do you use EV certificates as embedded certificates in the SHIM?


No.


Do you add a vendor-specific SBAT entry to the SBAT section in each binary that supports SBAT metadata ( grub2, fwupd, fwupdate, shim + all child shim binaries )?

Please provide exact SBAT entries for all SBAT binaries you are booting or planning to boot directly through shim.

Where your code is only slightly modified from an upstream vendor's, please also preserve their SBAT entries to simplify revocation.


shim SBAT:

sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md
shim,2,UEFI shim,shim,1,https://github.com/rhboot/shim
shim.chromeos,2,ChromeOS,shim,15.6,https://chromium.googlesource.com/chromiumos/shim-review

grub SBAT:

sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md
grub,2,Free Software Foundation,grub,2.06,https://www.gnu.org/software/grub/
grub.chromeos,2,ChromeOS,grub2,2.06,https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/refs/heads/main/sys-boot/grub/grub-2.06.ebuild

Which modules are built into your signed grub image?


  • boot
  • chain
  • configfile
  • efi_gop
  • ext2
  • fat
  • gptpriority
  • hfs
  • hfsplus
  • linux
  • normal
  • part_gpt
  • test

(Source file for reference)


What is the origin and full version number of your bootloader (GRUB or other)?


Grub 2.06

This is largely the same as our previous submission, but the patch list (linked above) has been updated:

  • 0001-Forward-port-ChromeOS-specific-GRUB-environment-vari.patch and 0002-Forward-port-gptpriority-command-to-GRUB-2.00.patch are unchanged from previous submission.
  • Added 0003-Add-configure-option-to-reduce-visual-clutter-at-boo.patch: this is from a Debian patch.
  • Added 3 build-fix patches from Grub's master branch.
  • Added 2 whitespace-only patches from Grub's master branch to make the new security patches apply cleanly.
  • Added 30 patches for the June 2022 CVEs.

If your SHIM launches any other components, please provide further details on what is launched.


N/A


If your GRUB2 launches any other binaries that are not the Linux kernel in SecureBoot mode, please provide further details on what is launched and how it enforces Secureboot lockdown.


N/A


How do the launched components prevent execution of unauthenticated code?


Our shim launches grub2 built with secure-boot support.


Does your SHIM load any loaders that support loading unsigned kernels (e.g. GRUB)?


No


What kernel are you using? Which patches does it includes to enforce Secure Boot?


Our kernel is based on 5.10 and has secure boot enabled. Source: https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/chromeos-5.10


Add any additional information you think we may need to validate this shim.


Previous submission: https://github.com/rhboot/shim-review/issues/204