# OVHcloud CLI Compromised via GitHub Release Swap: Detonating the Real GlassWorm Loader and What We Found

Attacker swapped binaries on five OVHcloud CLI GitHub releases for 94 minutes, shipping a credential stealer that exfiltrated cloud, SSH and AI-agent secrets.

- Payout: Real-world hack
- Severity: critical
- Program: OVHcloud CLI
- Analysis by: StepSecurity
- Disclosed: 2026-11-15
- Write-up quality: 8/10
- Original: https://www.stepsecurity.io/blog/ovhcloud-cli-github-release-swap-glassworm
- Library page: https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-ovhcloud-cli-github-release-swap-glassworm
- Tags: area:oss domain:oss impact:data-leak impact:integrity kind:incident platform:threat-intel sev:critical tech:github-actions tech:go tech:solana technique:reverse-engineering technique:source-review vuln:secrets-leak

**Target:** GitHub release assets of ovh/ovhcloud-cli (Go CLI binaries)
**Root cause:** GitHub release immutability was not enabled, so any account with write access could replace assets on months-old releases at unchanged URLs; checksums.txt was replaced last to match the swapped binaries.
**Steps:**
1. Attacker gains write access to contributor account HassenBF (via malicious VS Code extension color-picker-universal 2.8.91 installed 2025-10-20).
2. Build CLI from main commit `5ead8ef` with a plain `go build -ldflags="-s -w"` (no GoReleaser `-X .../internal/version.Version` ldflag), embedding a credential stealer.
3. Upload over existing releases v0.11.0–v0.15.0 newest-first (v0.15.0 at 12:47, its checksums.txt at 12:57), then v0.14.0 and v0.13.0 through 13:12.
4. Victim runs `install.sh`, which fetches `releases/latest`, parses `tag_name: v0.15.0`, downloads `ovhcloud-cli_Linux_x86_64.tar.gz` with no checksum verification.
5. First run `ovhcloud version` prints `undefined` and commit `5ead8ef9b43d...`; stealer collects 18 secret paths, stages tar.gz in `/tmp/envchecker-XXXX/`, POSTs base64 archive to `https://45.32.148.174/upload` as Solana-RPC-shaped JSON.
**How found:** A customer's CI pinned the SHA-256 of the Linux arm64 tarball; the pinned-hash job failed, and `go version -m` showed a pseudo-version `v0.15.1-0.20261013083505-5ead8ef9b43d+dirty` built from a non-release main commit without the release pipeline's version ldflag, and the uploader was not a public org member.
**Exploitation:** Stolen keys used to upload locally built malicious binaries over five existing releases; install.sh (no checksum check) served them to ~250 downloaders; on first run the binary harvested OVH/AWS/GCP/Azure/Docker/Kubernetes/Terraform/NPM/SSH/.netrc/.gitconfig and AI-agent credential stores, staged in never-deleted /tmp/envchecker-* dirs, and exfiltrated a base64 tar.gz to 45.32.148.174 within ~4 seconds of install.
**Escalation:** Loader chain: 181 bytes visible JS with invisible variation-selector-encoded AES-256-CBC wrapper → stage 2 polls nine Solana RPCs for dead-drop wallet memos carrying base64 C2 URL → stage 3 fetched with AES key in `ivbase64`/`secretkey` headers, executed in Node `vm` with `require` passed in (sandbox does not constrain module loading) → RCE.
**Insight:** Pin release artifact hashes externally in CI — the repo's own checksums.txt is attacker-controlled and install.sh never verifies it; and `go version -m` pseudo-version + missing `-X version` ldflag is a reliable tell of a locally rebuilt binary swapped onto a release.

## Proof of concept (copied exactly from the original report)

**ovhcloud version command revealing malicious build**

```
$ ovhcloud version
┌───────────┬──────────────────────────────────────────┬──────────────────────┐
│ version │ last_commit │ last_commit_time │
├───────────┼──────────────────────────────────────────┼──────────────────────┤
│ undefined │ 5ead8ef9b43d354dfb5caadff803b11afc8c5c58 │ 2026-10-13T08:35:05Z │
└───────────┴──────────────────────────────────────────┴──────────────────────┘
```

**Detection commands for affected hosts**

```
ovhcloud version # "undefined" + commit 5ead8ef... = malicious
go version -m $(which ovhcloud) | head -5
ls -d /tmp/envchecker-* # stealer staging dirs
```

**Rebuild with attacker flags reproducing pseudo-version**

```
go version -m showed a pseudo-version (v0.15.1-0.20261013083505-5ead8ef9b43d+dirty) built from commit 5ead8ef (a main-branch commit from October 13, never a release tag) with -ldflags="-s -w" and without GoReleaser's -X .../internal/version.Version ldflag
```

