Skip to content

[deep-review] C4: Updatum auto-update path has no visible Authenticode verification #344

Closed

Description

@codemonkeychris

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 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):

  1. Call WinVerifyTrust (P/Invoke wintrust.dll) on the downloaded file.
  2. Verify the publisher subject matches the pinned subject (e.g., CN=Scott Hanselman, ...) used by Azure Trusted Signing.
  3. 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.

Activity

  1. linked a pull request that will close this issueVerify updater signatures before install #392on May 14, 2026
  2. shanselman commented on May 18, 2026

    @shanselman
    Collaborator

    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.

  3. locked as resolved and limited conversation to collaborators on May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions