Gheist uses stolen GitHub tokens to raid private repositories, plant rogue workflows, print secrets into Actions logs, and disappear before most teams notice.

If your business runs any part of its software development or IT automation on GitHub, this campaign is a direct threat to your credentials, API keys, and internal configurations.

Key takeaways

  • Gheist uses stolen GitHub tokens to inject malicious workflows that force repositories to print their stored secrets into Actions logs, which attackers download and then delete to cover their tracks.
  • Private repositories and GitHub Enterprise environments have both been compromised, meaning a paid or business tier account is not protected by default.
  • GitHub has a safeguard that pauses certain workflow runs, but attackers operating with a valid stolen token can bypass that friction point entirely, making passive reliance on platform controls insufficient.
  • SMBs that store API keys, database credentials, cloud access tokens, or other secrets inside GitHub repositories are at direct risk of credential theft and downstream breaches.

A threat actor tracked as Gheist is running an automated campaign against GitHub repositories. Using stolen personal access tokens, the attackers inject malicious GitHub Actions workflows into repositories they can reach. Those workflows force the repository to print its stored secrets directly into the Actions log output.

Once the secrets appear in the logs, the attackers download them and then delete the workflow runs to remove evidence. The whole process is fast, automated, and difficult to catch without active monitoring in place.

What makes this campaign especially serious is where it has succeeded. Research by cloud security company Wiz confirmed that the attacks have worked against private repositories and against GitHub Enterprise environments. Private and enterprise accounts are often treated as inherently safer, but access controls alone are not a complete defense.

GitHub does have a safeguard that pauses certain workflow runs, particularly those triggered from forks or first time contributors. That control applies to specific triggering conditions. When an attacker already holds a valid token with sufficient permissions, they can trigger workflows without hitting those friction points at all. Stolen tokens are the key that bypasses the gate.

For SMB owners, the practical risk is straightforward. Any sensitive value stored inside a GitHub repository can be exposed. That includes API keys for third party services, database connection strings, cloud provider credentials such as AWS or Azure access keys, and webhook tokens.

Many small and mid sized businesses use GitHub to manage internal tools, automate infrastructure tasks, or collaborate on custom software. The practice is common and not inherently unsafe. The danger lies in how secrets are stored and who can interact with repository workflows.

GitHub Actions has become a central part of modern development pipelines. It runs automated tests, deploys code, and handles repetitive tasks. Because Actions workflows can access repository secrets by design, any attacker who can write or modify a workflow file inherits that access. Gheist is exploiting exactly that design characteristic.

Automation is also what makes the damage scale so quickly. A human attacker probing one repository at a time is slow. An automated tool scanning for valid tokens and injecting workflows across many repositories can harvest credentials before any alert fires. Teams with limited IT staff or no dedicated security monitoring are particularly exposed to that speed advantage.

Token hygiene is one of the most overlooked areas in small business security. Personal access tokens are often created for a specific task, granted broad permissions for convenience, and then never rotated or audited again. A token stolen through phishing, credential stuffing, or a compromised device gives an attacker access to every repository it was scoped to reach.

IT managers should treat this campaign as a prompt to audit GitHub access today. That means reviewing which personal access tokens exist and what permissions they carry, checking which team members have write access to workflow files, and confirming that secrets are stored using GitHub’s built in encrypted secrets feature rather than hardcoded in files.

Beyond auditing, the response posture matters. GitHub provides audit logs for enterprise accounts that capture workflow run events, token usage, and access activity. Failing to review those logs, or lacking tooling to alert on anomalous workflow runs, means relying on luck rather than detection.

For businesses on GitHub Enterprise, it is worth verifying with your IT provider or internal team that runner permissions follow the principle of least privilege. Workflows should only have access to the secrets they specifically need. A workflow that deploys a marketing site has no business holding credentials for financial systems.

The broader lesson applies well beyond GitHub. Automated pipelines, CI/CD tools, and cloud infrastructure platforms all share the same fundamental vulnerability: they store and use credentials to do their jobs, and a foothold in those systems means inheriting that access. Securing the tokens and keys that connect your systems matters as much as securing the systems themselves.

For SMBs without a dedicated security team, the answer is not to abandon GitHub or automation tools. Working with an MSSP or security aware IT partner to establish continuous monitoring, enforce token rotation policies, and respond quickly to anomalous activity is the practical path forward. The Gheist campaign is a clear reminder that development infrastructure is attack surface, and it deserves the same security discipline you apply to your endpoints and network perimeter.

TeckPath Perspective: TeckPath Perspective: *Most SMBs we work with have never audited their GitHub personal access tokens or reviewed who can modify workflow files, and that gap is exactly what campaigns like Gheist are built to exploit.*

Development pipelines are part of your attack surface, and securing them requires the same discipline you apply to your endpoints and your network.

Need help with Gheist Uses Stolen GitHub Tokens to Steal Private Repository Secrets via Actions Logs?

TeckPath helps Calgary, Toronto, and Canadian businesses manage, secure, and modernize IT — with 24/7 support and SOC 2 Type II practices.