Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

Apiiro's cover graphic for its PolinRider research, titled Under Your Name, Inside PolinRider, the 7,609-repo North Korea-linked worm that forges developers' commits, showing a robotic arm force-pushing signed commits from a cloud to a developer's desk, with labels for git push --force, tailwind.config.js, npm run dev and an Ethereum wallet.
Image: Apiiro (fair use), cover of its PolinRider research by Shmulik Cohen.

Detection

PolinRider Now Hides a Python Loader That Runs When pytest Starts, as Apiiro Counts 7,609 GitHub Repositories Rewritten Under Developers' Own Names

SafeDep found the North Korea-linked campaign's new Python loader in 375 repositories, reading its code from an Ethereum transaction and handing the next stage to a hidden Node.js shell. Apiiro's census shows why cleanups keep failing: the worm forges and backdates commits with stolen access, and pushes again after owners remove it.

Ava Okello, DetectionLondon8 min read

LONDON - A North Korea-linked campaign that turns developers' own GitHub accounts into a distribution network for malware has added a Python loader that runs the moment a developer starts the pytest test runner, and a separate census of the campaign shows that cleaning an infected repository often does nothing to stop it coming back.

The software supply chain security company SafeDep said in research published this week that the PolinRider loader now hides in a small utils package or in conftest.py, a file pytest loads automatically. On Nov. 24 it found the same 58-line Python loader in 375 public GitHub repositories belonging to 260 accounts. No package on PyPI or npm carries it, so dependency scanners will not see it. The loader sits in source code that developers clone and run.

The new variant lands on top of a far larger footprint. Apiiro, an application security company, said in a census by researcher Shmulik Cohen that it found PolinRider in at least 7,609 GitHub repositories owned by 2,330 accounts, most of them working developers rather than throwaway profiles. From Oct. 27 to Nov. 6 alone, the worm pushed its loader into 2,040 repositories, 956 of them newly infected.

For detection teams, the two reports point to the same uncomfortable conclusion. The infected file is the symptom. The stolen access that pushed it, and the developer machine behind that access, is the incident.

A test file that phones a blockchain

SafeDep said the loader was first reported on Nov. 24 by Jay Maier of Rising Sun Solutions in an issue on a community PolinRider scanner project, and that its own work confirmed the report, measured the spread and decoded the payload.

SafeDep flow diagram of the PolinRider Python loader: pytest or a script imports conftest.py or utils, the 58-line Python loader reads wallet 0x3b15, whose newest self-sent transaction holds JavaScript, node runs the stage from a temporary file with marker A9-10502, the stage reads the 0x1eEf heartbeat wallet for the C2 address 95.135.181.84, fetches /0x/cls and /0x/ls on port 443, and passes the next stage to a detached node -i process.
Image: SafeDep (fair use), the Python loader's execution chain from its Nov. 24, 2026, research.

The chain has no server address written into it. When Python imports the file, the loader reads the newest transaction that an Ethereum wallet, 0x3b1574417524c11a7403c4b232CAcBb320CceBC6, sent to itself, through the public Ethplorer API and an Ethereum RPC node. The input data of that transaction is a JavaScript program, which the loader decodes and runs with Node.js. That JavaScript reads a second wallet, 0x1eEf0849EDa15d87f64e51C73C8442Cf3c8bCEF3, whose transactions encode the command server's IP address, and fetches two further scripts from it over plain HTTP on port 443.

The wallet sent eight transactions to itself between Oct. 24 and Nov. 11, SafeDep said. The newest holds a 31 KB JavaScript stage carrying the campaign marker A9-10502. Since Nov. 12 the second wallet has pointed to 95.135.181[.]84, in the same network block as the previous server, 95.135.181[.]151.

The change SafeDep flagged for defenders is in the last step. The stage starts node -i, the interactive Node.js shell, as a detached process with no window, waits for its prompt and writes the next stage to the shell's standard input. Earlier samples passed their code to node -e on the command line, where a process listing exposed it. Now a listing shows only node -i, and the detached process outlives the Python loader's own 20-second time limit.

Not every planted import fires. In three example applications SafeDep checked, the documented start commands failed with the error No module named 'utils' before the loader ran. A developer who fixes that import path also starts the loader, the company noted. The conftest.py variant has no such gap: it runs every time pytest runs in that folder.

Commits forged under the owner's name

Apiiro's census explains how the loader reaches so many repositories without anyone noticing. Using stolen GitHub access, the worm rewrites commits the developer already made, keeping the author, message and date, and adds a loader hidden after hundreds of spaces at the end of a build configuration file such as tailwind.config.js, postcss.config.mjs or eslint.config.mjs. Cloning runs nothing. Running npm run dev, build or lint loads the configuration and the loader with it, whether the person building is the owner, a CI runner, someone who forked the project or a coding agent.

Apiiro diagram titled PolinRider Attack Flow, in six steps: the worm gets a developer's Git access, force-pushes a loader hidden after hundreds of spaces into tailwind.config.js, the next npm run dev executes it, the loader reads the latest transaction from wallet 0xa322 on Ethereum, decodes the C2 address from the recipient and calls home, and cleaning the file leaves the access valid so the worm can force-push again.
Image: Apiiro (fair use), the PolinRider attack flow from its census research.

GitHub's own records expose the forgery even when git log does not. Apiiro said that in 4,402 of 4,460 injection pushes it could resolve, across 2,975 repositories, the worm swapped a clean commit for a copy with the same author, message and timestamps to the second, plus the loader. In 628 repositories the replaced commit was a merge GitHub itself had signed, and the copy was unsigned. In 94 percent of 9,990 injection pushes, the forged commit claimed to be more than an hour older than the push that delivered it.

SafeDep found the same pattern in the Python wave. One conftest.py loader sits in a commit dated Sept. 26, 2025, more than a year before the wallet it reads made its first transaction on Oct. 24, 2026. In two repositories, the loader is in a commit whose message says it removes PolinRider malware.

Why cleanup fails

Apiiro said 1,949 repositories received new injection pushes after they appeared on public lists of infected projects, and 9 of 16 repositories with a "remove PolinRider" commit had the loader pushed back over the cleanup, the latest on Oct. 25. One owner's repositories went through five rounds. In 553 repositories, owners kept pushing work on top of the infected commit, 1,167 times in all, and 95 percent of the census repositories showed no public sign the owner had noticed.

Apiiro chart titled Public lists came first. The rewrites kept coming, showing public infection lists on March 18, April 11, July 10 and July 21, the resolver wallet's first transaction on July 25 at 06:35 UTC, and weekly re-injection pushes after public listing from late July to mid-October, peaking at 848 pushes in the week of Aug. 3.
Image: Apiiro (fair use), weekly re-injection pushes after public listing, from its census research.

The named victims include Neutralinojs, a desktop application framework, and InstaWP Connect, a WordPress plugin, where Apiiro said a padded tailwind.config.js was removed about 23 hours later, before any stable release. Apiiro also listed fxhash among breached projects and said 293 infected repositories carry coding-agent configuration, which matters because agents routinely run dev, build and lint commands that load the infected file.

Earlier PolinRider stages documented by Apiiro and others include a remote-access tool that skips CI sandboxes, reads the clipboard, uploads files and plants loaders in VS Code, Cursor, Discord and GitHub Desktop, followed by stealers that take browser data, crypto wallets, password managers and cloud and GitHub tokens. SafeDep said it did not contact the command server, so the content of the current next stage is unknown.

What detection teams should hunt

The two reports publish read-only checks and network signals that translate directly into hunts:

  • Source trees, not package manifests: search Python projects for the wallet address 0x3b1574417524c11a7403c4b232CAcBb320CceBC6 and for the calls getAddressTransactions and eth_getTransactionByHash, conftest.py files that use NamedTemporaryFile, and imports of utils.net, utils.clients, utils.http_session, utils.transport or utils.session. Run git log --all -S with the wallet address, because a cleanup commit can leave the loader in history or in place.
  • JavaScript projects: a semicolon followed by 200 or more spaces or tabs in .js, .mjs or .cjs files on every branch, 40 or more consecutive \u00XX escapes in one file, npm scripts that start with node init && or node api.js &&, a .vscode/tasks.json task set to "runOn": "folderOpen" that runs node on a file under fonts/, and a committed .env whose AUTH_API_KEY decodes to a URL.
  • Endpoints: node -i or node -e processes with no terminal, especially as children of python or pytest, and connections to 95.135.181[.]84 or 95.135.181[.]151 on port 443 or 80.
  • Network: a Python process calling api.ethplorer.io and then ethereum.publicnode.com, followed by a node process calling an Ethereum RPC endpoint or eth.blockscout.com and then a raw IP address. Public RPC hostnames such as publicnode, blastapi, drpc.org, 1rpc.io, trongrid, aptoslabs and bsc-dataseed have little business in CI runners or build containers outside Web3 teams, and Apiiro recommends blocking them there.
  • GitHub audit data: force-pushes whose commit is dated days or weeks before the push, and unsigned commits replacing signed merges, in the repository's Activity view or audit log.

A hit should be handled as a credential incident. Both companies said removing the code does not revoke the access that pushed it. Apiiro advises rotating every GitHub and npm token the affected machine could reach and checking deploy keys, Actions secrets, CI runs and releases since the infection. SafeDep advises treating any computer that ran pytest, the planted script or the JavaScript build commands in an infected project as compromised, rotating the secrets in its shell environment and the passwords and session cookies saved in its browsers. Opening unfamiliar repositories in VS Code's Restricted Mode, which does not run automatic tasks, closes one of the quieter triggers.

About the Author

Ava Okello

Ava Okello covers detection engineering, EDR telemetry, and SOC hunting for SOCtember from London.

Related stories

Detection desk