Poisoned Pipeline / Incidents / AS528
A 58-line Python loader planted in a fake utils package or a conftest.py in 375 public repositories read a 31 KB JavaScript stage from Ethereum transaction input data and handed it to a detached node -i process
Git / GitHubDeveloper workstation
SafeDep published this on 24 November 2026: 375 files in 375 public
GitHub repositories, belonging to 260 accounts, carry the same 58-line
Python loader. Three hundred and seventy of the repositories had a push
in November 2026; most are small personal projects, with 189 stars
between all of them. No package on PyPI or npm carries the loader, so a
dependency scan finds nothing — the payload lives in source
repositories. Jay Maier of Rising Sun Solutions (GitHub jaym2026) first
reported it the same day in issue #96 of meSingh/polinrider-scanner,
naming the wallet, the loader file and the wallet that funded it. The
post continues SafeDep's September report on PolinRider moving to
Ethereum command and control across 30-plus repositories, and it is the
Python arm of the same campaign that StepSecurity reported in JavaScript
the following day.
The loader is standard library only. It asks Ethplorer for the last 100
transactions of wallet
0x3b1574417524c11a7403c4b232CAcBb320CceBC6 using the public key
"freekey", takes the first transaction the wallet sent, fetches the full
transaction from ethereum.publicnode.com, decodes the input data from
hex to text, writes it to a temporary .js file, and runs node on that
file with a 20-second timeout. Every error is swallowed by an outer try,
so a machine without Node.js shows nothing, and the temporary file is
unlinked in a finally block. Because it needs no dependency, nothing in
requirements.txt or a lockfile hints at it.
The file names are chosen to look like part of an HTTP client:
session.py in 183 repositories, transport.py in 65, clients.py in 46,
http_session.py in 45, net.py in 24 and conftest.py in 12. Three hundred
and sixty-three of the loaders sit in a planted package — 307 in a
utils folder inside the project, 30 in a utils folder at the repository
root, and 26 in a folder such as lib, helpers, common or shared. In the
example repositories the planted utils folder holds six files —
__init__.py, clients.py, http_session.py, net.py, session.py and
transport.py — of which one is the loader and the other five are empty.
The attacker also adds five import lines to a start file: core/asgi.py
in one Django project, app/main.py in a FastAPI project and
src/rpr/cli.py in a command-line tool. GitHub code search finds 194
files that import utils.net, utils.clients and utils.http_session
together. The other twelve loaders are conftest.py files, which pytest
imports during collection without any import line at all.
Whether it runs depends on the layout. SafeDep rebuilt each example with
stub modules that print a line instead of the loader and ran the
documented commands from the repository root. A conftest.py at the root
ran under pytest; python src/rpr/cli.py ran; rpr and python -m rpr both
stopped at ModuleNotFoundError: No module named 'utils'; the README's
uvicorn app.main:app stopped there too, as did an ASGI server loading
core.asgi. The loader runs when Python starts a script from the folder
that holds utils, or when that folder is the working directory; it also
runs in the 30 repositories where utils is at the root. Where the import
fails the application does not start, and a developer who reads the
error and fixes the import path starts the loader. SafeDep did not check
every one of the 375 repositories for a working import path.
The wallet was funded on 24 October 2026 at 05:53 UTC with 0.000542 ETH
from 0x6e82b409a357be8d8e88e7d4fcb588ded3de104f, and sent its first
transaction to itself seven minutes later. All eight transactions go to
the wallet itself and store data in the input field: a three-byte
"Test", a 29,557-byte blob that is not valid UTF-8 and that the loader
cannot decode, then JavaScript builds of 29,529, 29,755 and 30,738
bytes, and a 31,134-byte build on 11 November. The newest build starts
with var bx = '-10502'; a table of hex strings XOR-encoded with 0x87 and
a small dictionary decompressor expand into 474 readable lines. It sets
a campaign marker of A9-10502, reads the block at the last multiple of
1,000 and the blocks around it looking for a transaction from wallet
0x1eEf0849EDa15d87f64e51C73C8442Cf3c8bCEF3, and falls back to a
transaction-count search and then to Blockscout's API. The first eight
bytes of the transaction's to address are two IPv4 addresses, in
practice the same one twice; the last twelve bytes are the text
"helloipbot!!". The heartbeat at block 26483000 on 24 November named
95.135.181.84. The stage then fetches http://<ip>:443/0x/cls and
http://<ip>:443/0x/ls — plain HTTP on the HTTPS port — XOR-decodes each
with a fixed key, runs /0x/cls twice, once with eval in the current
process and once in a new process, and runs /0x/ls only in a new
process. SafeDep did not contact the server, so the content of those
stages is unknown; in the chain its September report followed to the
end, the later stages installed a stealer that took environment
secrets, browser passwords and cookies, and wallet data.
The new process is where this build differs from September. It spawns
node -i, the interactive shell, with detached and windowsHide set and
stdio piped, waits for the "> " prompt and writes its next stage to the
child's standard input. A process listing shows node -i and nothing
else, where the September sample's node -e carried the stage on its
command line. The detached child also outlives the loader's 20-second
subprocess timeout. The global variables _H, _H2, _t_s and _t_u, the
/0x/cls and /0x/ls paths and the Sec-V header are the same as in the
earlier samples.
The wallet sent 366 heartbeats between 4 September and 24 November and
named five servers: 166.88.134.75 from 4 to 12 September (61
heartbeats), 103.179.143.219 from 14 to 16 October (28), 23.27.13.72
for one heartbeat on 14 October, 95.135.181.151 from 16 October to 12
November (194), and 95.135.181.84 from 12 November onwards (82). It sent
nothing between 12 September and 14 October. The current server is in
the same /24 network as the one before it.
The commit metadata is not evidence of when the loader arrived. In
Mizero-eloi/alu_regex-data-extraction-MizeroEloi the conftest.py loader
is in commit 82a87bb9, "[feat]: Added the test extractors", whose author
and committer dates are 26 September 2025 — thirteen months before the
wallet's first transaction. In wakaflorien/cst-research-api the loader
is in commit 1eb312a4, "fix: remove PolinRider malware (FixFlow)", dated
12 October 2026, twelve days before that first transaction. In
dedev-llc/rpr it is in efdf5f17c, "Remove injected malware from forced
pushes", dated 3 November. In two repositories the owner removed an
earlier infection and the newest commit still holds the Python loader:
a clean-up that does not also clean the machine that pushes to the
repository does not hold.
The stage reads the HuntRole wallet as its second hop, the same wallet
that StepSecurity tied on 24 November to a second fake recruiter run by
the AccuraSoftHire operator. The wallet that funded 0x3b15,
0x6e82b409, is separate; the connection is in the chain, not in the
funding. SafeDep attributes the loader to the PolinRider campaign and
does not name an operator.
Mapped techniques
- T0111 Malicious code contribution to an open-source repository
- T0113 Compromised user account
- T0195 Spoofed Commits
- T0238 Resolve the payload server from a public blockchain transaction
- T0159 Malicious artifact execution
- T0262 Hand the next stage to an interactive interpreter's standard input
supply-chain A fake HTTP-client module is committed to hundreds of repositories
The change never becomes a published package. A six-file utils
package — one loader, five empty files — is added to an existing
project, with five import lines placed in the application's start
file so the package is loaded when the project runs. The loader is
present in 375 repositories under 260 accounts, and 370 of those
repositories had a push in November 2026.
The commits land under the owners' accounts, which is how a loader
reaches the default branch of hundreds of unrelated personal
projects. SafeDep does not establish how each account was reached;
the campaign's later stages are reported to use a GitHub token
taken from an infected machine, and a repository is reinfected
whenever the machine that pushes to it stays infected.
The conftest.py loader sits in a commit dated 26 September 2025,
thirteen months before the wallet it reads made its first
transaction, and another loader sits in a commit whose message says
it removes PolinRider. Two repositories carry a "removed the
malware" commit whose tree still holds the loader, so the commit
list cannot be used to date the infection.
post-supply-chain A Python import reads the chain and runs the stage with Node
The loader reads wallet 0x3b15 through Ethplorer with the public
"freekey", takes the newest transaction the wallet sent, fetches it
from a public RPC node and decodes the input data. The JavaScript
stage then reads a second wallet, 0x1eef, whose to-address encodes
the C2 address in its first eight bytes. Blocking one server does
not help: the wallet named five between September and November, and
each address is readable as soon as it is posted.
The decoded input is written to a NamedTemporaryFile with a .js
suffix and run with node under a 20-second timeout; the outer try
hides every error, so the import succeeds silently on a machine
without Node.js. The stage fetches /0x/cls and /0x/ls as plain HTTP
on port 443 and XOR-decodes them with fixed keys.
The stage spawns node -i detached with windowsHide and piped stdio,
waits for the "> " prompt and writes the next stage into the
child's stdin. A process listing shows only node -i, where the
September sample's node -e carried the code in its arguments, and
the detached child outlives the loader's 20-second timeout.
Framework gaps noted
- The C2 content is unknown. SafeDep did not connect to 95.135.181.84, so what /0x/cls and /0x/ls return for this chain is unrecorded; the September chain ended in a stealer of environment secrets, browser passwords and cookies, and wallet data.
- The loader does not always run. In the rebuilt examples, rpr, python -m rpr, uvicorn app.main:app and an ASGI server all stopped at a ModuleNotFoundError for utils before reaching it, and only the root conftest.py and python src/rpr/cli.py ran. SafeDep did not check every repository for a working import path, and a developer who fixes the import starts the loader.
- The arrival time per repository is unknown. Commit dates are forged in at least three cases, and two "removed the malware" commits still contain the loader, so neither the commit list nor the file history dates the infection.
- The overlap with the JavaScript repository set is unmeasured. This report covers 375 Python repositories; StepSecurity's report the next day covers 576 JavaScript repositories, and the two sets were not compared.
- Attribution stops at the campaign. The chain reads the HuntRole wallet and uses the same /0x paths as the September samples, but SafeDep does not name an operator, and the wallet that funded 0x3b15 is not the wallet that funded the fake-interview infrastructure.