When a Stolen Developer Token Reaches Your Pipeline: Lessons from the wfx-loot CI Secret Stealer
A November campaign used 4,837 compromised GitHub accounts to harvest CI secrets and plant cloud backdoors. Here is what to check now, and how OIDC, environment-gated secrets and outside detection make the next stolen token far less valuable.

Between 10 and 11 November 2026, an attacker used 4,837 compromised GitHub accounts to open probe pull requests in 61,764 repositories, according to Aikido's analysis of the campaign it calls wfx-loot. Where the stolen access allowed it, the attacker pushed a script that harvested GitHub Actions secrets, workflow tokens and cloud credentials, then reverted the change and deleted the run and its logs. Aikido says the payload ran in at least 1,800 repositories.
No bug in GitHub was needed. The attacker used valid credentials for real accounts, and the damage depended on what each repository let a writer do. That makes the lesson broader than one campaign: if anyone who can push code can also read every production secret, a single stolen developer token is a cloud breach. This guide covers what to check now and how to make the next stolen token far less valuable.
What the campaign did, at a high level
Aikido and Help Net Security describe three stages:
- Probe. A pull request titled "docs: dependency audit notes" confirmed write access. Over 10,000 of these targeted repositories the account did not own, reached through collaborator or organisation membership.
- Payload. The script arrived through an edited workflow, an npm install hook, or a new workflow on a short-lived branch. It collected Actions secrets, the workflow token, OIDC and runtime tokens, cloud and SSH credential files, and AI provider keys.
- Persistence. With the stolen cloud access, the payload reportedly created long-lived AWS access keys, rewrote an AWS role trust policy to accept any AWS account, and added federated identity credentials to Azure applications. It also forged passing status checks to get past branch protection.
The persistence step matters most for responders. As Help Net Security notes, rotating secrets alone does not remove a widened trust policy or an added federated credential. Those must be found and removed separately in every affected cloud account.
If you might be affected: check this week
Start with the indicators Aikido published, then assume the worst wherever the payload ran.
- Search for the probe. Look across your organisation for the pull request title above, a
wfx-docsbranch, and commits such as "ci: refresh build cache" or "chore: add ci helper". Close stray probe pull requests even if nothing ran. - Look for missing runs. Because the payload deleted its own run and logs, Aikido treats a gap in a workflow's run numbers on the attacker's commit as the main sign of execution.
- Rotate everything in reach. Where the payload ran, treat every secret and cloud role available to those workflows as compromised, including organisation-level secrets shared with the repository.
- Hunt for cloud persistence. Review AWS role trust policies for principals that allow any account, new IAM access keys, Azure applications with unfamiliar federated identity credentials, and unexpected GCP service account impersonation.
- Check developer machines. One variant ran through a package install hook. Aikido advises treating any machine that installed the affected Packagist package version as compromised.
Do not take the absence of evidence as proof of safety. Data was sent straight to attacker servers, so there may be nothing left to find inside the repository.
Why repository secrets are the weak point
GitHub's own security hardening guide states it plainly: "Any user with write access to your repository has read access to all secrets configured in your repository." A writer can add or edit a workflow on any branch, and that workflow can print or send whatever secrets it can see.
So the useful question is not "are our secrets encrypted?" but "what does a stolen writer token unlock?" Three design choices shrink that answer.
Replace stored cloud keys with OIDC federation
With OpenID Connect, a workflow requests a short-lived token from the cloud provider at run time instead of reading a long-lived key from secrets. GitHub describes the resulting access token as valid only for a single job. There is no static cloud key to steal and reuse next month.
OIDC is only as strong as its trust conditions, though. AWS warns in its IAM documentation that if the sub condition is not limited to your organisation or repository, workflows outside your control can assume the role. Go further than the organisation: bind each role to a specific repository and, ideally, a specific environment rather than any branch. A role that trusts every branch in a repository will still hand credentials to an attacker's throwaway branch.
Put production secrets behind environments
Environment secrets are available only to jobs that use that environment, and only after its protection rules pass. Two rules do most of the work:
- Deployment branch restrictions, so only protected branches such as main can deploy to production.
- Required reviewers with self-review prevented, so a job cannot reach production secrets until someone other than the person who triggered it approves.
Combined with an OIDC role bound to that environment, an attacker who can push a new branch gets neither the secrets nor the cloud role.
Make the defaults read-only
The hardening guide recommends setting the default GITHUB_TOKEN permission to read-only for repository contents and raising it per job only where needed. Add .github/workflows to CODEOWNERS so workflow changes need a designated reviewer. Since the payload reportedly forged status checks, protect important branches with required human review, not passing checks alone.
Detection that survives log deletion
An attacker who deletes run logs is betting that you watch the logs rather than the systems around them. Put detection where it is harder to erase:
- Audit log streaming. GitHub's audit log records the action, time and account. Stream it to storage the repository admins cannot modify, and alert on workflow file changes, run deletions and secret changes.
- Cloud-side signals. Alert on new IAM access keys, trust policy edits and new federated credentials. These were the campaign's persistence moves, and they show up in cloud logs regardless of what happened on GitHub.
- Unusual run patterns. A workflow on a branch that existed for a minute, or a gap in run numbers, deserves a look.
- Self-hosted runners. GitHub notes that these lack guarantees of ephemeral, clean machines. Keep sensitive data off them, restrict their network access, and prefer just-in-time runners.
A hardening checklist for this week
- Inventory repository and organisation secrets, and note which are long-lived cloud keys.
- Pick your three most sensitive deployments and move them to OIDC with roles bound to a repository and environment.
- Move remaining production secrets into environments with branch restrictions and required reviewers.
- Set the organisation default for
GITHUB_TOKENto read-only. - Require CODEOWNERS review for workflow files.
- Review who has write access, especially outside collaborators and bot accounts, and remove what is stale.
- Stream the GitHub audit log and cloud identity logs to a store your developers cannot delete.
Conclusion
wfx-loot worked because, in many repositories, write access and secret access were the same thing. You cannot guarantee that no developer token will ever be stolen, but you can decide what that token is worth. Short-lived federated credentials, environment-gated secrets and detection outside the pipeline turn a stolen token from a cloud breach into a nuisance.
The same principle applies to the keys behind your applications: keep them in a dedicated key management service with narrow, auditable access rather than scattered through build configuration. That is the approach behind OXU KMS, though the steps above apply whatever tools you use.
Sources
- Aikido: wfx-loot campaign pushes CI secret stealer to tens of thousands of repositories
- Help Net Security: A secret stealer hit tens of thousands of GitHub repos
- GitHub Docs: Security hardening for GitHub Actions
- GitHub Docs: About security hardening with OpenID Connect
- GitHub Docs: Managing environments for deployment
- AWS IAM: Create a role for OpenID Connect federation