Security

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.

Marcus Oyelaran

Security & DevOps Specialist

Published 8 min read
Weathered brass padlocks securing a wooden door, a picture of locked-down access.
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

Laptop with a code editor open next to a notebook and pen on a wooden desk.

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:

  1. Run git ls-remote --heads origin wfx-docs in each repository, and search pull requests for the attacker's title.
  2. Run git log -p --all -- .github/workflows package.json and look for added steps, new network calls or postinstall scripts that were later reverted.
  3. 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.
  4. Compare Actions run numbers and your organization audit log to spot runs that someone deleted.
  5. 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?

Monitor showing a cloud computing and data storage graphic.

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:

Which Secrets and Cloud Roles Do You Rotate First?
CredentialCleanup stepThen rotate
AWS IAMReview trust policy edits and new access keys in CloudTrailDelete rogue keys, restore policies, re-issue role credentials
Azure ADList federated credentials with the wfx-ci- prefixRemove them, then rotate app secrets
GCPCheck service account key creation eventsRevoke and re-issue keys
Package registriesReview recent npm and PyPI publishesRevoke tokens, prefer short-lived OIDC publishing
GitHub Actions secretsClean the workflow files firstReplace every secret the workflows could read
SSH keys and kubeconfigsList every job that mounted themReplace 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?

Close-up of keyboard keys spelling out login on a coral background.

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?

Fiber optic cables glowing at the ends, representing network connections.

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.

How do I know if the wfx CI secret stealer ran in my repository?
Look for a branch named wfx-docs, a pull request titled "docs: dependency audit notes," and workflow or package.json changes that were later reverted. Then check your cloud logs for new access keys, edited trust policies and federated credentials prefixed wfx-ci-. A probe alone is not proof the stealer executed.
Do I need to rotate secrets if only a test pull request was opened?
Treat the account that opened the pull request as compromised, because Aikido says the account is at risk even if the stealer never ran. Reset its password, tokens and sessions, and review what it can reach. Rotate repository secrets only where the stealer was committed or executed.
Why remove cloud backdoors before rotating secrets?
Aviatrix reports the stealer edited AWS IAM trust policies and added Azure AD federated credentials that survive rotation. If you rotate first, the attacker can still assume the role with those backdoors and collect the fresh credentials. Remove the persistence, confirm it is gone, and then issue new secrets.
Does pinning GitHub Actions to commit SHAs stop this attack?
No, not by itself. Pinning to a full-length commit SHA protects you from a backdoor added to someone else's action. This campaign used stolen accounts to edit workflows in the victim's own repositories. Pair pinning with required reviews on workflow files, read-only default tokens and narrow cloud trust.

Written by

Marcus Oyelaran

Security & DevOps Specialist

11+ years experience

Marcus Oyelaran spent eleven years moving between platform and security teams, including four years as a security engineer embedded inside a DevOps org at a healthcare SaaS company handling PHI at scale. He's run more incident postmortems than he can count, and most of what he writes for Backtrace comes directly out of those postmortems: the secret that leaked through a build log, the IAM policy that was too permissive by one wildcard, the deploy that skipped a gate because someone was in a hurry. He holds an OSCP and spends an unreasonable amount of time arguing about supply chain security on internal Slack channels.

Credentials

  • OSCP (Offensive Security Certified Professional)
  • 11 years in DevOps and security engineering
  • Former security engineer, healthcare SaaS platform (HIPAA-regulated infrastructure)