Stolen GitHub Tokens Fuel Silent Secret-Stealing Campaign
A campaign tracked as Gheist is using stolen GitHub tokens to steal secrets from private repositories. Attackers plant malicious workflows that print secrets directly into GitHub Actions logs.

The Bottom Line
A campaign tracked as Gheist is using stolen GitHub tokens to steal secrets from private repositories. Attackers plant malicious workflows that print secrets directly into GitHub Actions logs. They then download those logs and delete the workflow runs to cover their tracks.
Cloud security company Wiz disclosed the activity after observing successful attacks against private repositories. The campaign has also compromised GitHub Enterprise environments, according to Wiz's analysis.
This is not a new GitHub vulnerability. It is an abuse of legitimate GitHub Actions functionality, executed with credentials attackers already stole.
What Happened
Wiz identified an automated attack pattern it calls Gheist. The operation relies on stolen GitHub tokens to gain write access to target repositories. Once inside, attackers do not need to exploit a software flaw.
Instead, they plant a workflow file designed to run inside GitHub Actions. That workflow executes commands that print the repository's secrets into the build logs. GitHub Actions logs are meant for debugging CI and CD pipelines, not for storing sensitive values in plain text.
Secrets like API keys, deployment credentials, and tokens stored in a repository's configuration get exposed in log output once the workflow runs. The attackers then download the completed log files before GitHub or the repository owner can review them. After exfiltrating the data, they delete the workflow run to erase evidence of the intrusion.
Wiz found this technique succeeding against private repositories, which are supposed to restrict visibility to authorized collaborators. The campaign also reached GitHub Enterprise environments, the platform tier used by large organizations for internal source control and CI and CD automation.
The source material references a GitHub safeguard designed to pause certain activity, though full details of that control were not available in the disclosure. Wiz's writeup indicates GitHub has some protective mechanism relevant to this attack path, but the specifics of how it functions or where it falls short were not captured in the available reporting.
Who Is Affected
Any organization using GitHub Actions for CI and CD pipelines is a potential target, provided attackers obtain a valid token. Wiz's analysis specifically names private repositories and GitHub Enterprise environments as confirmed targets. Enterprise customers typically run GitHub for internal source code, build automation, and secrets management at scale, which raises the stakes if a token is compromised.
The attack does not require a flaw in GitHub's platform. It requires a stolen token with sufficient permissions to create or modify workflows in a target repository. That makes any organization with weak token hygiene, overly broad token scopes, or exposed credentials a candidate for compromise, regardless of industry or size.
By the Numbers
The available source material does not include a CVSS score, a count of affected organizations, or a dollar figure tied to this campaign. Wiz's disclosure confirms successful attacks against private repositories and GitHub Enterprise environments, but does not quantify the scale in the material reviewed.
Why It Matters
This campaign is a credential exposure problem wearing the mask of a platform exploit. Attackers did not need a zero-day. They needed a stolen token and a basic understanding of how GitHub Actions logs work.
That distinction matters for defenders. Patching software will not stop this technique. Only tighter control over token issuance, scope, and rotation will reduce the attack surface.
The use of GitHub Actions logs as an exfiltration channel also highlights a recurring blind spot in CI and CD security. Build logs are often treated as low-sensitivity operational data. Attackers are exploiting that assumption to move secrets out of an environment without triggering traditional data-loss alerts.
Organizations running GitHub Enterprise for internal development should treat this as a reminder that CI and CD pipelines are now a primary target for credential theft and secrets exfiltration, not just a convenience layer for automation.
What To Do Now
First, audit all GitHub tokens tied to your organization and revoke any that are unused, overly permissive, or unaccounted for. Second, rotate every secret currently referenced in GitHub Actions workflows, including API keys, deployment credentials, and service account tokens. Third, review GitHub Actions logs and workflow run history for unexplained deletions or unfamiliar workflow files added outside your normal change process. Fourth, restrict which users and tokens can create or modify workflow files in private repositories and in your GitHub Enterprise environment. Fifth, enable monitoring for anomalous token usage, including logins or API calls from unexpected locations or at unusual times. Sixth, move sensitive values out of plain environment variables where possible and adopt secrets management tooling that masks values in log output by default. Finally, track Wiz's ongoing research for additional indicators of compromise tied to the Gheist campaign as more technical details become available.