Skip to content

Latest commit

 

History

History
262 lines (221 loc) · 12.7 KB

README.md

File metadata and controls

262 lines (221 loc) · 12.7 KB

This repo is for review of requests for signing shim. To create a request for review:

  • clone this repo
  • edit the template below
  • add the shim.efi to be signed
  • add build logs
  • add any additional binaries/certificates/SHA256 hashes that may be needed
  • commit all of that
  • tag it with a tag of the form "myorg-shim-arch-YYYYMMDD"
  • push that to github
  • file an issue at https://github.com/rhboot/shim-review/issues with a link to your branch
  • approval is ready when you have accepted tag

Note that we really only have experience with using GRUB2 on Linux, so asking us to endorse anything else for signing is going to require some convincing on your part.

Here's the template:


What organization or people are asking to have this signed:

ZeronsoftN Inc

What product or service is this for:

ZeroUp & ZeroMon

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

ZeroUp is a system recovery solution. Before booting, should be able to enter recovery mode (by grub).

ZeroCle is a disk sanitize solution, booting into Linux is required for sanitize disk.

Who is the primary contact for security updates, etc.

  • Name: Joseph Lee
  • Position: Engineer
  • Email address: joseph@zeronsoftn.com
  • PGP key, signed by the other security contacts, and preferably also with signatures that are reasonably well known in the Linux community:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: User-ID:	Joseph Lee <joseph@zeronsoftn.com>
Comment: Type:	2,048-bit RSA (secret key available)
Comment: Usage:	Signing, Encryption, Certifying User-IDs
Comment: Fingerprint:	957FF3F04DAD4079A8B4F96BDCDF4A772D412DC1


mQENBF25PV4BCADKd6m70p3qkBcKCRf9yz13HwWuljTHEuPrbVk7pL3XkSRYL7ck
iE/7uvoroIbytwvzozuyq1deHYNsRt70OnclRS8Wg9VWbVDz7m9B9/xD08Fbk8Dm
bNqro3IGs+obHcTEmPxD1Ll/lS95YtQ0HpozR1QjnQPDz6xXgCGeGEdno0mteGCt
nQSjJwdZbwS4sKXlx9Y1QUj9uLJtMKWNWjK3aqqPxtZpkOtGwpIpRB8OYmBwFxca
evpcUmkZR3ugGjbH5j7E4SxLqXqUFiYE3PdOW5VcaBmnrrOFWemyGE73Y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z6APDUY+JU0WaU5/2hDhrmstW3j5oAwcMfs7d/e12qZ
AtERPKK25H2aOJQ8OJ8tqmJnFe/skacnzqJueIKG/tlnZ37Nw+ODX5rmKZ7EJPqK
kDkQ9FosRAQ4AxXMRqzDdAsm7ymWP2OmpCANzkxxhRuInS8zIrxOUfY1dvumBiwJ
maTWk3eoYD2YAIw16wEhkw1SsKimNuhqWPjGT3mvjUQdO1aK8qWwl5//C68PaAWg
jjS5kpNQN6SPGgYtmM7NYG/+aC0O6Pwv9NufJOSFKZlYNHrvAbHOM87q
=sqBQ
-----END PGP PUBLIC KEY BLOCK-----

Who is the secondary contact for security updates, etc.

  • Name:
  • Position: Engineer
  • Email address:
  • PGP key, signed by the other security contacts, and preferably also with signatures that are reasonably well known in the Linux community:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: User-ID:	hdchoi <hyunduk.choi@gmail.com>


mQENBF0cTgcBCADBwbBoLNHoIpEjv0NCCENgwqG3z0vE4gmlS1nt+dTZfNNFvto/
aFvYIho0DLjU3r6bqWZ34qbuqLGANx4r1He0swOqRd8qdip6TC3h+f42vXgvWK/E
5EESMk07wLbMKzl8hbU8JtlgZUqVvbQ99sKLIx3rc1ZV0beDNK9PjKgx2zrAU+6U
8FZwyuPnGlPcNelqmMzSqKWkRRjp2M6McxTblye82YgLUFOc92Xkv8Q3v5A1UbUM
dgPajQxyawQmRAY/YjTAn8ijG/wXdSNBAprFkqcLrhPTSSusr+VvDQP3UF+x0MyI
ixD8lx38xnHyZZc45EN1mDu5l5PTQIh7811nABEBAAG0H2hkY2hvaSA8aHl1bmR1
ay5jaG9pQGdtYWlsLmNvbT6JAVQEEwEIAD4WIQSes0t9nJ+Bo+hITvAiniufhOzi
rAUCXRxOBwIbAwUJA8OEqQULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRAiniuf
hOzirC8EB/0T0ML+mKUMK3+53f3UMgdQ8x7013nj4Xcc6TPK2Cv5d8SFbMh4ammJ
/xkP0qYjhlwA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GP PUBLIC KEY BLOCK-----

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

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

YES. I used "https://github.com/rhboot/shim/releases/download/15.3/shim-15.3.tar.bz2". (sha256=df76c9b68cf6e6d9c024059b5335701441c366cdcced2ae21e115f3901cb8333)

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

https://github.com/zeronsoftn/shim-builder/blob/zeron/15.3-0/docker/shim-15.3.tar.bz2

What patches are being applied and why:

None

But There are some patches only for the build part.

https://github.com/zeronsoftn/shim-builder/tree/ba6032cf888c9ca788901718892246ac4a2f52a0/docker/patches


If bootloader, shim loading is, GRUB2: is 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, and if you are shipping the shim_lock module CVE-2021-3418

We will use Ubuntu's `grub2_2.04-1ubuntu28`, and we will update it as well when version 2.06 or later is released.

What exact implementation of Secureboot in GRUB2 ( if this is your bootloader ) you have ?

  • Upstream GRUB2 shim_lock verifier or * Downstream RHEL/Fedora/Debian/Canonical like implementation ?

We use Canonical's implementation as described above.

If bootloader, shim loading is, GRUB2, and previous shims were trusting affected by 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, and if you were shipping the shim_lock module CVE-2021-3418 ( July 2020 grub2 CVE list + March 2021 grub2 CVE list ) grub2:

  • were old shims hashes provided to Microsoft for verification and to be added to future DBX update ?
  • Does your new chain of trust disallow booting old, affected by 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, and if you were shipping the shim_lock module CVE-2021-3418 ( July 2020 grub2 CVE list + March 2021 grub2 CVE list ) grub2 builds ?

We haven't used shims before.

If your boot chain of trust includes linux kernel, is "efi: Restrict efivar_ssdt_load when the kernel is locked down" upstream commit 1957a85b0032a81e6482ca4aab883643b8dae06e applied ? Is "ACPI: configfs: Disallow loading ACPI tables when locked down"

upstream commit 75b0cea7bf307f362057cc778efe89af4c615354 applied ?

Yes, we use alpine kernel-lts (5.10.25).

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

None.

If you are re-using a previously used (CA) certificate, you will need to add the hashes of the previous GRUB2 binaries 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.

We will change the certificate in case of problems in the future.

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 close 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 possible, provide a Dockerfile that rebuilds the shim.

All package versions are displayed in the build log. It also has a Dockerfile.

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


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

Builder for docker : https://github.com/zeronsoftn/shim-builder/tree/zeron/15.3-0 (commit id : 2bec8ee23c761992650ffc522d93d09119fa174d)