Research

PolinRider Planted a 58-Line Python Loader in 375 GitHub Repos. It Reads Its Next Stage From an Ethereum Wallet. Here Is How to Check Your Clones

PolinRider Planted a 58-Line Python Loader in 375 GitHub Repos. It Reads Its Next Stage From an Ethereum Wallet. Here Is How to Check Your Clones

If you cloned someone else's Python project from GitHub this fall, search it today for the wallet address 0x3b1574417524c11a7403c4b232CAcBb320CceBC6 and for a small utils folder you did not write. If you find the loader and you ran pytest or the app on a machine with Node.js installed, treat that machine as compromised: rotate the secrets in its shell environment, its browser-saved passwords and cookies, and move funds out of any wallet on it, from a different, clean device.

The new research behind today's headline is SafeDep's, published Tuesday, November 24. The Hacker News covered it today. Unless we say otherwise, everything below comes from SafeDep's write-up and its published indicator list.

What happened

PolinRider is a long-running campaign that rewrites developers' own GitHub repositories so they carry malware. OpenSourceMalware, which first documented it in March 2026, says plainly: "PolinRider is a campaign run by North Korea (DPRK) that targets software developers." SafeDep's new post does not make an attribution of its own.

What is new this week is a Python version of the loader. In SafeDep's words: "The loader hides in a small utils package or in conftest.py. When Python imports the file, the loader reads the newest transaction that an Ethereum wallet sent to itself. It decodes the input data of that transaction as JavaScript and runs it with Node.js."

SafeDep's count, from GitHub code search on November 24: the exact loader in 375 repositories belonging to 260 accounts. 370 of those repositories had a push in November. Most are small personal projects, 189 stars in total. SafeDep says "No package on PyPI or npm carries it." This lives in source repositories, so a dependency scan will not find it.

About the headline number. The "over 7,600 repositories" figure is not SafeDep's. The Hacker News attributes it to Apiiro: at least 7,609 GitHub repositories owned by 2,330 accounts across the whole campaign, with 2,040 repositories hit between October 27 and November 6. Apiiro's page returned HTTP 403 to us, so we could not read how that was counted. Treat 7,609 as Apiiro's estimate as reported by The Hacker News; treat 375 as the Python-wave count we could read ourselves.

The repositories are victims. Their owners did not write the loader. Stolen GitHub access was used to rewrite commits the developer already made, keeping the author, message and date. SafeDep found loaders inside commits dated September 2025, more than a year before the wallet's first transaction, and two repositories where the loader sits in a commit whose message says it removes PolinRider. The dates in git history do not tell you when the loader arrived.

How the trap works

  1. The plant. A utils folder with six files: __init__.py, clients.py, http_session.py, net.py, session.py and transport.py. One holds the loader; the others are empty. Of the 375 loader files, the names were session.py (183), transport.py (65), clients.py (46), http_session.py (45), net.py (24) and conftest.py (12). Five import lines go at the top of a start file such as main.py, app.py or a Django asgi.py: import utils.net, utils.clients, utils.http_session, utils.transport and utils.session.
  1. What runs it. pytest imports every conftest.py it finds, so the 12 conftest.py loaders run on every test run with no import line needed. The utils loaders run when Python can find a top-level package named utils: a script started from the folder that holds it, or the 30 repositories with utils at the root. SafeDep tested three example apps and found their documented start commands failed with "No module named 'utils'" before the loader ran. Its warning: "A developer who reads the error No module named 'utils' and fixes the import path also starts the loader."
  1. The dead drop. The loader uses only the Python standard library. It asks the public Ethplorer API for the wallet's last 100 transactions, takes the newest one the wallet sent to itself, fetches it from ethereum.publicnode.com, decodes the transaction's input data as JavaScript, writes it to a temp .js file and runs node on it. Every error is swallowed, so a machine without Node.js shows nothing.
  1. The C2 lookup. That JavaScript reads a second wallet, 0x1eEf0849EDa15d87f64e51C73C8442Cf3c8bCEF3. Each of its zero-ETH "heartbeat" transactions goes to a made-up address whose first eight bytes are the C2 server's IPv4 address twice and whose last twelve bytes spell "helloipbot!!". OpenSourceMalware calls this NullReceiver. Moving every loader to a new server takes one transaction, so taking down a server changes little.
  1. The next stage. The JavaScript fetches /0x/cls and /0x/ls from the C2 over plain HTTP on port 443 and hands them to a detached node -i process through standard input, so a process listing shows only "node -i". SafeDep did not connect to the C2, so what those two scripts do today is not known. In the chain SafeDep followed to the end in September, later stages installed a stealer that took environment secrets, browser passwords, cookies and wallet data.

The same operator wallet also serves a JavaScript loader in npm projects. On October 19, that loader reached two pull requests to asyncapi/generator: an api.js file run by "npm run build" and "npm run dev", plus a loader appended to the last line of 14 jest.config.js files after a run of tab characters. The maintainers caught it and merged nothing.

The C2 timeline SafeDep published

Wallet 0x1eEf sent 366 heartbeats from September 4 to November 24, naming five servers:

What is not known

What /0x/cls and /0x/ls deliver in this wave. SafeDep did not fetch them.

How many people ran a loader. Nobody has published that. 375 repositories hold it; how many were cloned and tested is unknown.

How Apiiro counted 7,609. We could not read Apiiro's report (HTTP 403).

Whether every one of the 375 has a working import path. SafeDep says it did not check them all.

What to do

  1. Run the self-check below on every clone of a third-party Python or JavaScript project you have touched since September, especially coding tests, take-home assessments and small projects from strangers.
  2. If you find the loader and you ran pytest, the app, npm run build, npm run dev or Jest on a machine with Node.js: rotate the shell-environment secrets on that machine (cloud keys, GitHub, npm and PyPI tokens), change browser-saved passwords and sign out other sessions, and move funds out of any wallet extension or wallet file. Do it from a clean device.
  3. If you own an infected repository: delete the planted package, the import lines and any conftest.py loader. Then clean the computers that push to it and replace their GitHub tokens and SSH keys. SafeDep: "A repository gets infected again while those computers stay infected." OpenSourceMalware adds two locks worth turning on first: branch protection that blocks force-pushes, and required signed commits.
  4. In VS Code, set Task: Allow Automatic Tasks In Folder to off or prompt, globally. OpenSourceMalware reports PolinRider's fake-interview lures use a .vscode/tasks.json with "runOn": "folderOpen", which runs the moment you open the folder.

For security teams, SafeDep's network tells: a Python process that calls api.ethplorer.io and then ethereum.publicnode.com, followed by a node process that calls an Ethereum RPC endpoint or eth.blockscout.com and then a raw IP address; a node -i or node -e process with no terminal; and connections to 95.135.181.84 or 95.135.181.151 on port 443 or 80. Ethplorer and PublicNode are shared public services, so a request to them alone is not an infection.

Am I affected?

Check five things in every suspect clone. Run the searches from the top of the project folder.

The wallets. Search all .py and .js files, case-insensitive, for 0x3b1574417524c11a7403c4b232cacbb320ccebc6 and 0x1eef0849eda15d87f64e51c73c8442cf3c8bcef3, and for the strings getAddressTransactions and eth_getTransactionByHash. On macOS or Linux: grep -rniE with those four terms, limited to --include='.py' and --include='.js'. Any hit outside code you wrote is the loader.

The planted package. Search .py files for lines that start with "import utils.net", "import utils.clients", "import utils.http_session", "import utils.transport" or "import utils.session". A hit alone needs a look by hand, because plenty of projects have their own utils package. Open the folder: six files where five are empty and one makes web requests is the plant.

The conftest.py loader. Find every conftest.py in the project and check whether it contains NamedTemporaryFile together with subprocess and an Ethereum address. A test config has no reason to write a temp .js file and run node.

The git history. A clean final commit does not mean the version you ran was clean. Run git log --all --oneline -S 0x3b1574417524c11a7403c4b232CAcBb320CceBC6 in each repository; any commit listed carried the loader at some point. Also run git reflog and look for commits you do not remember making.

The JavaScript side. Look in package.json for a build or dev script that runs "node api.js" first. Look at jest.config.js and other config files (postcss.config.js, tailwind.config.js, eslint.config.mjs, next.config.mjs, vite.config.ts) for a last line that runs on far to the right after hundreds of spaces or tabs; OpenSourceMalware says a clean-looking config of about 5,000 bytes instead of the usual 80 to 200 is the tell. Also search for fa-solid-400.woff2 under public/fonts, a .vscode/tasks.json with "folderOpen", and the files temp_auto_push.bat or config.bat anywhere on disk. If you cloned asyncapi/generator or a fork, git cat-file -e 0e2d800 and git cat-file -e a891829 tell you whether you hold the two malicious commits.

If you want to block or alert while you check, every hash and address below is in our feed.

Block these

We added the network indicators, file hashes and wallet addresses SafeDep published to our feed. Block these indicators with the free DugganUSA feed (setup docs at docs.dugganusa.com).

C2 servers (source: SafeDep):

File hashes (SHA-256, source: SafeDep):

Ethereum wallets (source: SafeDep; for flagging, not network blocking):

  • 0x3b1574417524c11a7403c4b232CAcBb320CceBC6 (dead drop read by the Python loader)
  • 0x1eEf0849EDa15d87f64e51C73C8442Cf3c8bCEF3 (operator wallet whose heartbeats name the C2)
  • 0x6e82b409a357be8d8e88e7d4fcb588ded3de104f (funded the dead-drop wallet)

What we did not feed, on purpose: the 375 infected repositories, because their owners are victims, not attackers; api.ethplorer.io, ethereum.publicnode.com and eth.blockscout.com, because they are shared public services and blocking them would break legitimate work; the git blob IDs (0302eeba and e9e0e433), which match through git rather than a file-hash scanner; and the Ethereum transaction IDs, which no firewall can act on. They are in SafeDep's indicator list if you hunt with them.

What our own data shows

Before this post, our corpus already held the five C2 IP addresses and the api.js hash, all from public community feeds: TweetFeed listed all five and the hash this morning, November 26. Two had arrived earlier through public feeds, and our convergence promoter (our analysis that counts independent feeds, not a sighting of our own) had raised them: 95.135.181.151 on November 12, from ThreatFox (October 30), TweetFeed (November 9) and URLhaus (November 12); and 166.88.134.75 on October 20, from ThreatFox (September 24) and URLhaus (September 28, tagged DPRK). Those listings predate SafeDep's November 24 post. That credit belongs to those feeds; it is distribution, not a detection of ours, and none of those records named PolinRider. Today's ingest attaches the campaign, the C2 dates and SafeDep's references to them.

The three wallets and the other nine hashes were not in our corpus. We already held 16 earlier PolinRider records: 14 package URLs from a July research import and two Tron dead-drop addresses from an August backfill.

Our graph showed no other held address in either 95.135.181.0/24 or the other C2 blocks, even though we hold both .84 and .151 in the same /24. Those two records came in through community feed lanes the graph does not index, so read "no neighbors" there as a limit of the graph, not as clean.

We did not run an edge check. This loader runs on a developer's own machine when they test or start a project; it does not send web requests to servers like ours.

How we know

We read SafeDep's November 24 write-up directly and downloaded its published indicator list and its list of 375 repositories. Loader behavior, file names, counts, dates, the C2 timeline, hashes and wallets come from it. The North Korea attribution and the VS Code tasks, config-file and npm cli.js guidance come from OpenSourceMalware's developer guide (August 13, 2026). The 7,609 figure is Apiiro's as reported by The Hacker News; Apiiro's page refused our request. Our corpus and graph results are our own queries, run today.

Sources

SafeDep Team, "PolinRider Moves to Python with an Ethereum Calldata Loader" (November 24, 2026): https://safedep.io/blog/polinrider-python-loader-ethereum-calldata

SafeDep Team, "PolinRider Switches to Ethereum C2 in 30+ Repositories" (September 30, 2026): https://safedep.io/polinrider-ethereum-c2-github-repositories/

OpenSourceMalware, "A Developer's Guide to Getting Rid of PolinRider" (August 13, 2026): https://opensourcemalware.com/blog/developer-guide-getting-over-polinrider

Apiiro, PolinRider forged-commits research (not readable to us, HTTP 403): https://apiiro.com/blog/polinrider-north-korea-worm-forged-github-commits

The Hacker News, "North Korea-Linked PolinRider Poisons Over 7,600 GitHub Repositories to Spread Malware" (November 26, 2026): https://thehackernews.com/2026/11/north-korea-linked-polinrider-poisons.html

Block these indicators with the free DugganUSA feed

Read next: Fake Coding Test Malware: How to Scan a Recruiter's Repo Before You Open It


Every indicator in this post is in the feed. Free.

1.58M+ IOCs, STIX 2.1 / TAXII, 88% novel vs ThreatFox, exploited-CVE leads ahead of CISA. No credit card — a free API key in 30 seconds, and you can audit every claim above against the live endpoints.

Get your free key → analytics.dugganusa.com/stix/register