Gheist Uses Stolen GitHub Tokens to Steal Private Repository Secrets via Actions Logs
What Happened — An automated threat campaign identified as “Gheist” has been abusing stolen GitHub personal access tokens (PATs) to create malicious GitHub Actions workflows. The malicious workflows echo the contents of a repository’s secret store into the Actions run logs, which the attackers then retrieve via the GitHub API before deleting the run to erase evidence. Wiz’s cloud‑security research team first observed the activity in early October 2026 and traced it to dozens of compromised PATs that had been harvested from prior credential‑stuffing attacks and from leaked credential dumps. The campaign has successfully targeted private repositories hosted on both GitHub.com and GitHub Enterprise Cloud/Server environments.
Why It Matters for Trust & Control Assurance — The incident demonstrates a failure to enforce strict token lifecycle management and to monitor privileged‑access activity, a core control‑area for identity and access assurance.
Who Is Affected — Software development firms, cloud‑service providers, and any organization that relies on GitHub (including Enterprise customers) for source‑code management and CI/CD pipelines.
Recommended Actions
- Rotate all PATs immediately and enforce short expiration periods.
- Apply least‑privilege scopes to tokens; avoid granting
repoorworkflowscopes unless absolutely required. - Enable GitHub’s secret scanning and configure alerts for any secret exposure in Actions logs.
- Implement continuous monitoring of Actions run logs for anomalous patterns (e.g., unexpected workflow creations, rapid log downloads, or immediate run deletions).
- Adopt a token‑management policy that includes automated revocation of tokens after inactivity or suspicious use.
- Review and harden GitHub Enterprise audit log retention to retain evidence beyond the default period.
Technical Notes
- Attack vector: Stolen PATs used to invoke the GitHub Actions API; malicious workflow files (
.github/workflows/*.yml) added to target repositories. - Data exfiltrated: Cloud provider API keys, database credentials, internal service tokens, and other environment secrets stored in GitHub Secrets.
- Scope: Wiz identified over 1,200 compromised tokens, affecting roughly 300 private repositories; the exact number of stolen secrets is still being quantified.
- Detection: Unusual spikes in Actions workflow creation and immediate deletion of runs triggered GitHub’s internal anomaly detection, prompting the safeguard that now pauses token usage after suspicious activity.
- Response: GitHub issued a security advisory recommending token rotation and introduced a safeguard that temporarily disables tokens exhibiting abnormal behavior.
Source: The Hacker News – https://thehackernews.com/2026/10/gheist-uses-stolen-github-tokens-to.html