# Mutable release asset replacement

Artifacts or scripts fetched from mutable URLs without an out-of-band hash or signature pin

_Area: Software supply chain and CI/CD. Seen in 2 disclosed reports; latest 2026-11-16. Updated 2026-12-01._

## How it works
A consumer fetches a release binary, hosted script, or archive by URL and trusts it because the URL looks official. The URL is mutable: anyone with write access to the hosting account, or who can abuse the vendor's own account flow, can replace the bytes at the same path. Consumers that verify nothing, or verify against a checksum file served from the same mutable source, accept attacker bytes as genuine. The broken assumption is "same URL means same content."

## Where it shows up
- Install scripts (`install.sh`, `curl | sh`) that download a binary and never check a hash or signature.
- `checksums.txt` / `SHA256SUMS` hosted next to the artifact it describes.
- GitHub releases with immutability disabled, or assets replaced on old tags at unchanged URLs.
- Third-party scripts (experimentation, personalization, analytics) loaded from a vendor CDN into first-party pages.
- Shared public archives (torrent repositories, mirrors) that many downstream sites copy from.
- Corroborating signal: build metadata that does not match the release pipeline (pseudo-versions, missing version ldflags).

## How to review
Check the exact property: the consumer verifies artifact integrity against a value obtained out-of-band, not from the same host.
- Does CI pin a SHA-256 or signature committed in the consuming repo, or fetched over a separate trusted channel? A checksum file next to the binary fails this.
- Is release immutability enabled, and are old tags' assets protected?
- For hosted scripts, is there a pinned version/SRI, and can the vendor account flow write the snippet field?
- For binaries, does `go version -m` (or equivalent) show a real release version and the pipeline's version ldflag, not a `+dirty` pseudo-version from a non-release commit? Treat this as corroboration, not the primary control.

## How finders spotted it
- A customer's CI pinned the tarball SHA-256; the pinned-hash job failed, and `go version -m` revealed a pseudo-version built from a non-release commit without the version ldflag, uploaded by a non-member [E3](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-ovhcloud-cli-github-release-swap-glassworm.md).
- urlscan.io captured a payload domain on major sites; counting infected sites and tracing pages to `cdn.optimizely.com` isolated the third-party host, then static review of `track.js` confirmed the loader chain [E2](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-optimjack-optimizely-hosted-scripts-crypto-clipper-card-skimmer.md).
- Threat hunting found all victims shared torrent trackers; investigating the distribution mechanism showed the shared torrent-file repository, not individual trackers, was the compromised source [E1](https://bugbountylibrary.com/r/blog%3Asecurelist-com-moviereaper-malware-torrent-odyssey-solana-121344.md).

## Variants seen
- GitHub release asset swap on old tags, checksums replaced last to match [E3](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-ovhcloud-cli-github-release-swap-glassworm.md).
- Vendor account-flow abuse injecting code into a CDN-served snippet field [E2](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-optimjack-optimizely-hosted-scripts-crypto-clipper-card-skimmer.md).
- Compromised shared torrent archive poisoning every mirroring tracker [E1](https://bugbountylibrary.com/r/blog%3Asecurelist-com-moviereaper-malware-torrent-odyssey-solana-121344.md).

## Why fixes fail
Replacing `checksums.txt` alongside the swapped binaries defeats self-hosted verification; only externally pinned hashes catch it [E3](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-ovhcloud-cli-github-release-swap-glassworm.md). The shipped `install.sh` performed no checksum verification at all, so even a correct checksum file would not have been consulted [E3](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-ovhcloud-cli-github-release-swap-glassworm.md).

## Impact and severity
High: credential stealer exfiltrating cloud, SSH and AI-agent secrets during a 94-minute window [E3](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-ovhcloud-cli-github-release-swap-glassworm.md); crypto clipper and card skimmer across 186 confirmed sites including CNN, BBC and GitLab [E2](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-optimjack-optimizely-hosted-scripts-crypto-clipper-card-skimmer.md); hundreds of Windows victims with UAC bypass, persistence and a modular implant [E1](https://bugbountylibrary.com/r/blog%3Asecurelist-com-moviereaper-malware-torrent-odyssey-solana-121344.md). Impact rose with reach (shared host, shared archive) and with chaining to persistent or device-level compromise.

## Seen in real software
Open-source packages and projects, and products, where this pattern was found. If the target runs one, compare the version it runs with the fix.
- **Optimizely** (cdn.optimizely.com/js/<projectID>.js experiment scripts) (version not stated): OPTIMJACK: Optimizely-Hosted Scripts Loaded a Crypto Clipper and Card Skimmer on 186 Confirmed Sites. Report: https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-optimjack-optimizely-hosted-scripts-crypto-clipper-card-skimmer.md
- **OVHcloud CLI** v0.11.0 through v0.15.0, fixed in v0.16.0: OVHcloud CLI Compromised via GitHub Release Swap: Detonating the Real GlassWorm Loader and What We Found. Report: https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-ovhcloud-cli-github-release-swap-glassworm.md

## Evidence
- E1: https://bugbountylibrary.com/r/blog%3Asecurelist-com-moviereaper-malware-torrent-odyssey-solana-121344.md
- E2: https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-optimjack-optimizely-hosted-scripts-crypto-clipper-card-skimmer.md
- E3: https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-ovhcloud-cli-github-release-swap-glassworm.md
