BREACH WATCH BRIEF High 🔑 Breach

Stolen GitHub Tokens Enable Gheist Campaign to Exfiltrate Secrets from Private Repositories

Gheist leveraged compromised GitHub personal access tokens to create hidden workflow branches in private repositories, printing and downloading production credentials. The breach underscores the importance of strict token governance and CI/CD approval controls for audit readiness.

SeverityHigh
Type🔑 Breach
ConfidenceHigh
ReportedOct 27, 2026
Technology & SaaS Technology SaaS platforms (GitHub users) Enterprises that store production secrets in private repositories Stolen Credentials Data Exfiltration

What happened

Wiz Research uncovered a campaign called Gheist that abuses stolen GitHub personal access tokens. The tool enumerates every repository the token can access, creates a hidden branch, and pushes a malicious GitHub Actions workflow. The workflow scrambles each secret, bypasses GitHub’s log‑masking, prints the secrets to the run log, and downloads the log via the API before deleting the branch. Over 13,500 malicious branches were planted across 850+ compromised accounts, exposing environment‑scoped credentials and, in a later variant, targeting self‑hosted runners to harvest additional tokens. GitHub’s safeguard that holds workflow runs for public repos does not apply to private repositories or GitHub Enterprise Server, allowing the exfiltration to proceed unchecked.

Why it matters for trust and compliance

  • The incident demonstrates a control‑objective failure in credential management and CI/CD workflow approval, highlighting the need for continuous monitoring and strict token hygiene.
  • Implement continuous monitoring of token usage and workflow approvals to satisfy access‑control objectives across frameworks.
  • Collect audit‑log evidence of branch creation and workflow execution for audit readiness and incident response.

Who is affected

Technology SaaS platforms (GitHub users) Enterprises that store production secrets in private repositories

Recommended actions

  1. Adopt fine‑grained, short‑lived personal access tokens and enforce regular rotation.
  2. Require manual approval for all new GitHub Actions workflows, especially in private repos.
  3. Enable GitHub secret‑scanning and enforce branch‑protection policies.
  4. Monitor audit logs for anomalous branch creation and workflow runs.
  5. Restrict Docker and file‑system access on self‑hosted runners.

Regulations library

Every US state privacy law, on one map

24 states have a comprehensive privacy law in the library, alongside the EU, UK, US federal and global laws: 102 in all, each explained in plain words with its sources. Select a state to see what applies there.

  • In force
  • Coming into force
  • Sector laws
AK ME VT NH WA ID MT ND MN IL WI MI NY RI MA OR NV WY SD IA IN OH PA NJ CT CA UT CO NE MO KY WV VA MD DE AZ NM KS AR TN NC SC DC OK LA MS AL GA HI TX FL

Get the Breach Digest

The incidents that matter for your vendors and your data, analysed for practitioners, in one email.