Signing and Release Runbook
Windows enforces separate trust models for user-mode executables/installers and Plug-and-Play (Class=Display) Universal Drivers. ZeroVDD uses a three-stage signing model so local builds stay fast while public releases satisfy retail Windows 11 security policies.
Three-Stage Signing Model
Section titled “Three-Stage Signing Model”Stage A: Local Development & CI Test Signing
Section titled “Stage A: Local Development & CI Test Signing”Used for local builds, Windows CI validation, and developer test machines.
- Build script:
scripts/windows/build-driver.ps1- Builds
driver-wdk(zerovdd.dll) forx64(x86_64-pc-windows-msvc) andARM64(aarch64-pc-windows-msvc). - Runs
stampinf.exe,infverif.exe(/u,/h,/w), andapivalidator.exe. - Signs
zerovdd.dllviascripts/windows/sign-dev.ps1beforeInf2Cat.exe(sozerovdd.cathashes the signed DLL), runsInf2Cat.exe, and signszerovdd.catafter.
- Builds
- Pinned certificate import:
zerovdd setup installimports a local dev cert only when explicitly given--dev-cert <PATH>and its matching 64-character--expected-sha256 <HEX>, tracking it for removal onzerovdd setup uninstall. - HVCI / Secure Boot caveat: Importing a self-signed cert satisfies PnP Driver Store staging, but Windows 11 Memory Integrity (HVCI) with
testsigningoff blocks self-signed DLLs insideWUDFHost.exe(Device Manager Code31). Live Stage A testing requiresbcdedit /set testsigning onon a dev machine or VM.
Stage B: Public Releases (SignPath Foundation / Trusted Authenticode CA)
Section titled “Stage B: Public Releases (SignPath Foundation / Trusted Authenticode CA)”Free code signing provided by SignPath.io, certificate by SignPath Foundation.
Used for public releases of zerovdd.exe, zerovdd-svc.exe, zerovdd-tray.exe, the WiX v5 MSI installer, and zerovdd.dll + zerovdd.cat:
- Verified on Windows 11 24H2 (
build 26300, Secure Boot ON, HVCI ON,testsigningOFF): signingzerovdd.dll(beforeInf2Cat.exe) andzerovdd.cat(afterInf2Cat.exe) with a trusted OSS/commercial Authenticode CA + RFC 3161 timestamp passesWUDFHost.exeCode Integrity withouttestsigning. - Scope boundary: Stage B does not grant Microsoft WHQL logo status or Windows Update publishing; Stage C covers those targets.
- See SignPath Onboarding for full setup instructions.
Stage C: Production GA (Microsoft Partner Center EV Attestation / HLK)
Section titled “Stage C: Production GA (Microsoft Partner Center EV Attestation / HLK)”Used for Microsoft-signed catalog distribution (Windows Update, Windows Server, strict WDAC / anti-cheat environments):
- EV Attestation Signing: Submit an EV-signed
.cabbuilt byscripts/windows/build-attestation-cab.ps1containing clean unsignedzerovdd.dll,zerovdd.inf, andzerovdd.pdbforx64andARM64(build-driver.ps1 -Arch x64,ARM64 -Profile release -SkipSign). - HLK / WHQL Certification: Required for Windows Update publishing and “Windows Certified” logo status via
.hlkxsubmission.
Driver Validation Gates (InfVerif & ApiValidator)
Section titled “Driver Validation Gates (InfVerif & ApiValidator)”Every Windows CI run and local build-driver.ps1 execution enforces:
InfVerif(separate single-flag passes for WDK 10.0.26100+):infverif.exe /v /u zerovdd.inf(Universal INF rules)infverif.exe /v /h zerovdd.inf(Hardware / PnP rules)infverif.exe /v /w zerovdd.inf(Driver StoreDIRID 13isolation)
ApiValidator: Runsapivalidator.exeagainstzerovdd.dllon bothx64andARM64, requiringApiValidation: All binaries are Universal.
Version Lockstep & Release Pipeline
Section titled “Version Lockstep & Release Pipeline”All releasable manifests must carry the exact same semantic version (enforced by scripts/check-versions.sh):
- Root
Cargo.toml driver-wdk/Cargo.tomldriver-wdk/zerovdd.inf(DriverVer)installer/zerovdd.wxs- Git release tag (
vX.Y.Z)
Verify locally before tagging:
bash scripts/check-versions.sh --tag v0.1.0mise run release:preflightPushing a v*.*.* tag runs .github/workflows/release.yml across verify-versions, build-windows (x64 & ARM64 binaries, driver validation, three-stage SignPath signing, WiX MSI, portable ZIP, CycloneDX SBOMs), build-attestation-cab, and draft-release (SHA256SUMS.txt + draft GitHub Release).