Saturday 28 November 2026 Edition compiled at 07.45 NL EN FR
← Tech · Programming languages
Tech · Programming languagesSupply chain

Run the tests and the loader starts: hundreds of GitHub projects contain Python code that fetches its orders via Ethereum

SafeDep found the same hidden loader in 375 public repositories, and Apiiro estimates that the campaign, which has been linked to North Korea, has already hit more than 7,600 projects.

· latest source update vr · 2 sources · The Hacker News, Cybersecurity News · Compiled with AI
Illustration for this article

Researchers at SafeDep have found the same 58-line Python loader in 375 public GitHub repositories belonging to 260 accounts, The Hacker News and Cybersecurity News report. Jay Maier of Rising Sun Solutions first raised the alarm on 24 November. The code usually sits in a planted package, often in a utils folder with session.py as the most common file name, and in twelve cases in conftest.py, the file pytest loads when it collects tests. Anyone who runs the tests or starts the application therefore executes the loader.

The loader reads the data of the latest transaction an Ethereum wallet sent to itself. That contains JavaScript which uses a second wallet to look up the address of a command server, so the operators can change that address without editing every file. A detached Node.js process then starts with further code, which SafeDep was unable to retrieve. The company advises treating any machine that ran a suspect project as compromised. In two repositories the loader was still present in commits that supposedly removed it.

According to The Hacker News, this is the PolinRider campaign, which has been linked to North Korea. Apiiro estimates it has already turned up in at least 7,609 repositories owned by 2,330 accounts, 2,040 of them between 27 October and 6 November. This loader did not spread via PyPI or npm, SafeDep says. An account that opened more than 200 pull requests against open-source projects to slip in malicious commits has since been suspended.

Spotted a mistake in this article? Let us know.