Skip to Content

wfx-loot: whoever has write access to the repo holds the key to the pipeline

Since 10 November, stolen GitHub accounts have been used to test write access to tens of thousands of repositories and to push secret-stealing code into several thousand of them, code that also exchanges the running job's OIDC token for cloud access
November 17, 2026 · Devertix

On Tuesday, 10 November 2026, at around 12:45 (UTC), someone using stolen GitHub credentials began pushing secret-stealing code (a secret stealer) into the repositories to which the tokens they had obtained gave write access. According to Aikido Security's analysis of 12 November, in the campaign referred to as wfx-loot, 4,837 compromised accounts opened test pull requests in 61,764 repositories, and in at least 1,806 repositories the code actually ran.

Compromised GitHub accounts
4837
Repositories with a test pull request
61 764
Repositories where the secret stealer ran
at least 1,806

How a hit unfolds

According to Aikido's description, the attacker first uses a pull request titled docs: dependency audit notes to check whether the stolen token can really write to the repository. In StepSecurity's analysis, the most common variant is that an existing workflow gets two new steps with the commit message ci: refresh build cache; less often, the script ends up in an npm lifecycle hook or in a new workflow created on a throwaway branch. The roughly 1,500-line shell script is not obfuscated. The Hacker News, citing SafeDep's count, mentions 8,093 repositories that received a malicious commit.

The attacker typically reverts the change within a minute and deletes the run and its log. Often all that remains of the run is a missing run number.

Figure · the path of wfx-loot from the stolen token to the cloud
  1. Stolen token

    Write access to the repository. The origin of the tokens has not been confirmed.

  2. Test

    A pull request from the wfx-docs branch: does the write succeed?

  3. Injection

    Two new steps in an existing workflow, an npm hook or a throwaway branch.

  4. Collection

    Actions secrets and variables; cloud, SSH and Kubernetes credential files.

  5. Cloud

    The job's OIDC token exchanged for AWS, GCP and Azure sessions, then persistent access established.

  6. Covering tracks

    Reverted typically within a minute; the run and the log deleted.

The steps follow the analyses by Aikido and StepSecurity. Encryption of the two outbound connections: between the runner and the cloud provider it is HTTPS (TLS), which carries the exchange of the OIDC token for a session; between the runner and the attacker's servers it is HTTP, without TLS, with the loot uploaded on port 8080. According to StepSecurity, some of the 12 November samples were by then sending only to Telegram; the connection without TLS does not apply to these.

Even the short-lived token was no obstacle

Many teams switched to OpenID Connect (OIDC) precisely so that there would be no long-lived cloud keys in CI. The wfx script exploits this mechanism too: it requests an OIDC token on behalf of the running job and exchanges it for AWS, GCP and Azure sessions. In AWS, it tries to create an access key and opens up the role's trust policy to any AWS account; in Azure, it adds a federated credential whose name begins with wfx-ci-.

Rotating secrets is therefore not enough. Based on Help Net Security's summary, the modified trust policies and the new credentials must be found and removed in every cloud account belonging to the affected workflows.

GitHub's security guide states that anyone with write access to a repository can read all of that repository's secrets. Our conclusion from this is that the pipeline's security boundary is write access; the secrets store only protects within that boundary.

What is a narrowed trust policy worth?

GitHub's OIDC documentation describes how the token's sub field shows where the job started from: a branch (repo:szervezet/repo:ref:refs/heads/main) or an environment (repo:szervezet/repo:environment:Production); for repositories created after 15 July 2026, the format also includes the IDs of the organisation and the repository. If the cloud role only accepts tokens from one environment, that alone is not enough, because a workflow on a throwaway branch can reference the environment too.

Such code is left without a session if deployments to the environment are possible only from a protected branch, the account that triggers the run cannot approve its own deployment, and administrators cannot bypass the protection rules. GitHub allows the last of these by default. And if the attacker rewrites the workflow on the main branch and nothing stops this, the token will be legitimate.

This is our own conclusion based on the documentation. According to GitGuardian's analysis of 13 November, GitHub made the running of the malicious workflows subject to approval, but the npm-hook variant got around this because it does not modify a workflow file. The origin of the tokens has not been confirmed. Aikido found an overlap with those affected by October's GhostAction wave, yet it sees separate actors as probably being behind the two campaigns.

Five checks for this week

  1. Traces in the repositories.

    A branch named wfx-docs, a pull request with the title above, a commit with the message ci: refresh build cache, chore: add ci helper or chore: add dependency audit workflow, a missing run number.

  2. Traces in the cloud.

    A trust policy that accepts any AWS account, an unknown access key, an Azure credential beginning with wfx-ci-. In CloudTrail, based on The Hacker News's summary, look for a session name beginning with wfx- that is followed by a CreateAccessKey or UpdateAssumeRolePolicy call.

  3. Who can write what CI runs?

    According to GitHub's guide, the .github/workflows directory can be added to the CODEOWNERS file, so that a change requires the approval of a designated reviewer. Because of the npm-hook variant, the package.json file and the build and deployment scripts should get the same protection. You also need to review which bot accounts can bypass branch protection.

  4. What can a job access?

    The cloud role's trust policy should be scoped to an environment, and the environment should be protected by a required reviewer and the three settings above.

  5. What can the role do in the cloud?

    A deployment role rarely needs to create keys or modify trust policies. It is worth taking these permissions away from it.

Tightening comes at a price. Mandatory review slows down releases, and bot accounts were often exempted from branch protection precisely for the sake of automation. Chainguard's analysis also points out that pinning the versions of third-party actions and reviewing pull requests would not have stopped the first push, since the attacker held a valid token with write access. The open question, then, is the origin of the tokens. Until there is an answer, the token of every developer and bot account must be treated as though it were on the next list.

Our recommendation: the pipeline is just as much a production system as what it deploys, and must be protected in the same way. In DevSecOps practice, this means protecting the files that CI runs and narrowing the roles; when designing the CI/CD pipeline, it means that a production deployment can start only from an approved environment. Watching for the cloud-side traces is the job of managed security monitoring.

Sources

CI/CD and security

Who can write to your pipelines today?

We review the protection of your workflow files, the trust policies of your cloud roles and the permissions of your bot accounts.

Free consultation

New articles and webinar dates by email

We will let you know when a new article is published or a new webinar is announced. You can unsubscribe at any time.

Thank you, you have subscribed to the newsletter.

By subscribing, I confirm that I have read the privacy notice.