Quick Answer
From 10 November 2026, an attacker used stolen GitHub tokens of real developer and bot accounts to push a CI secret stealer into repositories those tokens could write to. StepSecurity calls it WFX Phantom and Aikido Security calls it wfx-loot. The stealer collects GitHub Actions secrets and cloud credentials and tries to stay in AWS and Azure, then the attacker reverts the commit and deletes the workflow run. Search for the signs below and a missing Actions run number, and if the stealer ran, rotate everything the job could reach and remove the cloud back doors.
What Happened
StepSecurity's WFX Phantom report of 12 November 2026 says: "The attacker does not exploit a bug in GitHub Actions." The attacker holds valid tokens for real accounts and opens pull requests and pushes commits with them. StepSecurity traced 173 probe pull requests to tokens issued to the Fly.io GitHub App and says it has not established how those tokens were obtained. None of the three research teams says how the other tokens were stolen. We found no statement about the campaign from GitHub.
For each repository a token can write to, StepSecurity describes three steps:
- Probe. A pull request titled
docs: dependency audit notes, from awfx-docsbranch, addsdocs/wfx-audit.md. It only tells the attacker the token can write. - Payload. A shell script of about 1,500 lines goes into new steps in an existing workflow (
ci: refresh build cache), a shell script CI already runs, a new workflow on a throwawaychore/branch (chore: add dependency audit workflow), or a hidden.ci-*.shfile run by apackage.jsonscript such aspostinstall(chore: add ci helper). - Clean-up. A revert (
ci: restore, sometimesci: cleanup), then the workflow run and its logs are deleted, usually within a minute.
Aikido and SafeDep describe three ways and do not list the shell-script one. SafeDep counted 7,309 repositories with the workflow edit, 771 with the npm hook and 16 with a new workflow, which it saw in empty repositories.
The research teams give different counts:
- More than 63,000 probe pull requests were in GitHub search at 07:40 UTC on 12 November, and more than 21,000
ci: refresh build cachecommits landed between 10 and 12 November (StepSecurity). - 4,837 compromised accounts probed 61,764 repositories, and the payload showed signs of running in at least 1,806 (Aikido, whose post also gives 1,835).
- 8,093 public repositories received malicious commits by 04:36 UTC on 12 November, and GitHub search showed 61,879 probe pull requests in 61,734 repositories from 4,833 accounts (SafeDep). SecurityWeek notes this does not necessarily mean the code ran.
Bot accounts' tokens were used too. In WebdriverIO, the commits were pushed as the project's bot account, which could bypass branch protection. StepSecurity and Aikido both found overlap with October's GhostAction wave, covered in our October 2026 supply chain roundup, and Aikido assesses them as distinct campaigns.
What the Stealer Takes, and What It Leaves Behind
| What it collects | How, per the researchers | What to do |
|---|---|---|
| Repository, environment and organisation secrets | ${{ toJSON(secrets) }}, or the runner's memory, which holds every secret the job can use (StepSecurity) |
Rotate all of them, not only those the workflow names |
GITHUB_TOKEN |
Copied from the job (Aikido) | GitHub's docs say it expires when the job finishes or after its maximum lifetime (6 hours on GitHub-hosted runners) |
| AWS, GCP and Azure sessions | Opened with the job's OIDC token (StepSecurity) | Review cloud logs, remove persistence |
| npm, PyPI and other publishing tokens | Credential files on the runner (StepSecurity) | Rotate, check versions published after the bad commit |
| Secrets committed to the repository | Repository files that match secret patterns, plus the last 100 commits (Aikido) | Rotate, then remove from the code |
| Self-hosted runner credentials | Cloud instance metadata (StepSecurity) | Rotate the host's credentials |
StepSecurity found persistence built to outlast a rotation. The script rewrites an assumed AWS role's trust policy to "Principal": {"AWS": "*"}, tries iam:CreateAccessKey for IAM users, and adds Azure federated identity credentials named wfx-ci-<n>, which let workflows in the repository sign in to Azure with no stored secret. Code to fake passing status checks was switched off in all 101 copies StepSecurity examined, and SafeDep found the same, although Aikido describes it as a step the payload takes. From about 05:30 UTC on 12 November, StepSecurity says, new copies sent data only to a Telegram chat, so blocking the published IP addresses no longer stops them.
Were You Hit? Check Step by Step
- Search for the probe: pull requests titled
docs: dependency audit notesor from awfx-docsbranch. StepSecurity says the account that opened one is compromised, even if nothing else happened. - Search commits since 10 November for the messages in the command below. A revert does not remove a commit from git history, so the search still finds it.
- Look for files and branches:
.ci-*.shat the repository root,.github/workflows/build-audit-*.yml,package.jsonscripts that run a.ci-*.shfile, and branches namedchore/plus eight characters. - Check run numbers. StepSecurity calls a gap in Actions run numbers right after the commit "the most reliable sign" that the stealer ran. In drunomics/nuxtjs-drupal-ce, run #1964 is missing between #1963 and #1965.
- Organisation owners: search the audit log for
action:workflows.delete_workflow_run created:>=2026-11-10. GitHub's docs list the actor and run number for each deleted run, kept for 180 days. - Note who pushed the commits. That account's tokens are stolen.
# Probe pull requests in repositories you own (GitHub CLI)
gh search prs --owner your-org --head wfx-docs --limit 1000
# After git fetch --all: WFX commit messages on every branch since 10 November
git log --all --since=2026-11-10 --oneline -F \
--grep="ci: refresh build cache" --grep="ci: restore" --grep="ci: cleanup" \
--grep="chore: add ci helper" --grep="chore: add dependency audit workflow"
# Recent runs of one workflow, to spot a missing run number
gh run list --workflow ci.yml --limit 100 --json number,headSha,createdAt
If the Stealer Ran: What to Do Now
From StepSecurity's clean-up list, with additions from SafeDep:
- Rotate every secret the job could reach: repository, environment and organisation secrets, and long-lived cloud keys stored as secrets. On self-hosted runners, rotate the host's credentials too.
- Rotate publishing tokens and check for package versions published after the bad commit. SafeDep says to publish again from a clean commit.
- Remove the cloud persistence, because rotation alone does not. In AWS, find trust policies with
"Principal": {"AWS": "*"}, IAM access keys created since 10 November, and CloudTrail sessions whose names start withwfx-that callCreateAccessKeyorUpdateAssumeRolePolicy. In Azure, delete federated credentials namedwfx-ci-*. In GCP, reviewGenerateAccessTokenandSignJwtcalls through your GitHub workload identity pool. - Clean up GitHub: delete
wfx-docsandchore/*branches, close the probe pull requests, and check nothing was merged on a check the attacker marked as passed. - Lock down the account: revoke its tokens, OAuth app grants and SSH keys, and sign out its sessions. SafeDep also says to turn on two-factor authentication.
- Check developer machines. StepSecurity says anyone who ran
npm installon a commit with thepackage.jsonhook ran the stealer locally. Rotate their credentials.
# AWS: IAM events are recorded in us-east-1; lookup-events covers the last 90 days
aws cloudtrail lookup-events --region us-east-1 \
--lookup-attributes AttributeKey=EventName,AttributeValue=UpdateAssumeRolePolicy \
--start-time 2026-11-10T00:00:00Z
aws cloudtrail lookup-events --region us-east-1 \
--lookup-attributes AttributeKey=EventName,AttributeValue=CreateAccessKey \
--start-time 2026-11-10T00:00:00Z
# Azure: list an app's federated credentials, delete any wfx-ci-* you did not create
az ad app federated-credential list --id <app-id>
az ad app federated-credential delete --id <app-id> --federated-credential-id <name-or-id>
How to Harden Your Repositories
Tokens and the default branch
GitHub's docs say a classic personal access token can reach every repository its owner can. Prefer fine-grained tokens limited to specific repositories, with an expiry date. Organisation owners can block classic tokens, require approval for fine-grained ones and set maximum lifetimes. Revoke unused apps on the Authorized GitHub Apps tab (Settings, then Applications).
StepSecurity says the most common variant is pushed straight to the default branch. GitHub's docs say that with required reviews, collaborators can only push to a protected branch through an approved pull request. Admins and roles with bypass permission are exempt by default, so turn on "Do not allow bypassing the above settings" and keep bots off bypass lists. Add a CODEOWNERS entry for .github/workflows/, as GitHub's secure use guide suggests, and require code owner review. A rule on the default branch does not stop the variant that adds a new workflow on a throwaway branch (a ruleset with "Restrict creations" on all branches can), so cloud access needs its own gate.
Workflows and cloud access
The permissions block sets every permission you leave out to none, but GitHub notes that anyone with write access can edit it. It still limits the shell-script and npm copies, which StepSecurity says leave the workflow file unchanged. A job needs id-token: write to fetch an OIDC token, so give it only to the deploy job.
# BAD: one job installs, tests and deploys, and every step can get a cloud token
name: ci
on: push
permissions:
contents: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: npm install
- run: npm test
- uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: arn:aws:iam::123456789012:role/deploy
aws-region: eu-west-1
- run: ./scripts/deploy.sh
# GOOD: tests have no cloud access; only the approved production job gets a token
name: ci
on:
push:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- run: npm ci --ignore-scripts
- run: npm test
deploy:
needs: test
runs-on: ubuntu-latest
environment: production
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: aws-actions/configure-aws-credentials@45666896f5d8e0f10ae255413f3a4cdd03bdc8f5 # v6.3.1
with:
role-to-assume: arn:aws:iam::123456789012:role/deploy-production
aws-region: eu-west-1
- run: ./scripts/deploy.sh
The GOOD example also pins each action to a full commit SHA, with the version in a comment. GitHub's secure use guide says to pin actions to a full-length commit SHA, and its docs say SHAs "are immutable and therefore more reliable than tags or branches".
GitHub's docs say environment secrets reach only jobs that reference the environment, and with required reviewers, only after approval. Deployment branch rules can limit the environment to main. On GitHub Free, environments, with their secrets and branch rules, work only in public repositories. On Pro and Team, required reviewers work only in public repositories.
Make the cloud role trust only that environment. GitHub's AWS guide shows a StringLike condition of repo:octo-org/octo-repo:*, which allows any branch, so a throwaway branch matches too. Match the environment instead, and for repositories created, renamed or transferred after 15 July 2026, or opted in, copy the ID-based subject format from GitHub's OIDC reference:
"Condition": {
"StringEquals": {
"token.actions.githubusercontent.com:aud": "sts.amazonaws.com",
"token.actions.githubusercontent.com:sub": "repo:your-org/your-app:environment:production"
}
}
AWS denies any action no policy allows, so a deploy role without IAM permissions cannot rewrite trust policies or create access keys. And npm ci --ignore-scripts stops postinstall hooks, though npm's docs note npm test still runs its script, and StepSecurity found hooked test and build scripts too.
How to Fix It on Any Platform
- Keep an inventory of secrets: where each is stored, who can read it, where to revoke it. GitHub's docs say anyone with write access to a repository can read all its secrets.
- Prefer short-lived, scoped credentials. OIDC removes long-lived cloud keys from GitHub secrets, and expiring tokens limit how long a stolen one works.
- Review workflow changes closely. GitHub's security team described this pattern in August 2023: a stolen token can be used to add a malicious workflow to repositories the user can access.
- Scan your code for secrets. SafeDep lists
.env,*.tfvarsand*.tfstatefiles among the stealer's targets. Each committed key is one more to rotate.
# GOOD: find keys in your files and in the history of every branch
gitleaks dir .
gitleaks git -v --log-opts="--all" .
Tools like VibeDoctor's Vibe Check (vibedoctor.io) automatically scan your codebase with Gitleaks and their own secret checks, and flag GitHub tokens, AWS keys, Google Cloud keys, Azure AD client secrets and hardcoded passwords with specific file paths and line numbers. Free to sign up.
The same month, 1Password said an attacker gained access to an employee's corporate GitHub account and also gained access to its CI/CD system, covered in our 1Password breach write-up.
FAQ
Was WFX Phantom a bug in GitHub Actions?
No. StepSecurity says the attacker used valid tokens from real developer and bot accounts. None of the three research teams says how the tokens were obtained.
I only found the probe pull request. Am I affected?
StepSecurity and Aikido both say the account that opened the probe is compromised, even if no payload followed. Revoke its tokens and sessions, then check the commits and run numbers.
The bad commit was reverted within a minute. Is that enough?
No. In nextcloud/docker the stealer ran three seconds after the commit, and StepSecurity concluded from the surviving log that its upload succeeded. A revert does not undo what was sent or the cloud persistence.
Did the stealer reach published packages?
A few. StepSecurity and Aikido list digitalelvis/neuronai-studio 3.14.3 on Packagist and github.com/onuragtas/docker-env v1.0.278 and v1.0.280. StepSecurity and SafeDep add a github.com/vkuznet/gocurl pseudo-version, and SafeDep adds docker-env v1.0.282. Block those versions.