The PolinRider campaign, linked to North Korean groups, has tampered with more than 7,600 GitHub repositories to spread malware. According to SafeDep, a loader hides in small utils packages or conftest.py files and, when Python imports it, reads the latest transaction of an Ethereum wallet to obtain JavaScript code. That code finds the command server through a second wallet and tampers with tools such as VS Code, Cursor and GitHub Desktop to install an infostealer. SafeDep found the loader in 375 public repositories belonging to 260 accounts.

What it means: Using blockchain transactions as a command channel makes the attackers' infrastructure very hard to take down, because nobody can delete a record from Ethereum. For development teams, the main lesson is that the risk does not come only from registries such as PyPI or npm, but also from repositories that are cloned directly, for example in hiring tests or open source projects that look trustworthy. A conftest.py file runs automatically when tests are executed, so a single pytest run is enough to trigger the loader. In practice, developers should check what changes in test configuration files before running them, execute unfamiliar code in isolated environments and watch for network requests to Ethereum nodes from machines that have nothing to do with blockchain. Because the loader also tampers with code editors, one infection can expose tokens, SSH keys and cloud passwords. Companies should have a policy on where outside code may run and should rotate credentials quickly whenever there is any suspicion of compromise.

Read the original on The Hacker News

Related service: Custom software

Related stories