Hackers Hide PolinRider Malware in 375 GitHub Repositories to Execute Malicious Code

Blog WriterCybersecurity News - Original News Source is cybersecuritynews.com


Hackers planted PolinRider malware in 375 GitHub repositories, hiding a Python loader in ordinary-looking project files. The loader retrieves JavaScript stored in an Ethereum transaction and runs it through Node.js.

In some projects, running tests is enough to trigger the loader. In others, it can run when the application starts and imports the planted module.

The affected public repositories belonged to 260 accounts, and 370 had received a push in November 2026. Those figures describe the reach of the malicious code, not the number of machines infected.

Unlike the earlier PolinRider npm package compromises, this Python variant was found in repository source files, not in packages published to PyPI or npm.

Researchers at SafeDep.io identified the loader on the repositories’ default branches on November 24, 2026, after Jay Maier of Rising Sun Solutions first reported it that day.

The team traced the Python code to an Ethereum wallet and found a second wallet that pointed the malware to its command-and-control (C2) server. The server supplied additional code, but SafeDep did not retrieve it during this investigation.

Hackers Hide PolinRider Malware in 375 GitHub Repositories

SafeDep found the same 58-line loader in all 375 repositories. In 363 cases, it sat inside a planted package, often in a utils folder. The most common filename was session.py, which accounted for 183 copies.

The other 12 loaders appeared in conftest.py, a configuration file that pytest imports while collecting tests. That means the loader can run before a test case starts.

The risk resembles other GitHub repository malware traps that turn routine development work into a trigger. But opening or cloning a repository is not the same as executing this loader.

In three applications SafeDep checked, the documented startup commands failed because Python could not find the planted package.

Attack chain (Source – SafeDep.io)

That distinction matters: the import error prevented execution in those tests, but fixing the import path without inspecting the code could activate the loader.

Once loaded, the Python code reads the input data of the latest transaction an Ethereum wallet sent to itself. As of November 24, that transaction held roughly 31 KB of JavaScript.

The JavaScript used a second wallet to locate the C2 server, then handed further code to a separate Node.js process. The use of blockchain command and control lets operators change the server address without editing each planted file.

What Developers Should Check Before Running Tests

SafeDep also tied the second wallet to malicious changes in two AsyncAPI Generator pull requests. Maintainers did not merge the changes, and no automated build ran them.

Separate reporting on PolinRider in pull requests found that CircuitVerse’s build workflow did execute a loader. The contrast shows why incident responders should check what a workflow actually ran, rather than treating every malicious commit as proof of execution.

Start with a static review of the working tree and Git history before running tests or starting a suspect project. Look for unfamiliar conftest.py changes, new utility modules, and unexpected imports in application entry points.

A dependency scan alone can miss this variant because the loader uses Python’s standard library. Commit messages are not reliable proof of cleanup either: SafeDep found two repositories where commits claiming to remove malware still contained the loader.

If a suspect project ran on a machine with Node.js, SafeDep recommends treating the host as compromised. Isolate it and review process and network logs, then rotate exposed secrets from a clean machine.

Revoke affected GitHub tokens and SSH keys, invalidate browser sessions, and check automated build runners that handled the same code. Cleaning the branch without securing the machines and credentials that can push to it leaves the repository open to reinfection.

SafeDep observed the latest C2 address using plain HTTP on port 443. That protocol mismatch is worth checking alongside unexpected Node.js activity.

Earlier PolinRider stages stole browser passwords, cookies, environment secrets, and wallet data, but SafeDep did not verify what the server delivered in this Python wave. Responders should investigate possible exposure without reporting theft as a confirmed outcome.

Indicators of compromise (IoCs);-

Type Indicator Context
Ethereum wallet 0x3b1574417524c11a7403c4b232CAcBb320CceBC6 Wallet whose transaction data held the JavaScript stage.
Ethereum wallet 0x6e82b409a357be8d8e88e7d4fcb588ded3de104f Funded the loader’s wallet on October 24 and 28.
Ethereum wallet 0x1eEf0849EDa15d87f64e51C73C8442Cf3c8bCEF3 Operator wallet used to locate the C2 server.
C2 IP address 95.135.181[.]84 Active from November 12 and still observed on November 24; plain HTTP on port 443.
C2 IP address 95.135.181[.]151 Observed October 16–November 12.
C2 IP address 103.179.143[.]219 Observed October 14–16.
C2 IP address 23.27.13[.]72 Observed in one October 14 beacon.
C2 IP address 166.88.134[.]75 Observed September 4–12.
C2 URL hxxp://95.135.181[.]84:443/0x/cls Next-stage endpoint.
C2 URL hxxp://95.135.181[.]84:443/0x/ls Boot-stage endpoint.
SHA-256 45f1e5c405d1253b0014a17619581d31e1b94fdca8733519d84b9795a460f53a Python loader with LF line endings.
SHA-256 adf94e02b0dea9efbf0c02c522fd39d7b833adc41067e747c3eb0843e36a1f91 Python loader with CRLF line endings.
Git blob 0302eeba73c5e1b9717b60e6c07de110349cb4e9 Python loader with LF line endings.
Git blob e9e0e43379fbb8297d0b2d57b57b4ab94217d7e4 Python loader with CRLF line endings.
Ethereum transaction 0x474097c1e7162d858090b798e37ec7342cef00c44c8c71f1b8cdd755b6f75db7 November 11 transaction containing JavaScript build 4.
SHA-256 623daf99f3bba7ac590025b46d7d7e3fc8d8917629548d3c6e28cfb5aa1b6328 JavaScript build 4, 31,134 bytes.
Ethereum transaction 0x09d11256e2ea5a8125a4d69ce953400c71a4106164493ef79a2fffbb5c44efa2 November 1 transaction containing build 3.
Ethereum transaction 0xf4357b87bb0742d027728a20d303eef7103612f9c3d3684394908cffcf8858d3 October 28, 13:11 UTC; build 3.
Ethereum transaction 0x7fe11f4de256ad59d7b112fb107348672449f977b492da954f2dc18151806f3b October 28, 10:15 UTC; build 3.
SHA-256 65408e27530326d501d481955300fa8e3ef2fffc0b7b07ffa29747b7337e0f17 JavaScript build 3, 30,738 bytes.
Ethereum transaction 0x80bc5752477684554d986a93da091f03a0b1eaa0b34639dbeec5e5d9dee407ab October 28, 09:12 UTC; build 2.
SHA-256 42af73eeff9f91d44ee198e21c13977b955238525fc3948fa02bf0a6f4448e36 JavaScript build 2, 29,755 bytes.
Ethereum transaction 0x43ce178a28ab99ab29332c7867ce4e7c0dc7005978fb05fde817c64127e6d398 October 25 transaction containing build 1.
SHA-256 304d13ab3d081af5913a8e64ba6ac0daed80e9bfa3922dc2157a0b5abc758163 JavaScript build 1, 29,529 bytes.
Ethereum transaction 0x4b8243459fe1358cb12d76e959dba62038e7e6ba0877dba844c28d65983d4a7f October 24 transaction with input the loader could not decode as UTF-8.
Campaign marker A9-10502 Marker in the latest JavaScript stage observed by SafeDep.
HTTP header Sec-V Header carrying the campaign marker.
Process node -i Detached Node.js process; correlate with other indicators.

Note: IP addresses and domains are intentionally Qdefanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Join ANY.RUN and Torq to learn how TI Feeds can help your SOC detect up to 30% of malicious IOCs earlier & accelerate investigations -> Attend Free Live Webinar

The post Hackers Hide PolinRider Malware in 375 GitHub Repositories to Execute Malicious Code appeared first on Cyber Security News.