wfx-loot: 4,837 Hijacked GitHub Accounts Walk Into Your CI Pipeline

wfx-loot: 4,837 Hijacked GitHub Accounts Walk Into Your CI Pipeline

The scariest commit message in software isn't "fix everything." It's something boring like "ci: refresh build cache," because nobody reads boring. This week an attacker turned that boredom into a weapon and swung it at thousands of repositories.

Thousands of Accounts, One Very Busy Shell Script

Starting Tuesday, 10 November, an attacker used stolen credentials for 4,837 GitHub accounts to plant a CI secret stealer, according to Aikido Security as reported by The Hacker News. SafeDep counted 8,093 public repositories that received a malicious commit on their default branch, and at least 1,806 repositories actually ran the payload. OX Security, which named the campaign "wfx-loot," reported it was still active as of 12 November.

The playbook has four steps. A probe pull request titled "docs: dependency audit notes" checks whether the account has write access. Then a commit dressed up as routine CI maintenance injects the stealer, most often into an existing workflow, sometimes as an npm postinstall hook, and occasionally as a brand-new workflow file. The next build or npm install runs it. Finally the attacker reverts the commit with something like "ci: cleanup" and deletes the run and its logs. The payload, a roughly 1,500-line shell script, goes after GitHub tokens, AWS, Azure and GCP credentials, package-publishing tokens, Kubernetes and Vault secrets, and AI provider API keys.

Rotating Keys Isn't the Whole Cleanup

The postinstall route means this isn't only a CI problem. SafeDep's guidance is that anyone who ran npm install on an affected commit should treat that machine as compromised. Aikido adds that any account that opened a probe PR is compromised, even if the stealer never ran.

The detail most teams will miss is persistence. Per The Hacker News, the stealer can trade GitHub OIDC tokens for cloud sessions, create long-lived AWS access keys, rewrite role trust policies, and add Azure AD federated credentials prefixed wfx-ci-* so access survives even after every token is rotated. As OX put it, "Rotating secrets doesn't remove backdoors that were already planted." Hunt for those artifacts, look for branches named wfx-docs, and take a hard look at any commit history that quietly undid itself.

Your CI pipeline holds the keys to your whole infrastructure, so it deserves the crown-jewels treatment, not the junk-drawer treatment.

If this campaign has you wondering what's really wired into your build pipeline, our free developer security checklist for supply-chain attacks is a solid place to start the audit.

Source: The Hacker News