Skip to content

UefiTestingPkg: Add Secure Boot crypto capability audit - #968

Draft
Doug Flick (Flickdm) wants to merge 8 commits into
microsoft:release/202608from
Flickdm:feat/secureboot-crypto-audit-20261123
Draft

Doug Flick (Flickdm) wants to merge 8 commits into
microsoft:release/202608from
Flickdm:feat/secureboot-crypto-audit-20261123

Conversation

@Flickdm

@Flickdm Doug Flick (Flickdm) commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Description

Relocate the experimental Secure Boot audit from QemuPkg into
UefiTestingPkg/AuditTests/SecureBootCryptoAudit, alongside the other
platform-independent audit tests.

  • Rename the application to SecureBootCryptoAuditApp.efi and move its
    PCDs, host tools, tests, startup script, and documentation.
  • Add X64/AARCH64 package builds and package-native ECIT host-test CI wiring.
  • Preserve application GUIDs, generated fixture bytes, and fixture identities.
    Most of the added lines are the existing imported fixtures.
  • Keep execution opt-in. This does not add the application to firmware
    volumes or automatically run destructive audit tests.

Change checklist

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

  • Python host tests: 59/59 passed.
  • Native X64 ECIT tests: 25/25 passed.
  • DEBUG GCC application builds: X64 and AARCH64, both standalone and
    through the local platform wrapper.
  • QEMU audit: 63 passed, 4 skipped per architecture, using disposable
    copies of the previously validated platform firmware, not a new firmware
    build.
  • ECIT results unchanged: 45/157 advertised claims verified, 112 untested,
    zero mismatches
    per architecture.
  • Disposable writable images were restored byte-for-byte; original firmware
    images and source worktrees were not modified.
  • Protected fixture blobs and GUIDs match the original audit.
  • Required package/platform static checks and committed PatchCheck passed.

Windows builds have not been validated locally. The existing audit-only
spell checker reported 51 non-blocking warnings.

Integration Instructions

Build the application from UefiTestingPkg and run it explicitly using the
documented recovery precautions. Do not resume an interrupted run using the
old application/journal names; restore the target and start a fresh run.

The separate mu_tiano_platforms wrapper/submodule follow-up remains local
until this change is merged. No temporary fork dependency is introduced.

@mu-automation mu-automation Bot added language:python Pull requests that update Python code impact:security Has a security impact impact:testing Affects testing type:documentation Improvements or additions to documentation impact:non-functional Does not have a functional impact and removed impact:security Has a security impact labels Nov 23, 2026
Preserve the existing X64 and AARCH64 signed fixture bytes,
declarations, and manifests for the Secure Boot crypto audit.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
Relocate the audit application and its recovery, scenario, and ECIT
helpers into UefiTestingPkg. Declare its opt-in audit PCDs and preserve
application GUIDs.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
Add fixture generation and verification, journal inspection, and ECIT
reporting tools with their Python tests. Register the native ECIT
structural tests in package host-test CI.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
Register X64/AARCH64 application builds and document explicit audit
execution and recovery. Keep automatic execution disabled.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
@Flickdm
Doug Flick (Flickdm) force-pushed the feat/secureboot-crypto-audit-20261123 branch from 6058482 to bbc4344 Compare November 23, 2026 22:44
@codecov-commenter

Codecov Comments Bot (codecov-commenter) commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 6.52742% with 1790 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/202608@1eee4d9). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...Tests/SecureBootCryptoAudit/UEFI/SecureBootState.c 0.00% 448 Missing ⚠️
...ditTests/SecureBootCryptoAudit/UEFI/EcitEvidence.c 0.00% 409 Missing ⚠️
...sts/SecureBootCryptoAudit/UEFI/EcitClaimRegistry.c 0.00% 318 Missing ⚠️
...itTests/SecureBootCryptoAudit/UEFI/AuditRecovery.c 0.00% 312 Missing ⚠️
...itTests/SecureBootCryptoAudit/UEFI/AuditScenario.c 0.00% 182 Missing ⚠️
...tTests/SecureBootCryptoAudit/UEFI/CapabilityPath.c 0.00% 59 Missing ⚠️
...itTests/SecureBootCryptoAudit/Host/EcitTableTest.c 66.66% 9 Missing and 38 partials ⚠️
...ditTests/SecureBootCryptoAudit/UEFI/HelloUefiApp.c 0.00% 9 Missing ⚠️
.../AuditTests/SecureBootCryptoAudit/UEFI/EcitTable.c 83.78% 0 Missing and 6 partials ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##             release/202608     #968   +/-   ##
=================================================
  Coverage                  ?    1.92%           
=================================================
  Files                     ?      209           
  Lines                     ?   132813           
  Branches                  ?     2203           
=================================================
  Hits                      ?     2551           
  Misses                    ?   130150           
  Partials                  ?      112           
Flag Coverage Δ
AdvLoggerPkg 2.11% <ø> (?)
HidPkg 2.22% <ø> (?)
MfciPkg 34.25% <ø> (?)
MsCorePkg 1.30% <ø> (?)
MsWheaPkg 6.50% <ø> (?)
UefiTestingPkg 0.11% <6.52%> (?)
XmlSupportPkg 25.36% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Consolidate text and Markdown reporting and their regression tests.
Read structured evidence once and validate binary journals directly.
Preserve legacy evidence and reboot-checkpoint recovery semantics.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
Share Authenticode envelope construction across RSA, ECDSA and ML-DSA.
Preserve each algorithm's signing rules and verify generated envelopes
with the independent checker without regenerating fixtures.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
Run the complete discovered Python suite on Linux and Windows.
Require ML-DSA X.509 support without changing global build dependencies.
Keep these offline checks separate from destructive firmware runs.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
Document the unified report command and direct binary-journal input.
Use test discovery and describe the Python dependency requirements.
Correct the package fixture-generator defaults and preserve warnings.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:non-functional Does not have a functional impact impact:testing Affects testing language:python Pull requests that update Python code type:documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants