rotateit

All incidents

Gheist, stolen GitHub tokens used to dump repository secrets through planted workflows

Disclosed Oct 25, 2026 · updated Oct 30, 2026 · high · Active

Stolen GitHub tokens were used to dump repository secrets.

Are you affected?

The free scanner that answers this opens soon. Until then, the steps below work by hand.

What happened

Stolen GitHub tokens were used to dump repository secrets. Wiz Research says the Gheist campaign commits a workflow, sync-check.yml, on a new ci-sync- branch in every repository a stolen token can reach. The workflow prints the repository's secrets base32-encoded so GitHub's log masking misses them, the tool downloads the run log through the API and deletes the run seconds later. Wiz recovered more than 13,500 planted branches from more than 850 compromised accounts, from personal projects to enterprise private repositories, and traced the tokens to infostealer logs and earlier supply-chain compromises such as the March Trivy compromise. In enterprises the operator cycled several users' tokens, cloned private repositories and used the organization's cloud credentials to enumerate AWS Secrets Manager. A later job on self-hosted runners searches for token formats, private keys, .env files, Terraform state and shell history and collects instance-role, runner and Kubernetes credentials. Wiz began tracking it on 2026-09-15 and says it was ongoing on 2026-10-24.

Exposure starts
2026-09-15
Exposure ends
Not known yet (Wiz says the campaign was still ongoing on 2026-10-24)
Confidence
low
Scope
every secret reachable from a repository a stolen token could write to, including environment-scoped secrets, and every credential on a self-hosted runner that ran a ci-sync branch

What to do, in this order

  1. Treat any self-hosted runner that ran a ci-sync branch as compromised; isolate it and rebuild it before reusing it

    Wiz says to treat those hosts as compromised; the self-hosted job mounts the host root filesystem through the Docker socket and leaves .gdmp_ helper files.

  2. Revoke the GitHub tokens that pushed the ci-sync commits, and check their owners' devices for infostealers

    Wiz's response steps; the tokens came from infostealer logs, so a token issued on the same device can be stolen again.

  3. Every secret reachable from the affected repositories, including environment-scoped secrets and cloud credentials in the same organization

    Wiz says to rotate every secret reachable from affected repositories; the workflow dumps them all and the operator used cloud credentials to enumerate AWS Secrets Manager.

    anything else stored there

  4. Require reviewers on production environments and scope cloud OIDC trust to protected branches or environments

    Wiz's hardening steps; Wiz says to hunt for cloud role assumptions whose OIDC subject includes a ci-sync- branch.

Notes

  • Wiz does not say which GitHub token type was stolen; it says personal access tokens should be replaced and recommends GitHub Apps or short-lived fine-grained tokens.
  • The start date is when Wiz began tracking the campaign; Wiz does not give an earlier first use.
  • Wiz says 57 accounts from Gheist's first phase were also Megalodon victims in May (nx-console-megalodon-2026-05), and that about two-thirds of implicated accounts were no longer available on GitHub by 2026-10-24.
  • Wiz says not to approve held sync-check runs; GitHub has held potentially malicious workflow runs in public repositories for approval since 2026-07-28.

How to tell if you’re affected

  • A branch matching ci-sync- plus six lowercase letters or digits
  • A commit "ci: sync config" adding only .github/workflows/sync-check.yml
  • Workflow runs on ci-sync- branches deleted within a minute (audit log)
  • API requests with the user agent gheist
  • .gdmp_pat, .gdmp_patg or .gdmp_sweep files on a self-hosted runner

Sources

Rotating the keys

Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.

One email when it opens. Stored: your email, whether you confirmed, and when you signed up. We send a confirmation link first.

By hand, free: the steps above.