GhostAction, malicious GitHub workflows that stole 3,325 CI secrets
Hijacked GitHub accounts added workflows that stole CI secrets.
Are you affected?
The free scanner that answers this opens soon. Until then, the steps below work by hand.
What happened
Injected GitHub workflows stole 3,325 CI secrets. GitGuardian says attackers used compromised GitHub accounts to push a workflow named "Github Actions Security" to 817 repositories of 327 users. Each workflow, tailored to the secret names in the repository's own workflows, sent those secrets by HTTP POST to an attacker server. The first malicious commit, on the FastUUID project, was pushed on 2025-09-02. DockerHub credentials, GitHub tokens and npm tokens were the most common; GitGuardian also names PyPI tokens, Cloudflare API tokens, AWS access keys and database credentials. GitGuardian alerted GitHub, npm and PyPI on 2025-09-05, and the exfiltration hostname stopped resolving that afternoon. PyPI invalidated the affected PyPI tokens and says none was used on PyPI; GitGuardian says no malicious package release had been seen at disclosure and that 24 packages (9 npm, 15 PyPI) remained at risk.
- Exposure starts
- 2025-09-02
- Exposure ends
- 2025-09-05
- Confidence
- medium
- Scope
- every secret referenced by the injected workflow in an affected repository, including DockerHub credentials, PyPI tokens and database credentials
What to do, in this order
- Look for .github/workflows/github_actions_security.yml or a commit titled "Add Github Actions Security workflow", and remove it
GitGuardian's indicators; the workflow runs on push or manual dispatch and sends secrets again on the next run.
- GitHub tokens and npm tokens, then check for unexpected releases
GitGuardian names GitHub and npm tokens among the most common stolen types and says the npm tokens create ongoing supply chain risk.
github_pat, npm_token
- DockerHub credentials and PyPI tokens; move PyPI publishing to Trusted Publishers
DockerHub credentials were the most common stolen type; PyPI invalidated the stolen tokens and recommends short-lived Trusted Publisher tokens.
anything else stored there
- Cloudflare API tokens, AWS access keys, database credentials and every other secret the workflow referenced
GitGuardian names these types and says to revoke and rotate any secret that may have been exposed.
cloudflare_api_token, aws_access_key_id, aws_secret_access_key, anything else stored there
- Audit who has write access and require review for workflow changes
GitGuardian's recommendation; the attack came through accounts with push rights.
Notes
- The window ends when the original exfiltration hostname stopped resolving (2025-09-05). GitGuardian also lists a second host, carte-avantage.com, on the same IP, and reports a later wave of about 500 commits; its page dates that update 2026-09-15 and the wave "September 9th", so the year of that wave is TODO and it is not counted here.
- DockerHub and PyPI tokens have no credential type in the CLI vocabulary; they are covered by "*". PyPI invalidated the stolen PyPI tokens itself.
- GitGuardian opened issues in 573 of the affected repositories; 100 had already reverted the malicious change.
How to tell if you’re affected
- A workflow named "Github Actions Security" at .github/workflows/github_actions_security.yml
- A commit titled "Add Github Actions Security workflow"
- Outbound HTTP POST from a runner to bold-dhawan.45-139-104-115.plesk.page, objective-hopper.45-139-104-115.plesk.page or carte-avantage.com
- Connections to IP 45.139.104.115
Sources
- GitGuardian: The GhostAction campaign, 3,325 secrets stolen through compromised GitHub workflows
- PyPI blog: Token exfiltration campaign via GitHub Actions workflows
- BleepingComputer: PyPI invalidates tokens stolen in GhostAction supply chain attack
Rotating the keys
Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.
By hand, free: the steps above.