PolinRider hides its control server inside Ethereum transactions
A malware campaign hides in GitHub repositories and reads its next move from a cryptocurrency wallet's own transactions, making its control server untouchable by takedown.
PolinRider, a malware campaign documented by security firm SafeDep, hides inside GitHub repositories and fetches its instructions from Ethereum transactions instead of a web server. A Python loader, usually planted inside a fake utils package or a conftest.py file, had reached 375 repositories across 260 accounts by 24 November. A newer TypeScript variant, appended to build configs like vite.config.ts, had spread to 528 repositories across 322 accounts by 28 November, mostly small personal projects.
The loader reads the most recent transaction a wallet sent to itself, decodes the data as JavaScript, and runs it through Node.js. A second wallet’s transactions tell it which server to call, so the attackers can move infrastructure with a single transaction instead of touching code in thousands of repos. To hide the trail, they rewrite the commits that planted the loader with forged, backdated authorship: one claims a date a year before the wallet’s first ever transaction. It only runs when you execute pytest, npm run dev or npm run build, not on install or clone.
Why it matters: this spreads through compromised developer accounts and ordinary build commands, not a malicious package install, so scanning what you install from npm or PyPI won’t catch it. SafeDep’s post includes grep commands for the wallet addresses to check your own repositories.
The caveat: most infections found are small, inactive personal projects. SafeDep found no confirmed hit on a production codebase, though a pull request briefly reached AsyncAPI’s generator project before a maintainer caught it.