A developer clones a repository, runs pytest or imports a module called session.py, and their machine starts sending SSH keys, GitHub tokens and environment variables elsewhere. There is no odd dependency in requirements.txt and no warning from the lockfile scanner. That is how the PolinRider campaign works. It is attributed to North Korea-linked actors and attacks the software supply chain from inside a project's own source code.

At the end of November 2026, security firm SafeDep published a new variant. The Hacker News covered it on 26 November 2026, with a headline citing more than 7,600 poisoned GitHub repositories across the whole campaign.

A 58-line Python loader with no outside dependencies

According to SafeDep's report (published 24 November 2026), the loader is 58 lines long and uses only Python's standard library. Tools that scan dependencies or lockfiles therefore see nothing unusual.

When the file is imported, it queries a public API for the newest transaction of an Ethereum wallet, decodes that transaction's input data into JavaScript, writes it to a temporary file and runs it with Node.js. The real code lives on the blockchain, not in the repo, so the attacker can swap the payload without making a new commit.

The next JavaScript stage reads a second wallet to find the command-and-control server, then pipes the following stage into a detached node -i process. The code never appears in the process command line, which makes a simple process listing a poor detector.

Scale: 375 repos, 260 accounts, mostly small projects

SafeDep found this exact loader in 375 repositories owned by 260 accounts, and 370 of them had a push in November 2026. Most are small personal projects. That does not make the risk small: victims are often people who use such repos as templates, or contractors with write access to client repositories.

The report also records the same wallet's code reaching two pull requests to asyncapi/generator on 19 October 2026. The maintainers caught it and merged nothing. There is currently no evidence that this loader spread through PyPI or npm.

The loader tends to be named like part of an HTTP client: session.py, transport.py, clients.py, http_session.py, net.py, or it sits in conftest.py. Most copies are inside a utils folder.

The way in is still a person

PolinRider is not purely technical. The Hacker News reports that the campaign uses fake recruitment sites and take-home coding assignments to trick candidates into running malware. It also uses malicious packages on registries, VS Code auto-run tasks and Git history rewriting.

An infected developer machine loses its GitHub tokens, and those tokens are then used to force-push malicious commits into every repo the person can write to. A cleanup guide from OpenSourceMalware (13 August 2026) warns that rotating credentials and reinstalling the laptop is sometimes not enough, because the malware can return through repositories that were already poisoned.

What your engineering team should check today

Run these in the root of each repository, including Next.js or Node.js projects that have Python tooling folders:

# 1. Look for the loader's markers: wallet addresses and the two public services it calls
git grep -n -i -E "0x3b1574417524c11a7403c4b232CAcBb320CceBC6|0x1eEf0849EDa15d87f64e51C73C8442Cf3c8bCEF3|ethplorer|publicnode" $(git rev-list --all | head -50)

# 2. List suspiciously named files inside utils folders
find . -path ./node_modules -prune -o -path "*/utils/*" \( -name session.py -o -name transport.py -o -name clients.py -o -name http_session.py -o -name net.py \) -print

# 3. Check for config that auto-runs when a folder is opened
grep -rn "folderOpen" .vscode/ 2>/dev/null

Command 1 scans the latest 50 commits; raise the number for large repos. A hit on ethplorer or publicnode alone does not prove infection, since both are public services, but a wallet address match should be handled as an incident. The report also lists the command-and-control address 95.135.181[.]84 (written in defanged form); search your firewall and DNS logs for it.

Then do the following:

  • Review unusual commits from the last 60 days, especially messages like "remove malware" or commit dates that do not fit the history. SafeDep noted a commit carrying forged dates more than a year old.
  • Require reviews on the main branch, block force-push, and use short-lived, repo-scoped GitHub tokens.
  • Open code from candidates, partners or sample repos inside a VM or container, never directly on a machine holding work SSH keys and tokens.
  • If you suspect a machine: cut its network, rotate all keys and tokens from a clean machine, and re-audit every repo that account can write to before reconnecting it.

If you outsource software development

Ask your vendor how they handle outside code, manage tokens and review commits. A client's repository is only as safe as the machines that can write to it. We covered a related case in the CI/CD secret leak that hijacked 4,837 GitHub accounts, and API keys leaking through AI agent logs shows how misplaced tokens become an entry point. If you want a second pair of eyes on your process, browse the projects Besoft has delivered and talk to our engineers.

Sources