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
security: Windows bootstrap installs the AWS CLI MSI and SSM agent unverified as SYSTEM; DCV RPMs install with the GPG import failure swallowed #1598
From the pre-1.0 security audit (spore-host/spore-host#649, 2026-11-11), audit id supply-8. Verified: confirmed, severity low (reviewer said low).
Where:pkg/sporedinstall/windows.go:291 (at origin/main on 2026-11-11)
Evidence
windows.go:291 and cmd/launch_config.go:722 run Invoke-WebRequest -Uri 'https://awscli.amazonaws.com/AWSCLIV2.msi' (unversioned latest) and then msiexec /i $msi /qn, with no sha256 and no Get-AuthenticodeSignature check. launch_config.go:705 downloads AmazonSSMAgentSetup.exe from .../latest/... and runs it with no check. Linux, by contrast, pins the version and sha256 and checks the GPG signature (verify-awscli-pin.sh). cmd/app.go:899 rpm --import https://d1uj6qtbmh3dt5.cloudfront.net/NICE-GPG-KEY ... || true, the tarball is fetched with no sha256 (line 901), then dnf install -y /tmp/dcv/*.rpm (line 905); dnf does not GPG-check local packages by default.
Scenario
If the AWS download origin or CloudFront distribution serves a tampered MSI or tarball, it runs as SYSTEM or root on every Windows or DCV launch. The attacker would need control of the origin, so this is defence-in-depth, but it breaks the stated rule that every artifact the bootstrap installs is pinned.
Verifier
spawn pkg/sporedinstall/windows.go:291 and cmd/launch_config.go:722 run Invoke-WebRequest for the unversioned AWSCLIV2.msi, then msiexec, with no hash or Authenticode check. launch_config.go:705 runs AmazonSSMAgentSetup.exe from latest/ unverified. cmd/app.go:899 swallows rpm --import failures with '|| true', and the DCV tgz is fetched with no sha256 before dnf installs the local RPMs. All of it is fetched over HTTPS from AWS origins, so exploiting it needs control of the origin: defence-in-depth only.
Suggested fix
Pin the AWS CLI MSI version and sha256, or require (Get-AuthenticodeSignature $msi).Status -eq 'Valid' with an Amazon signer subject, and do the same for the SSM setup exe. For DCV, pin the per-arch tgz sha256 next to dcvVersion, and make rpm --import plus rpm -K fail closed.
Activity
Bind spored to name and version; verify Windows and DCV installers (#…
Bind spored to name and version; verify Windows and DCV installers (#…