Add Microsoft's 2023 CAs to db in User Mode - #183
Merged
Merged
Conversation
A Windows image carrying the boot manager signed by Windows UEFI CA 2023 fails Secure Boot on a target whose db holds only the 2011 CAs (forums topic 18246). fog.enrollsb now applies Microsoft's KEK-signed db updates as append writes, before the already-trusted exit. Each 2023 CA is added only where its 2011 counterpart is in db and KEK holds Microsoft Corporation KEK CA 2011. db is re-read after each write. Validated on OVMF with SMM and Secure Boot enforcing. See ADR-0019. Closes #182 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #182.
Problem
A Windows image carrying the boot manager signed by Windows UEFI CA 2023 fails Secure Boot on a target whose
dbholds only the 2011 Microsoft CAs (forums topic 18246).Change
sbMsDbUpdateapplies Microsoft's KEK-signed db updates (DBUpdate2024.bin,DBUpdate3P2023.bin,DBUpdateOROM2023.bin) with attribute0x67(append).db.KEKmust hold Microsoft Corporation KEK CA 2011, or the task warns and continues.dbis re-read after each write. A write the firmware did not apply fails the task.fog.enrollsbruns this in User Mode, before the "already trusted" exit. Setup Mode is unchanged, becausesbEnrollDbalready writes the 2023 CAs./usr/share/fog/secureboot/, byte-identical tomicrosoft/secureboot_objectsand to the server'smscerts.Verification
tests/checks/secureboot.sh: 64 passed. Cases 41–50 are new and use the shipped Microsoft files. Four mutations (replace instead of append, no re-read, no KEK check, no 2011 prerequisite) each turn cases red.0x27write refused, change persists across reboot.Not verified: the
fog.enrollsbentry point end to end on a FOG server, and any physical firmware.🤖 Generated with Claude Code