{
  "id": "wfx-phantom-github-actions",
  "url": "https://ohshit.app/incidents/wfx-phantom-github-actions/",
  "title": "WFX Phantom uses stolen GitHub tokens to run a CI credential stealer",
  "level": 4,
  "level_name": "septic-tank-blew",
  "date": "2026-11-11",
  "date_is_approximate": false,
  "updated": "2026-11-15",
  "tags": [
    "GitHub Actions",
    "CI/CD",
    "credential theft"
  ],
  "ecosystems": [],
  "summary": "Attackers used stolen developer and bot tokens to plant a shell stealer in GitHub repositories, then reverted commits and deleted runs. The stealer can collect runner memory and exchange OIDC tokens for cloud access. Newer samples upload through Telegram.",
  "splash": "GitHub repositories writable by stolen developer or bot tokens, where the injected workflow, script or package hook can run.",
  "wipe": "Contain suspect runs, revoke compromised tokens, rotate reachable secrets and inspect cloud trust and published artifacts.",
  "in_the_wild": "yes",
  "source_exception": null,
  "cves": [],
  "fixed": [],
  "checklist": [
    {
      "title": "Contain suspicious GitHub access and runs",
      "hint": "Pause affected workflows and releases, cancel active suspect runs, isolate affected self-hosted runners and preserve audit logs, run IDs, commit SHAs and network evidence. Revoke affected PATs, OAuth or GitHub App user authorizations and bot credentials. Remove unnecessary branch bypass and review where each token had write access."
    },
    {
      "title": "Correlate repository and network evidence",
      "hint": "Inspect Git history, PR metadata and Actions audit trails. Search runner egress from October 25 for 45.61.182[.]54 on TCP 8080 or 8081 at /exfil, 194.150.166[.]244:8080/exfil, 18.143.168[.]96:8080/exfil, 153.75.82[.]159:8080/exfil, the legacy GhostAction endpoint 193.32.204[.]199 and api.telegram.org sendDocument. The body and research reports list the remaining indicators. Check for the script SHA-256 89695abb392d5cfd4972672961e644bb46baa98aa1ed7173c2a2816c762735cf. Tie matches or missing run numbers to the commit, actor and execution evidence. A probe or isolated indicator is a lead. If the suspect run is gone, check whether the immediately following ci: restore run started a job and corroborate with runner and network logs. If execution is confirmed or likely, assume the job’s reachable credentials were exposed."
    },
    {
      "title": "Remove cloud persistence before replacing secrets",
      "hint": "Suspend affected OIDC trusts and revoke sessions where supported. Check AWS CloudTrail and IAM for altered role trusts, new access keys, initial ci-<pid> OIDC sessions and chained wfx-<pid> sessions. Check Azure audit logs for unauthorized federated credentials, GCP logs for service-account impersonation from the GitHub workload identity pool, and Vault audit logs for JWT logins from GitHub’s OIDC issuer. Remove unauthorized access, then rotate all reachable repository, organization, environment, registry and cloud secrets. For self-hosted runners, include credentials and tokens accessible on the host."
    },
    {
      "title": "Restore from trusted source and verify outputs",
      "hint": "Remove the payload, restore protected branches and CI from verified commits, rebuild affected runners and verify releases, artifacts and caches against known-good outputs. If a developer ran the injected npm install hook on an affected commit, isolate the workstation, treat it as compromised and revoke or rotate credentials it could access from a clean device. Block the listed package versions and regenerate lockfiles from verified inputs. Resume release automation only after clean runs and audit checks. Restrict runner egress to required destinations and bind required checks to trusted sources where supported."
    }
  ],
  "sources": [
    {
      "name": "StepSecurity original WFX Phantom analysis",
      "url": "https://www.stepsecurity.io/blog/wfx-phantom-the-github-actions-secret-stealer",
      "says": "Documents observed variants, public execution evidence, affected release artifacts, collection endpoints and cloud persistence features.",
      "primary": true
    },
    {
      "name": "WebdriverIO public revert PR",
      "url": "https://github.com/webdriverio/webdriverio/pull/16444",
      "says": "Documents the bot’s unauthorized commits, the postinstall hook and proposed response.",
      "primary": true
    },
    {
      "name": "Nextcloud Docker repository commit",
      "url": "https://github.com/nextcloud/docker/commit/b4353fc0b709226943b19e9793509be4a2c3a278",
      "says": "Shows the injected change to update.sh.",
      "primary": true
    },
    {
      "name": "Nextcloud Docker workflow run 2675",
      "url": "https://github.com/nextcloud/docker/actions/runs/43024116166",
      "says": "Records the run of update.sh on the injected commit at 12:52 UTC on November 11.",
      "primary": true
    },
    {
      "name": "Aikido original wfx-loot analysis",
      "url": "https://www.aikido.dev/blog/compromised-github-accounts-push-ci-secret-stealer-to-tens-of-thousands-of-repositories",
      "says": "Reports the account and repository counts, two different minimum execution figures, cloud persistence techniques and a script SHA-256.",
      "primary": true
    },
    {
      "name": "SafeDep original WFX investigation",
      "url": "https://safedep.io/blog/github-actions-wfx-credential-stealer",
      "says": "Documents malicious commit counts, published artifacts, execution triggers and workstation and cloud response guidance.",
      "primary": true
    },
    {
      "name": "Mate Security original investigation",
      "url": "https://mate.security/labs/the-wfx-github-stealer-an-october-rehearsal-and-what-a-deleted-run-proves",
      "says": "Documents the October trials, release variants, cloud indicators and run-level evidence.",
      "primary": true
    },
    {
      "name": "Packagist malware filter",
      "url": "https://packagist.org/packages/digitalelvis/neuronai-studio/filter-lists/malware/",
      "says": "Lists versions 3.14.2, 3.14.3 and 3.14.4 as flagged.",
      "primary": true
    },
    {
      "name": "Endor Labs repository investigation",
      "url": "https://www.endorlabs.com/learn/github-actions-supply-chain-attack-targeting-ci-secrets-at-scale",
      "says": "Counts repositories with payload evidence and identifies postinstall hooks, registry packages and the difference between probes and malicious commits.",
      "primary": true
    }
  ],
  "headline": null,
  "one_liner": null,
  "in_the_wild_note": "StepSecurity observed execution. WebdriverIO recorded unauthorized bot commits.",
  "mitigation": null,
  "timeline": [
    {
      "date": "Oct 25–29, 2026",
      "title": "Trial variants appear in public repositories",
      "body": "Mate Security later traces 27 trial commits across seven repositories."
    },
    {
      "date": "Nov 10, 2026",
      "title": "StepSecurity dates the start of the November wave",
      "body": "Stolen GitHub tokens are used to probe repositories and push malicious changes."
    },
    {
      "date": "Nov 11, 12:30 UTC",
      "title": "WebdriverIO contributor publicly documents two malicious bot commits",
      "body": "The commits hook postinstall. Later the same day, a surviving Nextcloud Docker workflow log documents execution of another variant."
    },
    {
      "date": "Nov 12, 01:10 UTC",
      "title": "Telegram appears as a backup in one sample",
      "body": "The sample also points to a third HTTP collector."
    },
    {
      "date": "Nov 12, 2026",
      "title": "StepSecurity publishes its campaign analysis",
      "body": "It saw Telegram-only delivery from about 05:30 UTC and reported over 63,000 probe PR search results at 07:40 UTC. The search count does not measure successful compromises."
    },
    {
      "date": "Nov 12, 2026",
      "title": "Aikido publishes account and repository counts for the same campaign",
      "body": "Aikido identifies 4,837 compromised accounts probing 61,764 repositories. The report gives two different lower bounds for payload execution."
    },
    {
      "date": "Nov 12, 2026",
      "title": "SafeDep publishes malicious commit counts and affected releases",
      "body": "The report counts about 8,100 public repositories that received malicious commits and identifies redock v1.0.282 as another release containing the payload."
    },
    {
      "date": "Nov 12, 21:35 UTC",
      "title": "Endor Labs reports 8,926 repositories with payload evidence",
      "body": "The updated inventory counts repositories with malicious commits. More than 829 repositories had postinstall hooks added."
    },
    {
      "date": "Nov 13, 2026",
      "title": "Mate Security publishes additional campaign evidence",
      "body": "The researchers document the October trials, distinguish deleted runs from started jobs and identify the first AWS session name."
    }
  ],
  "body_markdown": "The campaign requires a valid token with repository write access and a path to execute the code. It modifies an existing workflow, creates a new workflow, appends to a script CI already calls, or adds a hidden script and hooks it into an npm lifecycle or build/test command. Workflow variants can explicitly pass secrets to the script. Script variants can read runner memory and credential stores when the job has access. Cloud escalation depends on the runner’s credentials and the permissions and trust attached to them. Required-check forgery exists in the payload but was disabled in the samples StepSecurity examined.\n\nStepSecurity found some probe PRs attributed by GitHub to Fly.io’s GitHub App and identified the credentials as user-to-server tokens. It did not establish how they were obtained or find evidence of compromise of Fly.io infrastructure. The research identified overlaps with [October GhostAction](/incidents/ghostaction-returns/) without attributing both campaigns to one actor.\n\nNextcloud Docker’s run 2675 executed the injected commit on a self-hosted runner and finished successfully. StepSecurity interpreted the log as evidence of a successful upload. The log does not enumerate the contents of the uploaded archive.\n\n### Release artifacts to check\n\n- Packagist `digitalelvis/neuronai-studio` **3.14.3** contains the script and npm postinstall hook. The hook can execute if npm installs dependencies in the package directory with lifecycle scripts enabled. Composer does not invoke it on its own. Mate Security also identifies **3.14.4**. This supersedes StepSecurity’s earlier rollback advice: Packagist flags **3.14.2**, **3.14.3** and **3.14.4** as malware; its flag alone does not establish that 3.14.2 contains this WFX payload. Block all three versions and verify the source and archive of any replacement before installing it.\n- Go module `github.com/onuragtas/redock` (formerly `github.com/onuragtas/docker-env`) **v1.0.278**, **v1.0.280** and **v1.0.282**, and `github.com/vkuznet/gocurl` **v0.0.0-20261111095532-8d5aad0cb0da**, contain the payload only in workflow files. Ordinary Go downloads and builds do not run workflows; triggering the affected workflow on an injected commit can run the payload. Check direct and transitive dependencies in `go.mod` and `go.sum` and replace affected versions with independently verified inputs. SafeDep identifies redock **v1.0.279**, **v1.0.281** and **v1.0.283** as clean reverts.\n- StepSecurity reports no affected WebdriverIO package release. Verify other releases produced between an injected commit and cleanup using clean source and build records.\n\n### Indicators to correlate\n\n- HTTP endpoints at `194.150.166[.]244:8080/exfil`, `18.143.168[.]96:8080/exfil` and `153.75.82[.]159:8080/exfil`. The older `193.32.204[.]199` endpoint was still present in some previously implanted GhostAction workflows. HTTP callback values included `b42d70a7aab9140ca19e8249`, `15f44heehnax8jdf41yx`, and `e6ny5telf3pht81qk5zv`.\n- Telegram `api.telegram.org` with `sendDocument`, chat `-1004340163187` and bot IDs `8708988906`, `9196217635`, `9180059428`, `8902935164`, `8876515636`. Telegram-only samples set the HTTP callback to loopback.\n- Probe PR `docs: dependency audit notes`, body `Routine dependency audit notes`, branch `wfx-docs`, file `docs/wfx-audit.md` and blob `ee6e5addfe591923fc385553cb66cf0d25634a6b`.\n- Commit messages `ci: refresh build cache`, `ci: restore`, `ci: cleanup`, `chore: add ci helper`, `chore: add dependency audit workflow`, and `chore: initial commit` before the workflow in empty repositories.\n- Branch patterns `chore/[a-z0-9]{8}` and `ci-check-[0-9]{4}`; paths matching `.ci-[a-z0-9]{6}.sh` and `.github/workflows/build-audit-[a-z0-9]{6}.yml`, or changes to existing workflow files, shell scripts or `package.json`.\n- Steps `Pass runtime`, `Restore cache <4 characters>` or `Run audit`; variables `WF_CALLBACK`, `WF_CTOKEN`, `WF_EXFIL_*`, `WF_TG_BOTS`; staging path `.wfx-$$`; log strings `memscan_files`, `archive_bytes`, `deliver_retry`.\n- Azure federated credentials named `wfx-ci-*`; AWS trust changes granting a wildcard AWS principal, and AWS sessions named `wfx-*`.\n\n### Aikido's November 12 scope findings\n\nAikido tracks the same `wfx-docs` probe and CI payload as wfx-loot. It identifies **4,837 compromised GitHub accounts** that opened probes in **61,764 repositories**. Aikido also identifies at least **50** compromised users who appear to publish packages. This is a count of accounts with apparent publishing activity. Aikido separately reports **61,839** matching PRs from GitHub search. StepSecurity separately reports PR search hits from its 07:40 UTC check. Treat these as different measurements rather than adding them together.\n\nAikido's report gives at least **1,806** repositories with signs of payload execution in the detailed section. Its opening section claims at least **1,835** repositories ran the payload and had credentials exfiltrated. The report does not reconcile those figures or publish a final count. Investigate repositories for execution and exposure independently of the probe totals. Aikido publishes script SHA-256 `89695abb392d5cfd4972672961e644bb46baa98aa1ed7173c2a2816c762735cf`. The hash identifies one sample. Correlate hits with the actor, commit and run evidence.\n\nThe report documents HTTP delivery in the observed configuration and notes Telegram edits in later samples. StepSecurity's Telegram and third HTTP endpoint observations remain applicable.\n\n### SafeDep’s November 12 repository investigation\n\nSafeDep identified about 8,100 public repositories that received malicious commits between November 10 at 12:46 UTC and November 12 at 04:36 UTC. Its search covered public default branches and excluded repositories that only received probes. This count does not show where the payload ran or credentials were sent. SafeDep also checked published releases from injected repositories in npm, the Go module proxy and Packagist and found no payload outside the three packages above. Its review did not cover PyPI or other registries.\n\n### Endor Labs’ November 12 repository inventory\n\nEndor Labs lists **8,926 repositories with payload evidence** in its 21:35 UTC update. Its report says postinstall hooks were added to **more than 829 repositories**. These are counts of changes observed in repositories. They do not establish execution or credential theft in each repository. Compare the inventory with your repository and inspect the cited commits, including `package.json` and the referenced shell script, before investigating whether a developer install or CI job ran the hook. The Endor Labs and SafeDep inventories cover overlapping activity and should not be added together.\n\n### Mate Security’s November 13 follow-up\n\nIn a sample of 150 repositories, Mate found 115 missing runs. The immediately following revert run did not start a job in 82 of those 115 cases. A missing record cannot establish that the payload ran; if the revert job started, treat the malicious run as likely to have started too and rotate the credentials it could read. If the revert did not start, continue looking for direct execution evidence in other runs, installs and runner logs. Mate also found configurations set to forge passing checks in 16 repositories. That finding establishes configuration, not a forged result.\n\nThe October trial samples use `45.61.182[.]54:8080/exfil` and `45.61.182[.]54:8081/exfil`. In AWS, look for GitHub OIDC `AssumeRoleWithWebIdentity` calls with `ci-<pid>` session names and chained `AssumeRole` calls with `wfx-<pid>` sessions. Correlate these with source, time, role trust changes and credentials created by the session."
}