How to Audit Your GitHub Repos for the wfx CI Secret Stealer (2026)
Attackers used 4,837 hijacked GitHub accounts to plant a CI secret stealer. Here is how to check your repos, remove backdoors and rotate secrets in the right order.
On this page 6 sections
To audit for the wfx CI secret stealer, search every repository for the wfx-docs branch and for pull requests titled "docs: dependency audit notes." Review workflow and package.json history for reverted commits. Remove cloud backdoors before you rotate any secret. Treat every developer machine that ran npm install on an affected commit as compromised.
A CI secret stealer is malicious code that runs inside your build pipeline and sends out every credential the job can read. In the second week of November 2026, one such campaign hit thousands of GitHub repositories. This guide is for developers, DevOps engineers and engineering leads who need to know whether their repositories were touched and what to do next.
Backtrace covers developer tools and the security problems that surround them. This guide covers detection, cleanup order, secret rotation and long-term hardening. It draws on public write-ups from The Hacker News and Aviatrix, plus GitHub's own documentation.
What the wfx-docs Campaign Did to CI Pipelines
The campaign began with stolen accounts, not a software bug. The Hacker News reported that an attacker used stolen credentials for 4,837 GitHub accounts to plant a secret stealer in every repository those accounts could write to. Aikido Security, the company that raised the alarm, said the stealer ran in at least 1,806 repositories.
Each attack opened with a probe. The attacker sent a pull request titled "docs: dependency audit notes" from a branch named wfx-docs. That request tested whether the account had write access. The probe reached 61,764 repositories, so the pull request is a useful search term even where nothing else happened.
The malicious code came in two forms. SafeDep, a software supply chain security vendor, counted 8,093 repositories with malicious commits. In 7,309 of them, the stealer went into an existing workflow file. In 771, it arrived as an npm postinstall hook, a script that npm runs after a package installs.
The cleanup was careful. The attacker usually reverted the change within minutes and deleted the run logs. A default branch that looks clean therefore proves very little. The evidence lives in commit history, in pull request records and in your cloud provider's logs.
More pull requests with the same title appeared after the first reports, according to The Hacker News. The campaign was therefore still active when the story ran. Repeat your search every day for a week instead of running it once.
How Do You Check Whether the CI Secret Stealer Hit Your Repositories?
Search your organization for the wfx-docs branch and for pull requests titled "docs: dependency audit notes." Then read the full commit history of workflow files and package.json for changes nobody on your team can explain. Reverted commits stay in history, so a clean default branch does not mean a clean repository.
Work through these checks in order:
- Run
git ls-remote --heads origin wfx-docsin each repository, and search pull requests for the attacker's title. - Run
git log -p --all -- .github/workflows package.jsonand look for added steps, new network calls or postinstall scripts that were later reverted. - List every account that opened a matching pull request. Per Aikido's analysis, an account that opened one is compromised even if the stealer never ran.
- Compare Actions run numbers and your organization audit log to spot runs that someone deleted.
- Find developer laptops and CI caches that installed dependencies from an affected commit.
Start with repositories that hold cloud credentials or publish packages. Those cost the most if the stealer ran. Not every repository that received a test pull request was breached, so sort findings into three bins: probe only, stealer committed, and stealer executed. Only the last bin needs a full credential response.
Record every decision in a shared ticket. Note the repository, the bin, the accounts involved and the date you rotated each credential. That record helps your security team and any customer who asks what happened.
The same trigger weaknesses often make these attacks easier. After the audit, see our guide on how to fix pull_request_target workflows before GitHub blocks them.
Which Secrets and Cloud Roles Do You Rotate First?
Remove persistence before you rotate anything. Aviatrix's threat analysis says the stealer harvested GitHub Actions secrets, OIDC tokens, AWS, Azure and GCP credentials, SSH keys and package registry tokens. It also planted backdoors that survive rotation. It edited AWS IAM trust policies, created access keys and added Azure AD federated credentials prefixed wfx-ci-.
That order matters. Rotating a leaked key while a trust policy still admits the attacker accomplishes nothing. The attacker simply assumes the role again.
Use this table as the order of operations for each cloud and registry:
| Credential | Cleanup step | Then rotate |
|---|---|---|
| AWS IAM | Review trust policy edits and new access keys in CloudTrail | Delete rogue keys, restore policies, re-issue role credentials |
| Azure AD | List federated credentials with the wfx-ci- prefix | Remove them, then rotate app secrets |
| GCP | Check service account key creation events | Revoke and re-issue keys |
| Package registries | Review recent npm and PyPI publishes | Revoke tokens, prefer short-lived OIDC publishing |
| GitHub Actions secrets | Clean the workflow files first | Replace every secret the workflows could read |
| SSH keys and kubeconfigs | List every job that mounted them | Replace keys and update authorized hosts |
Search for specific API calls. In AWS CloudTrail, look for CreateAccessKey, UpdateAssumeRolePolicy and AssumeRoleWithWebIdentity from sources you do not recognize. In Azure AD, filter for new federated identity credentials. Where the stealer ran, treat every secret and cloud role that the workflow could reach as exposed.
Check self-hosted runners as well. The same analysis lists Docker container state and systemd unit configurations on those hosts among the data taken. If you rebuild them, our walkthrough on upgrading to Docker Engine 29.9.1 gives you a test plan for the container layer.
How Do You Harden Workflows Against the Next Stolen Account?
Assume another account will be stolen and limit what it can do. Pin third-party actions to full-length commit SHAs, set the default GITHUB_TOKEN to read-only, require review for workflow file changes, and enforce multi-factor authentication. These controls shrink the blast radius even when the attacker holds valid credentials.
GitHub's security hardening guide notes that anyone with write access to a repository can read its secrets. That fact explains this whole campaign. A stolen account with write access is a stolen key ring.
These controls deliver the most value:
- Require pull request approval for changes under .github/workflows, using CODEOWNERS and branch protection so a single account cannot push a workflow edit alone.
- Set the default GITHUB_TOKEN permission to read-only, and grant write scopes per job.
- Narrow cloud trust. Bind each OIDC role to one repository, branch or environment in its subject claim.
- Pin actions to commit SHAs. Pinning protects you from a backdoored action, but it does not stop a stolen account from editing your own workflow.
- Require hardware-backed multi-factor authentication for every account with write access.
No single control covers everything. Aviatrix says the way the attacker first obtained the credentials remains unattributed. So the safest design assumes some account will fall and makes that fall cheap.
Add detection on top of prevention. Alert on any push or pull request that touches .github/workflows from an account that has not edited those files before. Alert on new branches named like wfx-docs. Alert on new IAM access keys and trust policy edits in your cloud accounts. Each alert gives you a chance to act within the minutes the attacker needed to clean up.
How Do You Contain npm Postinstall Hooks and Runner Egress?
A postinstall hook runs automatically on whatever machine installs the package. In 771 repositories the attacker used one, so the code ran on laptops as well as in CI. Aviatrix advises treating developer machines that ran npm install on affected commits as fully compromised. Reimage them and rotate anything stored locally.
For future installs, run npm ci --ignore-scripts in CI and allow scripts only for packages that truly need them. Review any pull request that adds a lifecycle script.
Publishing tokens deserve a second look. Trusted publishing swaps long-lived npm tokens for short-lived OIDC tokens. GitHub now expires unvalidated trusted publishing configurations after 48 hours, so publish soon after you create a new binding. For background on why that guard exists, read how trusted publishing let attackers hijack 1,500 packages.
Egress filtering is the last layer. The stealer sent data by HTTP POST and to a Telegram channel. A runner that can only reach your registry, your cloud provider and a short allowlist would block both channels. Start in monitor mode, review a week of outbound destinations, and then enforce the list.
What to Do This Week
Audit first, remove backdoors second, rotate third and harden fourth. That order keeps you from rotating secrets the attacker can still reach. Backtrace's editors compared the public write-ups from The Hacker News and Aviatrix and found the same core advice: assume compromise wherever the stealer ran.
Begin with repositories that publish packages or hold cloud roles. Record what you find in each bin, probe only, committed or executed, so your response matches the real exposure. Then schedule the hardening work while the incident is still fresh. Teams that finish the sweep this week will know exactly which accounts, roles and laptops they can trust again.