You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[deep-review] C4: Updatum auto-update path has no visible Authenticode verification #344
The auto-updater (Updatum package, configured in App.xaml.cs:35-39) polls the latest GitHub Release of shanselman/openclaw-windows-hub, downloads an asset matched by filename pattern (win-x64 / win-arm64), and installs it via AppUpdater.InstallUpdateAsync(asset). Tray-side code has no visible Authenticode / WinVerifyTrust / signature pinning step before handing the binary to the installer.
This is a wormable EoP if a publisher-side account is compromised: every running tray downloads and runs the malicious binary on next update check.
src/OpenClaw.Tray.WinUI/App.xaml.cs:4105-4239 (update flow — search for InstallUpdateAsync)
Asset filename match is the only selection criterion (mentioned in .github/workflows/ci.yml:470-471).
Why it matters
Comparable products invariably verify the downloaded binary:
Squirrel.Windows: requires signed binaries and SHA hash check.
Sparkle (macOS): EdDSA or DSA signed appcasts.
Chrome Update / Edge Update: dual-signed.
Without verification, a single compromise of the release tag (push to the shanselman/openclaw-windows-hub repo, malicious release, or an account takeover) reaches every installed tray within the update interval.
Proposed fix
Before invoking AppUpdater.InstallUpdateAsync(asset):
Call WinVerifyTrust (P/Invoke wintrust.dll) on the downloaded file.
Verify the publisher subject matches the pinned subject (e.g., CN=Scott Hanselman, ...) used by Azure Trusted Signing.
If verification fails, log, surface a toast, and abort the install.
Alternative or supplementary: ship a public-key bundle and verify a signature on the GitHub Release notes (Sparkle-style). Either approach forecloses the wormable path.
Open question: does Updatum perform this check internally? If yes, the tray should still verify defensively. If no, this is a wormable EoP and high-priority.
Severity
Critical — supply-chain attack vector. Same severity as a self-elevating exploit.
Closing this one-off deep-review issue as consolidated, not necessarily fixed. The useful signal is preserved in #246 / #372: updater authenticity now belongs in the MSIX-first signing/update strategy. We will take these one at a time from #372 after verifying against current master instead of keeping the issue list flooded.
Activity
shanselman commentedon May 18, 2026
Closing this one-off deep-review issue as consolidated, not necessarily fixed. The useful signal is preserved in #246 / #372: updater authenticity now belongs in the MSIX-first signing/update strategy. We will take these one at a time from #372 after verifying against current master instead of keeping the issue list flooded.