Cloud security company Wiz has been tracking an automated campaign, which it calls Gheist, that abuses stolen GitHub tokens to steal the secrets stored in repositories. Wiz has followed the activity since September 15 and reports recovering more than 13,500 planted branches from over 850 compromised accounts.
For each repository a token can reach, the tool creates a branch named ci-sync- plus six random characters and commits a workflow file called sync-check.yml. When it runs, the workflow prints the repository’s secrets into the GitHub Actions log in base32 encoding, which slips past GitHub’s usual log masking. The attackers download the log through GitHub’s API and delete the run seconds later, so there is no outside server to block.
A GitHub safeguard that holds suspicious runs for approval stopped every public-repository run Wiz checked, but it does not cover private repositories or GitHub Enterprise Server, where the attacks succeeded. Wiz advises searching for ci-sync- branches and the gheist user agent in audit logs, rotating every secret an affected repository could read, and revoking the token that pushed the branch.
Why it matters for your business
If your team keeps cloud keys or passwords in GitHub, audit who holds tokens, prefer short-lived credentials, and check private repositories for these signs now.
Source: The Hacker News
