Gheist Uses Stolen GitHub Tokens to Steal Private Repository Secrets via Actions Logs
AI-summarised brief · reviewed before publication
An automated campaign dubbed “Gheist” has been using stolen GitHub tokens to create malicious workflow files in private repositories and GitHub Enterprise environments. The tool opens a new branch named ci-sync‑, commits a workflow that prints every readable secret to the Actions log, downloads the log via the API, and then deletes the run. Wiz’s investigation, ongoing since September 15, identified over 13,500 such branches across more than 850 compromised accounts, ranging from personal projects to enterprise repos. GitHub’s safeguard that pauses suspicious runs only protects public repositories, leaving private and Enterprise Server instances exposed. The attack also leverages compromised AWS credentials to enumerate Secrets Manager, and a recent variant targets self‑hosted runners. As of October 24 the campaign remains active, with many compromised accounts already removed from GitHub.
💡 Why It Matters
- · By exfiltrating secrets directly through GitHub’s own infrastructure, the attack bypasses traditional network defenses, giving attackers unfettered access to production credentials.