feat(scripts): add verify-msi.ps1 for client-side MSI integrity check#112
Merged
ashishkurmi merged 1 commit intoMay 26, 2026
Merged
Conversation
Standalone PowerShell verifier that confirms a downloaded MSI matches the SHA-256 covered by the release operator's Ed25519 signature (*.sha256.sig sidecar), independent of Windows Authenticode trust. Intended for IT admins on a staging workstation to run once per release before pushing to SCCM/Intune/GPO. The script auto-detects ssh-keygen across PATH and Git-for-Windows fallback locations, exits 0 on success and 1 on tamper/mismatch. Verified end-to-end against v1.11.3 arm64 MSI on Windows: clean MSI exits 0, single-byte flip exits 1.
ashishkurmi
approved these changes
May 26, 2026
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.
Summary
Standalone PowerShell verifier IT admins run on a staging workstation
before pushing an MSI to SCCM / Intune / GPO. It confirms the MSI on
disk matches the SHA-256 covered by the release operator's Ed25519
signature (
*.sha256.sigsidecar already published with each release),independent of Windows Authenticode trust.
The same Ed25519 trust path the loader script uses for
.exeupdatesnow applies to the MSI install vehicle.
Why
MDM deployments (SCCM/Intune/GPO) have no loader. Admins currently have
no native, zero-dep way to verify the downloaded MSI before staging it
to distribution points.
cosign verify-blobworks but needs cosigninstalled;
gh attestation verifyneeds the GH CLI. The new scriptneeds only OpenSSH 8.0+ (built into Windows 10 2004+ / Windows 11 /
Server 2022) and is fully offline once the MSI +
.sha256.sigaredownloaded.
What it does
.sha256.sigbase64 envelope back to an SSH signatureblob.
ssh-keygen -Y verifywith pinned pubkey, identity(
releases@stepsecurity.io), and namespace(
stepsecurity-mdm-checksum).0on match,1on mismatch/tamper,2for missing files,3if ssh-keygen lacks-Y verifysupport.Sidecar path auto-derived from
$Msi.sha256.sig; can be overridden via-Sig. ssh-keygen discovery probes PATH first, then Git-for-Windowsand other known fallback locations.
Test plan
Verified end-to-end on Windows against the v1.11.3 arm64 release:
[OK] Signature VERIFIED, exit 0[FAIL] DO NOT INSTALL, exit 1[FAIL] Signature sidecar not found, exit 2-Sigoverride -> exit 0Crypto path also cross-checked on macOS using
shasum -a 256+ssh-keygen -Y verifydirectly against the same v1.11.3 artifacts(pass and tamper cases both behave as expected).
Follow-ups (not in this PR)
is drafted separately and will be handed to the docs team.
.sha256.sigsidecars. Worth wiring up so UAT builds are alsoverifiable.