# wfx-loot (WFX Phantom) GitHub Actions secret-stealer campaign: mass probe PRs from hijacked accounts, trojanized Packagist/Go packages

> A campaign (named wfx-loot by Aikido, WFX Phantom by StepSecurity, wfx by SafeDep) uses stolen GitHub credentials from about 4,800 accounts to open probe pull requests in 61,000-63,000+ repositories and push a CI secret stealer that ran in at least 1,806 of them. Stolen secrets go to HTTP collection servers and a Telegram bot, and the payload can plant AWS and Azure persistence that survives secret rotation. Counts and status vary by source; StepSecurity calls the current status unconfirmed.

- **Author:** Threadlinqs Team
- **Published:** 2026-11-30T09:48:57Z
- **Last updated:** 2026-11-30T09:48:57Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7065
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7065.png
- **ID:** TL-2026-7065
- **Severity:** HIGH
- **Category:** SUPPLY_CHAIN
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 24 (3 shown free below)

## Description

The wfx campaign began on 10 November 2026 (first probe PRs around 12:45 UTC). It is an account-takeover operation, not a vulnerability exploit: StepSecurity states that no flaw in GitHub Actions is used, and every token abused was legitimately issued and previously stolen and never rotated. Aikido counted 4,837 compromised accounts opening probe pull requests in 61,764 repositories (more than 10,000 of them in repositories the account did not own, reached through collaborator or organization access). StepSecurity found more than 63,000 probe PRs by 07:40 UTC on 12 November, roughly 90% still open, and more than 21,000 'ci: refresh build cache' commits. SafeDep counted malicious commits in 8,093 repositories. The payload executed in at least 1,806 repositories (1,835 in another Aikido-derived figure). The method of credential theft is unconfirmed; one victim reported a leaked GitHub CLI OAuth token and StepSecurity reports personal access tokens. Bot accounts with branch-protection bypass (drubot, wdio-bot) were heavily abused.

Attack flow. (1) Probe: the compromised account creates a wfx-docs branch and opens a PR titled 'docs: dependency audit notes' (body 'Routine dependency audit notes') that adds docs/wfx-audit.md, identical in every PR, to confirm write access. (2) Payload delivery by one of four methods: edit of an existing workflow with a 'Pass runtime' step and a 'Restore cache <4 chars>' step carrying the script (commit 'ci: refresh build cache', most common, adds statuses: write); appending the script to an existing CI shell script such as update.sh (Nextcloud docker) or tests/retry_env.sh; a new workflow .github/workflows/build-audit-<6 chars>.yml on a chore/<8 chars> branch (commit 'chore: add dependency audit workflow'); or a hidden .ci-<6 chars>.sh at repo root wired to a package.json hook, usually postinstall (commit 'chore: add ci helper'), which also executes on developer machines. (3) Cleanup: a revert commit ('ci: restore' or 'ci: cleanup', Endor Labs calls these sandwich commits) lands seconds to minutes later and the workflow run and its logs are deleted, leaving a gap in run numbers as the most reliable execution signal.

Payload. A roughly 1,500-1,730 line, commented, unobfuscated POSIX shell script runs four stages: collect, escalate, persist, exfiltrate. It serializes toJSON(secrets) and toJSON(vars), harvests the job GITHUB_TOKEN and OIDC capability (requesting id-token: write and statuses: write), scans /proc memory of the Runner.Worker and Runner.Listener processes to recover decrypted secrets the workflow never referenced, and reads credential files and environment variables for AWS, Azure, GCP, Docker, Kubernetes, npm, PyPI, SSH, GPG, Vault, Terraform (*.tfvars/*.tfstate), .env files, shell histories, and AI provider and coding-agent keys (OpenAI, Anthropic, Gemini, Hugging Face, Cursor, Copilot, Codex, and others). On self-hosted runners it also takes cloud instance metadata credentials and runner registration material. It exchanges OIDC tokens for AWS, GCP, Azure, Vault and Kubernetes access, chains AWS roles, impersonates GCP service accounts, and replays cached Azure CLI (FOCI) refresh tokens for Microsoft Graph and Key Vault. Persistence designed to survive secret rotation: in AWS it rewrites a role trust policy to "Principal": {"AWS": "*"} and calls iam:CreateAccessKey (sessions named wfx-<pid>); in Azure it adds federated identity credentials named wfx-ci-<n> to app registrations so workflows on the repository can sign in without stored secrets. Code to post forged success commit statuses to required check names (bypassing name-matched branch protection) exists; StepSecurity found it disabled in all 101 samples it examined, while Semgrep and Endor Labs describe it as a payload capability, and sources disagree on whether it works on protected branches.

Exfiltration. Data is packed into a single gzipped archive (8,971 bytes in the surviving Nextcloud run). Early variants (from 10 November) POST to http://<ip>:8080/exfil on 194.150.166.244 and 18.143.168.96; a third server, 153.75.82.159, appeared at about 01:10 UTC on 12 November along with a Telegram backup; from about 05:30 UTC on 12 November variants were Telegram-only, using sendDocument on api.telegram.org with the HTTP callback set to 127.0.0.1. Cache, step-summary (<!--WFX-BEGIN-->), artifact (wfx-loot-<run id>) and other covert channels exist in code but were disabled in observed samples. Payload versions v1 to v5 were observed (v5 from 12 November, 2,473 repositories per Endor Labs).

Downstream package exposure. At least 50 compromised accounts publish to npm, Go, Packagist, PyPI or crates. Confirmed affected: Packagist digitalelvis/neuronai-studio v3.14.3 (published 11 Nov, ships .ci-e5infq.sh and a postinstall hook that runs on npm install; fixed in v3.14.4); Go github.com/onuragtas/docker-env v1.0.278 and v1.0.280 (stealer in a workflow file only; SafeDep also lists v1.0.282, Corgea reports even tags v1.0.278-v1.0.290 of docker-env/redock carrying a Telegram-only payload in .github/workflows/beta.yml with odd tags as clean reverts); and Go github.com/vkuznet/gocurl pseudo-version v0.0.0-20261111095532-8d5aad0cb0da (adds a workflow file; still served by proxy.golang.org after revert). Because Go builds do not execute workflow files, Go consumers are likely not directly affected, but the poisoned versions should be removed. SafeDep checked 218 npm/Go/Packagist packages and found no other malicious versions.

Attribution. No actor is named. Aikido assesses the campaign as distinct from GhostAction (October 2026, about 1,900 accounts, 30,000+ repositories, C2 193.32.204.199) based on separate infrastructure and payload design, with Indonesian-language comments in newer variants; it found 100+ repositories where the wfx payload was injected into leftover GhostAction workflow files. StepSecurity says the overlap does not prove a single operator and that stolen tokens are often sold or shared. 173 probe PRs from 19 accounts were made through the fly-io GitHub App (ID 34557); there is no evidence of a Fly.io breach. As of the 30 November 2026 StepSecurity update, status is unconfirmed (latest count 24 November), sources disagree on when probing ended (11 November 15:00 UTC vs new probes seen 12 November), no public GitHub statement was found, and no suspension or revocation of the compromised accounts was reported. Severity HIGH is an analyst judgment; no CVE or CVSS applies.

## MITRE ATT&CK

- T1078 Valid Accounts
- T1195 Supply Chain Compromise
- T1059.004 Unix Shell
- T1098.001 Additional Cloud Credentials
- T1098.003 Additional Cloud Roles
- T1078.004 Cloud Accounts
- T1003.007 Proc Filesystem
- T1552.001 Credentials In Files
- T1552.005 Cloud Instance Metadata API
- T1528 Steal Application Access Token
- T1550.001 Application Access Token
- T1005 Data from Local System
- T1119 Automated Collection
- T1560.001 Archive via Utility
- T1567 Exfiltration Over Web Service

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**wfx-loot TL-2026-7065 AWS Persistence: Wildcard Role Trust Policy, wfx Sessions and Role-Created Access Keys** (`TL-2026-7065-SPL-002`)

Detects the AWS persistence stage (T1098.003, T1098.001, T1078.004) of the wfx-loot stealer from campaign TL-2026-7065 in CloudTrail: iam:UpdateAssumeRolePolicy that rewrites a trust policy to Principal AWS '*', STS sessions named wfx-<pid>, and iam:CreateAccessKey performed by an assumed role. These actions let the attacker keep access after the leaked CI secrets are rotated, so they must be removed before rotation.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1098.003, T1098.001, T1078.004
- **Data sources:** aws:cloudtrail (index=aws), AWSCloudTrail, aws cloudtrail
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

````spl
index=aws sourcetype="aws:cloudtrail" earliest=-24h (eventName=UpdateAssumeRolePolicy OR eventName=CreateAccessKey OR eventName=AssumeRole OR eventName=AssumeRoleWithWebIdentity)
```wfx-loot TL-2026-7065 T1098.003 T1098.001 T1078.004 persistence: wildcard principal in trust policy, wfx-pid session names, access keys created by assumed roles```
| eval wildcard_trust=if(eventName="UpdateAssumeRolePolicy" AND match(_raw,"(AWS|Principal)[^A-Za-z0-9*]{1,12}[*]"),1,0)
| eval wfx_session=if(match('requestParameters.roleSessionName',"^wfx-[0-9]+$"),1,0)
| eval role_created_key=if(eventName="CreateAccessKey" AND 'userIdentity.type'="AssumedRole",1,0)
| where wildcard_trust=1 OR wfx_session=1 OR role_created_key=1
| eval actor_arn='userIdentity.arn', target_role='requestParameters.roleName'
| stats count min(_time) AS first_seen max(_time) AS last_seen values(eventName) AS events values(target_role) AS roles values(sourceIPAddress) AS source_ips BY actor_arn recipientAccountId
| eval first_seen=strftime(first_seen,"%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen,"%Y-%m-%d %H:%M:%S")
````

### Microsoft KQL

```kql
AWSCloudTrail
| where TimeGenerated > ago(24h)
| where EventName in ('UpdateAssumeRolePolicy','CreateAccessKey','AssumeRole','AssumeRoleWithWebIdentity')
| extend WildcardTrust = EventName == 'UpdateAssumeRolePolicy' and RequestParameters matches regex @'(AWS|Principal)[^A-Za-z0-9*]{1,12}[*]'
| extend WfxSession = RequestParameters matches regex @'roleSessionName[^A-Za-z0-9]{1,8}wfx-[0-9]+'
| extend RoleCreatedKey = EventName == 'CreateAccessKey' and UserIdentityType == 'AssumedRole'
| where WildcardTrust or WfxSession or RoleCreatedKey
| project TimeGenerated, EventName, UserIdentityArn, UserIdentityType, SourceIpAddress, AWSRegion, RecipientAccountId, WildcardTrust, WfxSession, RoleCreatedKey, RequestParameters
```

### Sigma

```yaml
title: wfx AWS Persistence via Wildcard Role Trust Policy or wfx Session Name
id: 8c2e5d90-1a3b-4f67-b8d4-2e9a6c7f3d02
status: experimental
description: Detects an IAM role trust policy rewritten to allow any AWS principal, and STS sessions named wfx-<pid>, as used by the wfx GitHub Actions secret stealer for persistence that survives secret rotation.
references:
    - https://www.stepsecurity.io/blog/wfx-phantom-the-github-actions-secret-stealer
    - https://www.endorlabs.com/learn/github-actions-supply-chain-attack-targeting-ci-secrets-at-scale
author: Threadlinqs Team
date: 2026-11-30
tags:
    - attack.persistence
    - attack.t1098.003
    - attack.t1098.001
    - attack.privilege_escalation
    - attack.t1078.004
logsource:
    product: aws
    service: cloudtrail
detection:
    selection_trust:
        eventSource: 'iam.amazonaws.com'
        eventName: 'UpdateAssumeRolePolicy'
        requestParameters.policyDocument|re: '(AWS|Principal)[^A-Za-z0-9*]{1,12}[*]'
    selection_session:
        eventSource: 'sts.amazonaws.com'
        requestParameters.roleSessionName|startswith: 'wfx-'
    condition: selection_trust or selection_session
falsepositives:
    - Intentionally public or cross-account roles that use a wildcard principal protected by strict Condition blocks
    - Break-glass or infrastructure-as-code pipelines that rewrite trust policies
level: critical
```

**Known false positives:**

- Intentionally cross-account or public roles whose trust policy uses a wildcard principal constrained by Condition keys
- Infrastructure-as-code or break-glass automation that legitimately rewrites trust policies or creates access keys from an assumed role

**Tuning notes:** Allowlist known IaC roles and break-glass principals for the role_created_key and wildcard_trust branches; the wfx-pid session-name branch is high fidelity and should not be suppressed. The wildcard regex reads the escaped policy JSON in the raw event, so confirm the policy document appears in your CloudTrail ingestion. After an alert, remove the trust policy change and any new access keys before rotating CI secrets. Query is untested against live telemetry.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- wfx Hidden CI Helper Script (.ci-xxxxxx.sh) Executed via Package Lifecycle Hook (locked: unlock with TL Creds)
- wfx Azure Persistence: Federated Identity Credential wfx-ci-N Added to App Registration (locked: unlock with TL Creds)
- wfx Exfiltration Commands: Callback Tokens, Telegram sendDocument or Raw-IP /exfil Upload (locked: unlock with TL Creds)
- wfx Poisoned Package Version Pulled: neuronai-studio 3.14.3, docker-env/redock Even Tags, gocurl Pseudo-Version (locked: unlock with TL Creds)
- wfx Runner Memory Scraping: /proc Memory Reads and Runner.Worker Enumeration (locked: unlock with TL Creds)
- wfx Cloud Lateral Movement: GitHub OIDC Role Assumption from Probe or Payload Branches (locked: unlock with TL Creds)
- wfx-loot Probe Pull Request and Payload Injection Indicators in GitHub Audit Data (locked: unlock with TL Creds)
- wfx Exfiltration: Web Traffic to Collection Servers or Telegram sendDocument (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 24)

Defanged, TLP:CLEAR.

- IP address: `194.150.166[.]244`
- Domain: `api[.]telegram[.]org`
- File hash: `89695abb392d5cfd4972672961e644bb46baa98aa1ed7173c2a2816c762735cf`

Full set of 24 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [StepSecurity: wfx-loot Campaign Update: 30 November 2026](https://www.stepsecurity.io/blog/wfx-loot-campaign-update-30-november-2026)
- [StepSecurity: WFX Phantom - The GitHub Actions Secret Stealer That Deletes Its Tracks](https://www.stepsecurity.io/blog/wfx-phantom-the-github-actions-secret-stealer)
- [Cloud Security Alliance: The wfx Campaign - Hijacked GitHub Accounts Harvest CI Secrets](https://labs.cloudsecurityalliance.org/research/csa-research-note-wfx-github-ci-secret-stealer-20261112-csa/)
- [Endor Labs: Hijacked GitHub Accounts Push wfx CI Secret Stealer to Thousands of Repositories](https://www.endorlabs.com/learn/github-actions-supply-chain-attack-targeting-ci-secrets-at-scale)
- [Semgrep: Seconds from Disaster - WFX Phantom and the CI Pipeline Nobody Was Watching](https://semgrep.dev/blog/2026/seconds-from-disaster-wfx-phantom-and-the-ci-pipeline-nobody-was-watching/)
- [Corgea: wfx-phantom / wfx-loot - neuronai-studio, gocurl, redock packages](https://corgea.com/research/wfx-phantom-wfx-loot-github-actions-secret-stealer-neuronai-studio-gocurl-redock-november-2026)
- [Techaeris: GitHub Actions attack hits 1,835 repos](https://techaeris.com/2026/11/12/github-actions-attack-hits-1835-repos/)
- [Safeguard: wfx CI secret stealer - 4,837 hijacked GitHub accounts, what to check and rotate](https://safeguard.sh/resources/blog/wfx-ci-secret-stealer-4837-hijacked-github-accounts-what-to-check-and-rotate)
- [Rescana: wfx-loot GitHub accounts CI secret stealer](https://www.rescana.com/post/wfx-loot-github-accounts-ci-secret-stealer-prepare-now)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7065
