[deep-review] C4: Updatum auto-update path has no visible Authenticode verification
Summary
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.
Where
src/OpenClaw.Tray.WinUI/App.xaml.cs:35-39(Updater configuration)src/OpenClaw.Tray.WinUI/App.xaml.cs:4105-4239(update flow — search forInstallUpdateAsync)- 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/Invokewintrust.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.