North Korea-Linked PolinRider Poisons Over 7,600 GitHub Repositories to Spread Malware
PolinRider’s attackers planted a Python loader in GitHub repositories. It was hidden in a small utils package or in a file named conftest.py. This let the malicious code run when Python imported the file, rather than requiring a user to launch it directly. The activity matters because repositories can become a route for delivering malware to developers. The loader read the newest transaction sent by a particular Ethereum wallet to itself. It decoded that transaction’s input data as JavaScript, then ran the code using Node.js. The JavaScript read a second wallet to find the command-and-control server, then passed the next stage to a detached interactive Node.js process. SafeDep found the loader in 375 public repositories belonging to 260 accounts. The article reports no evidence that it was distributed through PyPI or npm. SafeDep also said the activity may date back to February 2025. The findings show that malicious code can be placed directly in repositories, not only distributed as a registry package.
What did PolinRider add to GitHub repositories, and what did the loader do when Python imported it?
PolinRider’s attackers planted a Python loader in GitHub repositories. It was hidden in a small utils package or in a file named conftest.py. This let the malicious code run when Python imported the file, rather than requiring a user to launch it directly. The activity matters because repositories can become a route for delivering malware to developers.
The loader read the newest transaction sent by a particular Ethereum wallet to itself. It decoded that transaction’s input data as JavaScript, then ran the code using Node.js. The JavaScript read a second wallet to find the command-and-control server, then passed the next stage to a detached interactive Node.js process.
SafeDep found the loader in 375 public repositories belonging to 260 accounts. The article reports no evidence that it was distributed through PyPI or npm. SafeDep also said the activity may date back to February 2025. The findings show that malicious code can be placed directly in repositories, not only distributed as a registry package.
How many public repositories and GitHub accounts did SafeDep identify as affected?
SafeDep identified PolinRider’s Python loader in 375 public repositories. Those repositories belonged to 260 accounts. The figures show that the activity reached multiple public code projects and account holders, rather than appearing in just one isolated repository. The article does not say that every repository was actively used to infect a developer.
The loader was placed in a small utils package or in conftest.py, where Python could run it during an import. It then read an Ethereum wallet transaction, decoded its input as JavaScript, and launched that code with Node.js. The JavaScript used a second wallet to locate the command-and-control server and pass on another stage.
SafeDep reported no evidence that the loader had been distributed through PyPI or npm. Instead, the identified copies were in GitHub repositories. The article also says evidence suggests the campaign may have started as early as February 2025. These findings describe the observed scale, but they do not establish how many people or organizations were infected.
What is a command-and-control server, and how did the malware find its address?
A command-and-control, or C2, server is a system that attackers use to communicate with malware on compromised devices. It can provide instructions or help deliver additional malicious code. The article uses the term C2 but does not define it; this explanation reflects common cybersecurity usage. Finding the server address lets the malware know where to retrieve its next stage.
In the GitHub loader chain, Python first read a wallet transaction and ran the transaction’s input as JavaScript. That JavaScript then read a second wallet to locate the C2 server. The article also describes another JavaScript delivery path that extracts an address from a destination wallet using a technique called NullReceiver.
For that path, the destination wallet address reveals the same IP address twice in its first eight bytes: 103.179.142[.]155. The malware used that address to fetch two payloads, 0x/cls and 0x/ls, over port 443. These details show how blockchain transaction data and wallet addresses served as places to hide or retrieve delivery information.
What could the malware do after reaching a developer’s computer?
PolinRider’s later-stage malware targeted developer environments. The article says the payload scanned infected computers for installed developer applications, including GitHub Desktop, Cursor, VS Code, and Google Antigravity. This matters because developers use such tools to work on code and access repositories, which can provide attackers with opportunities to spread malicious changes.
After finding applications, the malware could tamper with the tools that were used most often. That tampering let it execute attacker-controlled code and deliver infostealer malware. Elsewhere in the campaign, compromised developer machines were used to steal GitHub tokens and force-push malicious commits to repositories the victim could access.
The article describes several ways the attackers sought access, including fake recruitment projects and malicious repository changes. It does not provide a count of infected computers or say that every targeted tool was successfully altered. Still, the combination of tool tampering, token theft, and infostealer delivery could put both a developer’s data and accessible repositories at risk.
How did fake job interviews and compromised maintainer accounts help the attackers spread malware?
PolinRider used both social engineering and access to developer accounts to spread malware. Fraudulent recruitment campaigns presented malicious projects as take-home assessments, encouraging candidates to run code. Fake hiring sites and phishing emails helped create the appearance of a real job process. The tactic matters because a candidate may run a project while believing it is a normal part of an interview.
The attackers also hijacked maintainer accounts to publish obfuscated malware in open-source ecosystems. The article describes disguises and delivery methods including fake font files, VS Code auto-run tasks, and rewritten Git history. In another route, compromised developer machines yielded GitHub tokens, which attackers used to force-push malicious commits into repositories the victim could access.
Some decoy sites added other lures: candidates were told to sideload a Chrome extension or paste commands into a terminal. The article describes these as additional delivery paths, alongside the interview and repository tactics. Together, the methods could turn a trusted hiring process, maintainer account, or developer machine into a way to distribute malware.
Why can changing one open-source repository put other developers or organizations at risk?
Changing one repository can create risk beyond its original contributors when other projects use its code or packages. The article describes open-source dependencies as a route through which compromised code can reach other users. That matters for organizations that rely on shared software components: one altered project may become part of software built or used elsewhere.
PolinRider reportedly hijacked maintainer accounts to plant obfuscated malware in open-source ecosystems. The campaign also used compromised developer machines to steal GitHub tokens and force-push malicious commits into repositories those developers could access. Palo Alto Networks Unit 42 said compromising a single maintainer account or registry scope can convert open-source dependencies into a route to widespread affected cloud environments.
The article does not quantify how many downstream projects or organizations were affected by this activity. It does describe the broader risk: open-source software registries can serve as an initial access vector, and repository changes can help distribute malware. The reported 375 repositories and 260 accounts indicate observed reach, not a confirmed count of infected organizations.
What is a software supply chain, and how do open-source dependencies fit into it?
A software supply chain is the set of components and processes involved in creating and delivering software. The article discusses supply-chain risk but does not define the term; this explanation uses common software-security usage. A weakness or compromise in one part can matter to people who rely on software built with it.
Open-source dependencies are shared packages or other code components that a software project uses. The article describes attackers publishing malicious packages, hijacking maintainer accounts, and changing repositories. If another project incorporates a compromised dependency, the malicious code may travel beyond the original repository. Unit 42 warned that compromising one maintainer account or registry scope could affect cloud environments more widely.
The article also distinguishes PolinRider from a typical supply-chain worm: it says North Korean state-sponsored actors use open-source registries as a primary initial access vector targeting corporate environments. SafeDep found the loader in GitHub repositories, with no evidence of PyPI or npm distribution. The broader implication is that both code repositories and package ecosystems can become routes for malware.
This brief was written by AI from the original reporting and checked by other models. Names, figures and quotes come from the source; read it for full context.
Read more in the JupiteX app
Pulse is free. New stories every 4 hours, each one broken into the questions that explain it.
Or read more news on the web