PolinRider Python loader hidden in 375 GitHub repositories
Compiled by RedTeamDaily · AI-assisted summaries · Human review not recorded for this version
Published
What happened
Attackers hid a small piece of malicious Python code inside 375 public GitHub projects. The code is designed to download and run more code that is stored on the Ethereum blockchain, and it can start when a developer runs the project's tests or starts the application.
Like I’m new · Written by AI from 1 source · Report an error
In depth
The malware, named PolinRider, was found in 375 public GitHub repositories by researchers at SafeDep.io, after Jay Maier of Rising Sun Solutions first reported it on November 24. The same 58-line Python loader appeared in every case, hidden in ordinary-looking project files. Unlike earlier PolinRider campaigns that targeted npm and PyPI packages, this variant sat in repository source files. The loader is triggered in different ways depending on the project. In some, running tests is enough, because conftest.py is loaded during test collection. In others, it can run when the application starts and imports the planted module. In three applications SafeDep checked, the documented startup commands failed because Python could not find the planted package, which prevented execution in those tests. SafeDep warns that fixing the import path without inspecting the code could activate the loader.
The loader reads the input data of the latest transaction an Ethereum wallet sent to itself, which held roughly 31 KB of JavaScript as of November 24. A second wallet points to the command-and-control server, so operators can change the server address without editing each planted file. SafeDep observed the latest C2 address using plain HTTP on port 443 but did not retrieve the further code the server supplied, and did not verify what it delivered in this Python wave. SafeDep also linked the second wallet to malicious changes in two AsyncAPI Generator pull requests, which maintainers did not merge. Separate reporting found that CircuitVerse's build workflow did execute a loader, so responders should check what a workflow actually ran. Earlier PolinRider stages stole browser passwords, cookies and wallet data, but theft is not confirmed for this wave.
Key points
- Hackers planted the PolinRider Python loader in 375 GitHub repositories belonging to 260 accounts, hidden in ordinary-looking project files.
- Most copies sat in a utils package as session.py, while 12 were in conftest.py, which can run before a test case starts.
- The loader fetches about 31 KB of JavaScript from an Ethereum transaction and runs it through Node.js.
- Jay Maier of Rising Sun Solutions first reported the loader on November 24, and SafeDep.io confirmed it the same day.
- Commit messages claiming cleanup are not reliable, as two repositories still contained the loader after such commits.
Q&A
- What is PolinRider and where was it found?
- PolinRider is malware that hackers planted in 375 public GitHub repositories, hidden as a Python loader in ordinary-looking project files. It affected repositories belonging to 260 accounts.
- Does simply cloning a repository infect my computer?
- No. According to SafeDep, opening or cloning a repository is not the same as executing the loader. It runs when tests are run or when the application starts and imports the planted module.
- What should developers do if they have run a suspect project?
- SafeDep recommends reviewing the code statically first, and treating any host that ran the project with Node.js as compromised. Isolate it, review logs and rotate exposed secrets from a clean machine.
- Who discovered the malware?
- Jay Maier of Rising Sun Solutions first reported it on November 24. Researchers at SafeDep.io then identified the loader on the default branches of the repositories the same day.
polinridergithub repositoriesmalicious python loaderethereum command and controlsupply chain attackconftest.pynode.js malwaresafedep
- Publishers
- 1
Sources and verification
Sources and editorial review
No named human review has been recorded for this story.
How severity and exploitation labels work · All sources · Report an error
What to do
- Statically review the repository's working tree and Git history for unfamiliar conftest.py changes, new utility modules and unexpected imports before running tests.
- Treat any machine that ran a suspect project with Node.js as compromised, isolate it and review process and network logs.
- Revoke affected GitHub tokens and SSH keys, invalidate browser sessions and rotate exposed secrets from a clean machine.
- Check automated build runners that handled the same code, and do not rely on commit messages as proof that malware was removed.
Written by AI from the sources, checked against them
Source timeline (UTC) · 1 update
1 published report from 1 publisher. Independent confirmations are unverified.
Explore this report
Ask AI about this story
Optional follow-up answers generated from our coverage. Check the linked sources before acting.
Ask your own questionWho and what is in it
Malware