# GhostAction: malicious GitHub Actions workflows stole 3,325 CI secrets from 817 repositories

Source: https://botpassword.com/incidents/2025-09-ghostaction-github-workflows
Disclosed: 2025-09-05 · Type: Token theft · Status: Contained · Updated: 2026-10-25

In September 2025 GitGuardian found that attackers had pushed commits titled "Add Github Actions Security workflow" to 817 repositories belonging to 327 GitHub users. Each workflow sent the repository's CI secrets to an attacker-controlled server, 3,325 secrets in total, most often Docker Hub credentials, GitHub tokens and npm tokens, plus PyPI tokens, AWS keys and Cloudflare credentials. If such a workflow ran in your repository, revoke every secret it names and find out how the attacker got push access.

## What was exposed

GitHub Actions repository and organization secrets. The attacker first read each repository's legitimate workflows to learn the names of its secrets, then added a workflow that posted exactly those secrets over HTTP to a remote endpoint. GitGuardian counted 3,325 secrets: Docker Hub credentials, GitHub tokens and npm tokens were the most common, followed by PyPI tokens, Cloudflare credentials and AWS keys. GitGuardian says developers reported attackers actively using stolen AWS keys and database credentials. It estimated that 24 packages (9 on npm, 15 on PyPI) were at immediate risk of malicious releases; it found no malicious FastUUID release.

## Who is affected

You are affected if any repository you own or can push to received a commit titled "Add Github Actions Security workflow", or any new workflow file you did not write, on or after 2 September 2025, and that workflow ran. Search your organization's audit log and repository histories for that commit message and for unexpected `.github/workflows/` files. GitGuardian opened issues in 573 of the affected repositories, so also check your repository issues. The commits were pushed with accounts that had write access, so also treat the pushing account's GitHub credentials as compromised.

## What to do

1. Delete the malicious workflow and revert the commit.
2. Revoke and reissue every secret the workflow referenced, starting with Docker Hub, GitHub, npm and PyPI tokens, AWS keys and Cloudflare tokens, then check each provider's logs for use of the old values.
3. Find the account that pushed the commit and reset its password, 2FA and personal access tokens; review collaborators and deploy keys.
4. Require reviews for changes under `.github/workflows/` with branch protection or rulesets, and use environment secrets with required reviewers so a new workflow cannot read them.
5. Check registries for releases of your packages that you did not publish.

## Keys to rotate

- [GitHub](https://botpassword.com/keys/github)
- [Docker Hub](https://botpassword.com/keys/docker-hub)
- [npm](https://botpassword.com/keys/npm)
- [PyPI](https://botpassword.com/keys/pypi)
- [AWS (IAM access keys)](https://botpassword.com/keys/aws)
- [Cloudflare (API tokens and Global API Key)](https://botpassword.com/keys/cloudflare)

## Timeline

- 2025-09-02: The first malicious commit is pushed, according to GitGuardian. ([source](https://blog.gitguardian.com/ghostaction-campaign-3-325-secrets-stolen/))
- 2025-09-05: GitGuardian discovers the campaign, starting from the FastUUID project, whose PyPI token was taken. It notifies GitHub, npm and PyPI and opens issues in affected repositories. ([source](https://blog.gitguardian.com/ghostaction-campaign-3-325-secrets-stolen/))
- 2025-09-09: GitGuardian reports a second wave that compromised 14 more repositories. ([source](https://blog.gitguardian.com/ghostaction-campaign-3-325-secrets-stolen/))

## Indicators

- Commits titled "Add Github Actions Security workflow" adding a new workflow file.
- A workflow step that sends secrets with an HTTP POST to an external endpoint.

## Sources

- https://blog.gitguardian.com/ghostaction-campaign-3-325-secrets-stolen/
