Poisoned Pipeline / Incidents / AS521

AS521 · 2026-11

Forty-five repositories on hijacked GitHub accounts ran a React2Shell scanner from GitHub-hosted runners, committing stolen environment dumps, AWS role credentials and AI provider keys from at least 1,281 hosts back into the same public repos

Git / GitHubGitHub ActionsAWS

OpenSourceMalware published this on 18 November 2026, building on
discovery work by Karina Reaño, who had found 38 repositories scanning for
Next.js servers vulnerable to React2Shell (CVE-2025-55182) and the Next.js
middleware authorization bypass (CVE-2025-29927). The expansion is 45
repositories named ci-wk-<number> across 44 owners, created in three waves:
at least 26 in about eight minutes on 22 October from 02:05 UTC, eight
within 26 seconds of each other on 11 November at 04:15, and five within 90
seconds on 14 November at 14:43. The third wave is staged only — scripts, a
one-line README and the same 1,845-host target list in all five, with no
results.

Each repository holds four files. .github/workflows/scan.yml is dispatched
by hand with a chunk input naming the host list to scan, runs on
ubuntu-latest with permissions contents write and timeout-minutes 350,
installs aiohttp, jsmin, requests, dnspython and aiodns, raises the
open-file limit to 65,535, splits the list in two and runs a prefilter over
each half at 400 concurrent connections against its own default of 90.
bin/prefilter_nextjs.py keeps only hosts that answer as Next.js;
bin/batch_output.py then exploits them with two scanners at 250 concurrent
targets each. bin/fast_recon.js is the payload that runs on a victim once
exploitation succeeds.

The target lists are the visible part of the operation. Each
hosts_<date>_<time>.txt file holds 20,000 hostnames drawn from inventories
the write-up says are reportedly derived from certificate transparency
data; one first-wave repository held 1,266 of them, about 18 million unique
hostnames. New lists went in almost daily from 22 October to 17 November,
about 45 a day at first and more than twice that from 13 November, so the
scanning never ran out of targets.

Exploitation is scripted in seven React2Shell variants tried in a fixed
order — plain, a duplicate x-action-id header, a randomized multipart
boundary, chunked encoding, an 8 KB padding prefix, spaces inside the
Content-Type value, and a null byte before it — followed by the
x-middleware-subrequest header repeated five times for CVE-2025-29927, and
an SSRF through the Next.js image endpoint pointing at 169.254.169.254 to
read the instance's IAM role name and then that role's temporary
credentials.

fast_recon.js collects more than the exploit response needs. It reads the
process environment, cloud credential files, Kubernetes tokens and .env
files, and checks 28 environment variable names across ten AI providers,
testing every key it finds with a real inference request capped at 20
tokens; for DeepSeek and OpenRouter it also reads the account balance.
Requests carry a desktop Chrome user agent because, as a code comment says,
Cloudflare-fronted providers answer 403 to bare agent strings. A later
variant returns the full contents of every .env and config file it named,
capped at 300 KB per victim; in one repository 142 of 143 victim records
carried them.

What the workflow does with the loot is the reason this belongs in the
catalogue. The push step runs git add -A, commits as w <w@w> with the
message results <epoch> and pushes, guarded by if always and a trailing
or-true, so whatever exists is published even when the scan errors or the
job times out. Loot therefore accumulates in the same public repository that
ran the attack, in three formats at once — plain text under vulnerables/,
JSON, and ZIP archives — so deleting one file does not remove the data. A
snapshot of eleven still-accessible repositories held about 9,100 ZIPs,
3,800 JSON files and 3,000 plaintext records, around 7.4 GB. A Telegram bot
token and chat ID are hard-coded in batch_output.py in every repository, but
sending is behind SEND_TELEGRAM and off by default.

At the latest commit the 34 repositories with results name 1,281 unique
victim hostnames across about 1,100 domains, 38 to 894 per repository, and
new results were still landing about every eleven minutes on 17 November.
The records contain full environment dumps, hostnames, network interfaces,
listening ports and config file contents, which is what makes them evidence
the payload ran rather than only that it was served; the credentials that
appear most often are database URLs, Stripe keys and AI provider keys.

The accounts are victims. The runs are dispatched through the API with each
owner's own token — in two repositories the newest 100 runs were
workflow_dispatch runs by the owner's account, the two repos' runs about
nine seconds apart — while GitHub attributes every w <w@w> commit to a
single account, dascxzcw, which now returns 404. Of the 26 owner profiles
that could be read, the median owner has four public repos, six have the
React2STEAL repo as their only public repo, and 20 have no followers; the
accounts were created between 2011 and 2026 and some sit on company email
domains. Twenty-five of 39 repositories examined also carry a wfx-docs
branch holding the wfx-loot probe file docs/wfx-audit.md, byte-identical in
24 of them to blob ee6e5addfe591923fc385553cb66cf0d25634a6b, dated 10
November 13:00 to 22:42 UTC and 11 November 05:12 to 08:03 UTC — the window
of the wfx-loot probe wave recorded in AS511. Twenty-five of 38 owners
searched have wfx-loot probe pull requests somewhere, and four have
wfx-loot payload-stage commits on other repositories.

Five repositories also hold branches named ci-sync-<six characters>, six in
all, each with one commit titled ci sync config dated 31 October and
authored under the owner's identity. The workflow they add prints the
Actions secrets context into the run log base32-encoded, and its runs do not
appear in those repositories' Actions history. In all five the React2STEAL
scanner had stopped three days earlier, on 28 October. OpenSourceMalware
attributes that workflow to neither campaign: printing base32-encoded
secrets to the log is a technique documented for wfx-loot, but shared
technique is not shared code.

The scripts carry dated comments from 10 September to 9 October 2026,
written before the first repository existed — a prefilter measured against
45 known-vulnerable hosts on 18 September, concurrency cut from 250 to 150
and then 90, a fix for 84 Perplexity keys a day being marked dead because
their auth endpoint returns 404 for valid keys. Taken at face value the
pipeline ran at volume for about six weeks before it appeared on GitHub,
though the dates are the author's own notes. The write-up also argues the
code reads as AI-assisted — operator directives recorded in comments,
changelog-style dated fixes, a hit-rate table for a script not in the
repository, and the operator's own bot name redacted while its token sits in
plain text below — and finds no ARTEX traces in it.

Mapped techniques

supply-chain Hijacked accounts supply the repositories, tokens and runner compute for the campaign

T0113 · Initial Access · Compromised user account

45 repositories belong to 44 owners whose own tokens dispatched the
runs. The evidence that the owners are not the operators is
circumstantial but consistent: the same accounts carry wfx-loot
probe branches from three days earlier (AS511), every result commit
is attributed to one account, dascxzcw, and the owner profiles look
like ordinary developers. How the tokens were obtained is not
established; the write-up floats a third-party OAuth app as one
possibility and says it has no evidence for it.

T0166 · Execution · Trigger pipeline execution

scan.yml is workflow_dispatch only, with a chunk input that names
the host list. Nothing in the repository runs on push: the operator
starts each batch through the API with the owner's token, which is
also why the runs in two repositories were timestamped nine seconds
apart.

T0139 · Impact · Resource hijacking

The campaign's entire compute is GitHub-hosted: ubuntu-latest jobs
with a 350-minute timeout, ten minutes short of the six-hour ceiling,
running the prefilter at 400 concurrent connections and two
exploitation scanners at 250 each. No attacker-owned server takes
part in scanning or exploitation, so the runners are both free
capacity and infrastructure the operator does not have to host.

post-supply-chain The runner scans for Next.js hosts and exploits React2Shell, the middleware bypass and an image-endpoint SSRF

T0105 · Reconnaissance · Active scanning

Host lists of 20,000 names went in almost daily for four weeks,
about 18 million unique hostnames in one repository alone, and the
prefilter tested each one for Next.js before exploitation. The
write-up says the inventories are reportedly derived from
certificate transparency data.

T0122 · Initial Access · Vulnerability in third-party dependency

React2Shell (CVE-2025-55182), a pre-authentication RCE in React
Server Components 19.0.0, 19.1.0, 19.1.1 and 19.2.0, is tried in
seven request shapes before CVE-2025-29927, which trusts the
x-middleware-subrequest header and can skip Next.js middleware
including authentication. Both are flaws in the framework the victim
runs, with fixes available; neither was patched in the targets the
scanner found.

T0183 · Credential Access · Harvesting short-lived token

The Next.js image endpoint is pointed at the instance metadata
address twice, first for the role name and then for that role's
temporary credentials, so the theft reaches beyond the application
into whatever the instance role allows.

post-supply-chain The payload dumps the victim's environment, config files and AI provider keys

T0140 · Credential Access · Harvest tokens from environment variables

The full process environment is returned, not a named subset. The
payload separately looks for 28 variable names across ten AI
providers and tests each key it finds with a real inference request,
capped at 20 tokens and sent with a desktop Chrome user agent because
Cloudflare-fronted providers reject bare ones.

T0184 · Credential Access · Harvesting sensitive information from files

Cloud credential files, Kubernetes tokens and .env files are read
alongside the environment. A later variant returns the complete
contents of every .env and config file it named, capped at 300 KB per
victim; 142 of 143 victim records in one repository carried them.

post-supply-chain The workflow commits the stolen records into the public repository that ran the attack

T0199 · Impact · Secret leak

git add -A, commit as w <w@w>, git push, with the step marked to run
always and failures ignored, so partial results are published even
when the job fails. Results land in three formats at once, so
removing one file does not remove the data, and a clone, fork or
cache keeps it after the repository is deleted. The same commit loop
is how the target lists arrive, about 1,280 chunk commits against
about 1,050 result commits in a typical first-wave repository.

supply-chain Unexplained workflow on five of the same accounts prints every secret to the Actions log in base32

T0219 · Exfiltration · Exfiltrate secrets through the CI platform log store

Six ci-sync branches with six-character suffixes across five
repositories carry one commit each, dated 31 October, adding an
18-line workflow that writes the Actions secrets context through
base32 into the run log. The runs do not appear in the
repositories' Actions history. The write-up attributes this to
neither campaign: it matches wfx-loot's documented approach but
shares no code with either.

Framework gaps noted

Sources