PolinRider hides a Python loader in hundreds of GitHub repos, and running tests or the app can run it: check your repos, never run a stranger's code on your work PC, and rotate tokens if you did
SafeDep found a small Python loader planted in 375 public GitHub repositories owned by 260 accounts, linked to the North Korea-linked PolinRider campaign. It reads code from an Ethereum transaction and runs it with Node.js, and Apiiro estimates the wider campaign at 7,609 repositories. What it is, how to check your own repositories and what to do if you ran an infected project.
How urgent
Plan this week
Who is affected
Developers who clone and run public GitHub projects (Python or JavaScript), run pytest, build scripts or Jest in them, or whose GitHub account or token could be used to push code. Most affected repositories are small personal projects
What to do
Do not run a stranger's project, tests or scripts on the PC you work on; use a throwaway virtual machine. Search your own repositories and their history with the checks below. If a machine ran an infected project, treat it as compromised: rotate the secrets in its shell environment, GitHub tokens and SSH keys, and sign out browser sessions. Removing the code from a repository does not remove the access that pushed it, so rotate the credentials too
Published 27 Nov 2026 · Sources last checked 27 Nov 2026No. 133 / 168
Watch the short video
The video loads from YouTube (privacy-enhanced mode) only when you press play.
What happened
On 24 November 2026 the supply chainSupply chain attack An attack that reaches you through something you already trust and install, such as a code package, a tool or a provider. Tap again to open the glossary security company SafeDep published an analysis of a new kind of loader tied to PolinRider, a campaign that hides code in GitHub repositories. This time the loader is written in Python. A researcher first reported it in a public issue on the same day, and SafeDep confirms and extends that report.
SafeDep searched GitHub on 24 November and found the loader in 375 public repositories owned by 260 accounts, most of them small personal projects. Separately, the company Apiiro estimates the whole PolinRider campaign at at least 7,609 repositories across 2,330 accounts, according to press reports. The two numbers measure different things, so we do not add them together. We read SafeDep's report in full. We could not read Apiiro's own post, so its figure comes from press coverage.
Researchers link PolinRider to North Korea-linked actors, as a part of a campaign aimed at developers. That attribution comes from the press reports; SafeDep's page does not verify it.
How the loader works
The loader is about 58 lines of standard Python. It hides in one of two places:
- A planted
utilspackage, usually with files namedsession.py,transport.py,clients.py,http_session.pyornet.py, which the project'smain.pyorapp.pyimports at the top. Only one of those files holds the code; the others are empty. - A
conftest.pyfile, which the test tool pytest runs on its own when you run the tests.
When it runs, it reads the latest transaction of one Ethereum wallet through public services, treats the data in that transaction as JavaScript, saves it to a temporary file and runs it with Node.js. All errors are hidden, so a machine without Node.js shows nothing. This lets the attacker change what runs without touching the repository again.
SafeDep also decoded the next JavaScript stage: it looks up a second wallet to learn the address of the attacker's server, then downloads and runs two more scripts from that server. SafeDep says it did not connect to that server, so the final payload of this chain is unknown. For an earlier chain of the same campaign, SafeDep describes a stealer that takes environment secretsSecret (API key, token, password) Any piece of text that proves to a service that you are allowed in, such as an API key, a database password or an access token. Tap again to open the glossary, browser passwords, cookies and wallet data.
A project only runs the loader if Python can find the planted package. SafeDep found that running pytest from the repository root, or one of the project's own scripts, triggers it, while some other start commands fail with an import error before it runs. Fixing that import error can start it.
It can come back after a cleanup
SafeDep found two repositories where a commit says it removed the malwareMalware Any software made to do harm, such as stealing data, spying, locking files or giving an attacker control of a device. Tap again to open the glossary but the newest commit still held the Python loader. Earlier waves of the campaign forged commit dates and used force pushes, so commit dates are not reliable evidence of when the code arrived. Apiiro's reported advice is the same idea: removing the code does not revoke the access that pushed it.
What to do
- Do not run a stranger's project on your work PC. Do not run its tests, scripts or build there. Use a virtual machine you can delete. This is the same rule as for fake job tests.
- Check your own repositories with the commands listed below the steps.
- If a machine ran an infected project (tests, scripts, the app or an npm build), treat it as compromised: rotate the secrets in its shell environment, its GitHub tokens and SSH keys, sign out browser sessions and move funds out of any crypto wallets on it. Look for detached
nodeprocesses with no terminal and for connections to the IP addresses in SafeDep's list. - Clean the repository and the machines that push to it. Delete the planted package, the import lines and the
conftest.pyloader, and rotate the credentials those machines use to push.
Commands to check a repository
SafeDep gives these checks, to run inside your repository. A hit on the second one needs a manual look, because a project can have its own utils package.
grep -rniE '0x3b1574417524c11a7403c4b232cacbb320ccebc6|getAddressTransactions|eth_getTransactionByHash' --include='*.py' .grep -rnE '^import utils\.(net|clients|http_session|transport|session)\b' --include='*.py' .find . -name conftest.py -exec grep -l 'NamedTemporaryFile' {} +git log --all --oneline -S 0x3b1574417524c11a7403c4b232CAcBb320CceBC6
What we do not know
Whether the final payload is a stealer in this chain, who exactly is behind it, and how many of the 375 repositories actually run the loader, since SafeDep did not check every import path. SafeDep also says it could not confirm what the later stages download.
What we could not confirm
We read SafeDep's report in full. We could not read Apiiro's own post or The Hacker News article (it returned 403), so the 7,609 figure, the 2,330 accounts and the North Korea attribution come from press reports and we did not verify them in the primary source.
Keep reading
More stories on the same topic or from the same area.
- 13 malicious NuGet packages hide inside a fake .NET job test: building the take-home project runs attacker code; never build a stranger's test project on the PC you work onPlan this week 26 Nov 2026
- Attackers used 4,837 hijacked GitHub accounts to plant a CI secret stealer in thousands of repositories: check for the wfx-docs branch and rotate what your workflows can readAct now 12 Nov 2026
- Claude Code can save your passwords in a settings file: check your repos for .claude/settings.local.json and rotate what you findAct now 8 Nov 2026
Comments
No account needed. Add a nickname if you like, or leave it empty to comment anonymously. Comments are reviewed before they appear. Links are not allowed.
We store your comment, your nickname and a scrambled form of your connection that we use only to limit spam. We do not store your IP address or set cookies. Cloudflare Turnstile checks that you are not a bot.
Sources and verification
- SafeDep, PolinRider Moves to Python with an Ethereum Calldata Loader (24 Nov 2026; read in full 27 Nov 2026, with its indicator list) (opens in a new tab)
- The Hacker News, North Korea-Linked PolinRider Poisons Over 7,600 GitHub Repositories to Spread Malware (26 Nov 2026; reports Apiiro's estimate and the North Korea attribution; we could not open it, it returned 403, and we did not read Apiiro's own post) (opens in a new tab)
We use primary sources first and say when we rely on a news report. Dates are the day we last checked each source.
Spotted a mistake? Email [email protected] and we will correct it and note the change.