# Private repos still leak secrets to Gheist, a stolen GitHub token campaign

DevFeed: [Private repos still leak secrets to Gheist, a stolen GitHub token campaign](<https://devfeed.tech/articles/private-repos-still-leak-secrets-to-gheist-a-stolen-github-token-campaign-102042.md>)

Original publisher: [Read original article](<https://www.helpnetsecurity.com/2026/10/27/gheist-github-token-abuse/>)

Author: Mirko Zorz

Published: 2026-10-27T10:58:07Z

Content type: news

Language: en

Sources: [Help Net Security](<https://devfeed.tech/sources/help-net-security.md>)

Topics: [Credential theft](<https://devfeed.tech/topics/credential-theft.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Secrets Management](<https://devfeed.tech/topics/secrets-management.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [personal access token](<https://devfeed.tech/topics/personal-access-token.md>), [Secure token management](<https://devfeed.tech/topics/secure-token-management.md>), [secret rotation](<https://devfeed.tech/topics/secret-rotation.md>), [self-hosted runner](<https://devfeed.tech/topics/self-hosted-runner.md>), [AWS Security Token Service](<https://devfeed.tech/topics/aws-security-token-service.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [api](<https://devfeed.tech/tags/api.md>), [attack](<https://devfeed.tech/tags/attack.md>), [audit-logs](<https://devfeed.tech/tags/audit-logs.md>), [aws](<https://devfeed.tech/tags/aws.md>), [campaign](<https://devfeed.tech/tags/campaign.md>), [cybercrime](<https://devfeed.tech/tags/cybercrime.md>), [cybersecurity](<https://devfeed.tech/tags/cybersecurity.md>), [downloads](<https://devfeed.tech/tags/downloads.md>), [github](<https://devfeed.tech/tags/github.md>), [github-api](<https://devfeed.tech/tags/github-api.md>), [leak](<https://devfeed.tech/tags/leak.md>), [news](<https://devfeed.tech/tags/news.md>), [plants](<https://devfeed.tech/tags/plants.md>), [private](<https://devfeed.tech/tags/private.md>), [repositories](<https://devfeed.tech/tags/repositories.md>), [repository](<https://devfeed.tech/tags/repository.md>), [research](<https://devfeed.tech/tags/research.md>), [secrets](<https://devfeed.tech/tags/secrets.md>), [security](<https://devfeed.tech/tags/security.md>), [threat-intelligence](<https://devfeed.tech/tags/threat-intelligence.md>), [threats](<https://devfeed.tech/tags/threats.md>), [token](<https://devfeed.tech/tags/token.md>), [tool](<https://devfeed.tech/tags/tool.md>), [wiz](<https://devfeed.tech/tags/wiz.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

## AI overview

Gheist uses stolen GitHub tokens to plant workflows across every reachable repository; in private repositories, those workflows encode secrets to evade log masking, then retrieve the logs through GitHub's API and delete the runs. Wiz reports more than 13,500 planted branches across 850+ compromised accounts. GitHub's approval hold for potentially malicious workflow runs applies to public repositories, while the excerpt says private repositories and GitHub Enterprise Server are not covered. One variant also targets self-hosted runners. To investigate, check cloud audit logs for role assumptions tied to `ci-sync-` branches and GitHub audit logs for the `gheist` user agent. Wiz advises rotating accessible repository, organization and environment secrets and revoking tokens that pushed the commits.

## Source excerpt

Wiz Research has recovered more than 13,500 planted branches from 850+ compromised GitHub accounts, the work of a campaign it calls Gheist, after the user agent the tool sends with its GitHub API requests. The tool takes a stolen token, finds every repository that token can open, and plants a workflow in each one. The workflow prints the repository's secrets into a log, and the attacker downloads it. The exposure is in private repositories. A ... More -> The post Private repos still leak secrets to Gheist, a stolen GitHub token campaign appeared first on Help Net Security.