The PolinRider Worm: How 7,609 GitHub Repos Got Infected Behind a Clean Diff

The CyberSec Guru

PolinRider Worm

If you like this post, then please share it:

Buy me A Coffee!

Support The CyberSec Guru’s Mission

🔐 Fuel the cybersecurity crusade by buying me a coffee! Why your support matters: Zero paywalls: Keep the main content 100% free for learners worldwide.

“Your coffee keeps the servers running and the knowledge flowing in our fight against cybercrime.”☕ Support My Work

Buy Me a Coffee Button

On November 25, 2026, Lukasz Gornicki, a maintainer of AsyncAPI Generator, opened heads-up issues in eight open-source projects, including Meshery, Jitsi Meet, Jaeger, stdlib and PipeCD. His message was unsettling. A GitHub account named Eternity0207 had pushed an obfuscated malware loader into pull requests across all of them. GitHub had suspended the account and removed every pull request it ever opened, merged ones included, without telling the projects why.

The account had opened 217 pull requests, and 145 were merged. Here is what should worry every maintainer who has clicked the green button: none of those 145 merged pull requests contained the loader. Gornicki scanned all of them, and maintainers at Jitsi Meet and Floresta confirmed the same result in their own reviews. The malware never went through code review. On October 19 it arrived in rewritten commits force-pushed into pull requests that were still open, sat on the branches for thirty to forty minutes while automated systems ran, and was force-pushed away again. The final diff stayed clean.

StepSecurity documented the incident on November 26. It is the most visible edge of a campaign that Apiiro, in a November 9 report, measured at no fewer than 7,609 infected GitHub repositories across 2,330 accounts. The campaign is tracked as PolinRider. OpenSourceMalware attributes it to North Korea’s Contagious Interview ecosystem, and Sonatype, SafeDep, Socket and Unit 42 corroborate that. It has been publicly tracked since March 2026, and its forensic roots reach back to npm packages published in May 2025 and blockchain transactions written in February 2025.

What sets PolinRider apart from earlier supply-chain incidents is its operational discipline, more than its headline number. It forges developers’ own commits so that git log looks untouched. It hides its loader beyond the right edge of a diff view. It runs at build time instead of install time. It reads its command-and-control server from the Ethereum blockchain, so no server takedown matters. And it reinfects repositories after their owners have publicly cleaned them. Each of these properties defeats a specific, widely trusted defense. Together they describe an adversary that has studied how collaborative software development works and built a worm around its assumptions.

Key takeaways

  • A forged commit keeps its original author, message and timestamp, so git log shows nothing wrong. Only GitHub’s Activity view reveals the force-push.
  • The loader hides behind hundreds of tab characters, so GitHub’s diff view renders the line as empty.
  • It triggers on build, on test collection, or on opening a folder in VS Code. Disabling npm install scripts blocks none of these.
  • The command server address is read from an Ethereum wallet’s transactions, so there is no domain to sinkhole.
  • Cleaning a repository without revoking the stolen credential gets it reinfected.
  • A single CI setting, requiring approval for fork workflows, separated a contained incident from a month of attacker-influenced installers sitting in public artifact pages.

How PolinRider forges Git commits

The core propagation tool is almost embarrassingly simple. OpenSourceMalware recovered a Windows batch file, temp_auto_push.bat, left behind in more than a hundred victim repositories, and its logic reads like a parody of version control hygiene. It runs git log -1 five times to capture the last commit’s date, time, message, author name and author email. It saves the current system clock, then changes the Windows clock to the captured commit timestamp, sets the local git identity to the original author, stages everything with git add ., and runs git commit –amend -m “%LAST_COMMIT_TEXT%” –no-verify.

Because the clock was rewound, the amended commit, now carrying the loader, records the original timestamp. The script restores the real clock and force-pushes with git push -uf origin %CURRENT_BRANCH% –no-verify, bypassing hooks on both ends. The result is a commit that keeps its author, message and dates while gaining a payload, pushed under the developer’s own credentials. A companion file, branch_structure.json, lists the local branches the tool iterates over. The attackers accidentally committed it in the AsyncAPI and Open Food Facts pull requests, which helped researchers reconstruct the mechanism.

What GitHub’s push logs show at scale

Apiiro checked this behavior against GitHub’s own push logs and not against repository state, which makes its report authoritative. The Activity API records every force-push together with the commit it replaced. Here is what the researchers found:

  • In 4,402 of the 4,460 injection pushes they could resolve, across 2,975 repositories, the worm had swapped a clean commit for a copy with the same author, message and timestamps to the second, plus the loader.
  • In 628 repositories the replaced commit was a merge commit that GitHub itself had signed. The replacement was unsigned, which proves it was built off-platform.
  • In 99 repositories, the commit the worm copied was the owner’s own malware-removal commit, a detail that borders on contempt.
  • In 94 percent of 9,990 injection pushes, the forged commit claimed to be more than an hour older than the push that delivered it.

A developer reading git log sees their own work from weeks ago. Only the Activity view, which almost nobody reads, shows that the branch was rewritten yesterday.

The AsyncAPI timeline

The pull-request wave added a forensic wrinkle. At AsyncAPI, the malicious commits reused the message and author date of a clean, signed commit from the same pull request, but they were unsigned and carried a different committer name than the account’s usual signed commits. The timeline on PR is instructive:

  • 05:31 UTC, October 19: the branch is force-pushed from the clean commit 3b71969 to the malicious 0e2d800.
  • 05:35: the CodeRabbit review bot flags obfuscated code in api.js and jest.config.js, four minutes later.
  • 06:12: the branch is force-pushed back to the clean commit.

The earlier PR went through the same swap-and-restore cycle between 01:39 and 02:08. The account was one of hundreds of infected developer accounts, not a throwaway identity. The pattern matches a compromised developer machine amending the developer’s own branches while they sleep. An automated reviewer caught it in four minutes. The humans who merged 145 other pull requests from the same account saw nothing, because by the time they looked, there was nothing to see.

📬 Stay Ahead of Cyber Threats

Get the latest cybersecurity news, critical vulnerabilities, threat intelligence, tutorials, and exclusive giveaways delivered straight to your inbox. No spam. Unsubscribe anytime.

Where the malware hides: invisible tabs, build scripts and VS Code tasks

The payload placement is engineered against human reading behavior. In the pull-request wave, api.js was a single line: 315 tab characters followed by the obfuscated loader, which decodes to a 16,674-byte script. In GitHub’s diff view the added line renders as empty. In jest.config.js and postcss.config.js, the loader sits on the same line as the file’s final statement, after the closing }; and roughly 300 more tabs. A reviewer who opens the file sees a normal config unless they scroll horizontally.

The package.json scripts gained a prefix that preserved each project’s real command: “build”: “node api.js && turbo build” at AsyncAPI, with equivalents wrapping vite build at Open Food Facts and node scripts/multi-build.js at CircuitVerse. Open Food Facts ships an ES module package, so its api.js variant opens with a createRequire line that hands the loader Node’s require function. That small compatibility touch suggests tooling built to survive many different targets.

Apiiro’s wider census found the same appending technique in tailwind.config.js, postcss.config.mjs and eslint.config.mjs. It also found node init && script prefixes and a committed .env file whose AUTH_API_KEY is a base64 blob that a build config decodes into a payload URL and runs through eval.

The VS Code folderOpen trick

The CircuitVerse commits carried the full kit, including a vector that needs no build at all. A .vscode/tasks.json holds a hidden task labeled eslint-check, triggered by “runOn”: “folderOpen”, that runs node ./public/fonts/fa-solid.lkf with its terminal panel hidden. A .vscode/settings.json enables automatic tasks. The “font” is obfuscated JavaScript sitting beside a copied Font Awesome kit and a decoy README describing fonts for a “Blockchain Explorer” application. Related waves used fa-brand-400.orc and variants with .lfk, .llf and even .woff2 extensions.

If a developer clones the repository and opens the folder in VS Code with automatic tasks allowed, the loader runs before any command is typed. None of these triggers uses npm install scripts. Organizations that disabled preinstall and postinstall hooks, a common hardening step after earlier npm worms, blocked nothing here.

Same stolen token pushes again
Same stolen token pushes again

One setting, three outcomes: what the CI experiment shows

All three projects received the poisoned commits through fork pull requests, and GitHub’s fork protections did what they promise. No repository secrets were passed, GITHUB_TOKEN was read-only, and no project reported stolen secrets. Those limits do not stop code from running or from reaching the internet, though, and what happened next in each project’s CI amounts to a controlled experiment in workflow configuration.

  • AsyncAPI required maintainer approval before fork workflows ran. No approval was given, and nothing executed.
  • CircuitVerse had no approval step. The loader ran in ten pull-request workflows, including the release workflow that builds the desktop app for Windows, Linux and macOS on four runners. That workflow uploaded its results as artifacts, and 40 installers built on compromised runners stayed downloadable from the runs’ artifact pages for more than a month. Maintainers deleted them on November 25 and merged a fix so fork pull requests can no longer publish builds.
  • Open Food Facts ran pnpm build on all four poisoned commits. All four runs failed, and the maintainers rotated a secret anyway. That was the right instinct, because a failed build does not prove the prefix never executed.

The gap between a contained incident and a month of publicly downloadable, attacker-influenced installers came down to one approval setting.

NullReceiver: an Ethereum wallet as command-and-control

OpenSourceMalware named the campaign’s command-and-control design NullReceiver in August 2026, after documenting it in the npm packages bianira-ui and fluid-type-ui. It removes the single point of failure that defenders normally attack. The loader carries no server address. It carries a hardcoded Ethereum wallet address and reads the chain to learn where to connect. The operator repoints every deployed loader worldwide by sending one cheap transaction. There is no domain to sinkhole and no server whose seizure disables anything.

How an IP address hides in a transaction recipient

The encoding is compact enough to fit in an address. The malware finds the most recent outbound transaction from the wallet and reads its recipient. That recipient is not a real account. It is twenty bytes of data: an IPv4 address, the same address again, and a twelve-byte ASCII marker that consistently decodes to helloipbot!!.

The recipient 0x171B0d48171B0d4868656C6C6F6970626F742121, seen in the campaign’s wallet history, shows the scheme byte for byte. 17 1B 0D 48 is 23[.]27[.]13[.]72, a server the wallets actually posted on October 14. The next four bytes repeat it. 68 65 6C 6C 6F 69 70 62 6F 74 21 21 spells the marker.

The transactions carry zero ETH and empty calldata. That leaves a minimal on-chain footprint and slips past monitoring rules that look for unusual data payloads. It contrasts with the campaign’s other mode, EtherHiding, which stores executable stages in transaction calldata. NullReceiver uses the chain only as a signpost.

The lookup routine

StepSecurity’s decoding shows the loader rounding the current block number down to the nearest multiple of 1,000 and fetching six blocks: that block, its two neighbors, and the same trio around the previous multiple. Ethereum produces a block roughly every twelve seconds, so a multiple of 1,000 arrives about every three hours and twenty minutes. The operator posts on exactly that grid. Of the wallet’s 377 transactions, 344 landed within one block of a thousand-block boundary, the median gap between them was 200 minutes, and all 377 together cost 0.026 ETH in fees.

If the six-block window comes up empty, the loader falls back to a nonce-based search and then to the Blockscout API. Queries race across public RPC providers (1rpc.io/eth, eth.drpc.org, ethereum-rpc.publicnode.com and eth-mainnet.public.blastapi.io) with batched JSON-RPC and an $ETH_RPC_URL override, so blocking any single provider achieves little.

Once it has an IP, the loader fetches /0x/cls and /0x/ls over plain HTTP on port 443, decodes each response with a fixed XOR key, and sends its build tag in a Sec-V header. If the GET fails, it can recover a payload from an X-Payload-B64 header on a HEAD request. One stage runs through eval in the current process. Another launches as a detached, windowless Node child that outlives the build.

Why the wallet is the indicator that lasts

Because the wallet outlasts any server, it is the durable indicator. Apiiro tracked the A-family wallet 0xa322E5f3D311D3080e6f0121063e9aDC2490Ef1a through eight C2 addresses between July 25 and October 19, after which it went silent. The second wallet, 0x1eEf0849EDa15d87f64e51C73C8442Cf3c8bCEF3, kept writing. It has named five servers since September 4 and re-posted its current address, 95[.]135[.]181[.]84, at 18:30 UTC on November 25, the same day GitHub suspended the pull-request account.

SafeDep’s September analysis found eight of eleven servers across the two wallets it tracked on a single provider, Evoxt (AS149440). That suggests where pressure could actually be applied. Earlier generations resolved through TRON accounts pointing at BNB Smart Chain payload transactions, with Aptos twins as fallback, and the 0x33ff variant SafeDep documented posts on a 256-block cadence with the port encoded alongside the IP. The infrastructure keeps changing while the principle stays the same. Blocking build-time egress to public chain RPC endpoints, which frontend CI has no legitimate reason to call, stops the loader before it learns an address.

The attack chain and why the repository cleanup fails
The attack chain and why the repository cleanup fails

The Python wave: same operator, new language, quieter trigger

In late November, SafeDep documented PolinRider’s expansion beyond JavaScript. On November 24 it found a 58-line Python loader in 375 public repositories across 260 accounts, and 370 of those had been pushed in November. The loader uses only the standard library, so no dependency scan or lockfile audit can see it. It lives in source repositories and in no PyPI or npm package, so package scanners miss it too.

It hides in a planted utils package whose six files have plausible HTTP-client names: session.py, transport.py, clients.py, http_session.py, net.py and an init.py. One file holds the loader and the rest are empty. Alternatively it sits in a root conftest.py, which pytest imports automatically during test collection. For the planted packages, the attacker adds five import lines to the project’s entry point (the Django ASGI file, the FastAPI main.py, the CLI module), so the loader runs whenever the application starts.

How the Python loader works

Its behavior mirrors the JavaScript family with one architectural shift. It asks the public Ethplorer API, using the shared freekey API key, for the last hundred transactions of the wallet 0x3b1574417524c11a7403c4b232CAcBb320CceBC6. It takes the newest one the wallet sent to itself, fetches the full transaction from ethereum.publicnode.com via eth_getTransactionByHash, hex-decodes the input field, writes the result to a temporary .js file and runs node on it with a twenty-second timeout. An outer try/except silently swallows every error, including the absence of Node.js.

The payload here lives in the calldata, EtherHiding-style, and the recipient address plays no part. The wallet wrote eight self-transactions between October 24 and November 11. The newest holds a 31,134-byte JavaScript stage marked A9-10502, obfuscated with a hex string table XORed against 0x87 and a dictionary-compressed body that SafeDep peeled back to 474 readable lines.

That stage resolves the C2 through the same 0x1eEf wallet and the same thousand-block grid as the npm wave, and it fetches the same /0x/cls and /0x/ls scripts with the same XOR keys. It also adds one real tradecraft upgrade. Instead of passing the next stage to node -e as a command-line argument, visible in any process listing, it spawns a detached node -i, waits for the interactive prompt, and writes the code to standard input. A process listing shows only node -i, and the detached child survives the Python loader’s twenty-second kill.

Dormant, but not harmless

SafeDep also punctured a comfortable assumption in the early reporting. The planted import lines only run when Python can resolve a top-level utils package, and in most victim repositories the package sits inside an application folder, off the import path. In the three example applications SafeDep rebuilt with stub modules, the documented start commands failed with ModuleNotFoundError before the loader ran.

That is no reassurance. The loader sits dormant until someone runs pytest, launches a script from the right directory, or, most perversely, “fixes” the broken import path, at which point it executes. The forgery discipline carries over as well. In two repositories the loader sits inside a commit whose message claims to remove PolinRider, and one carrier commit is dated September 26, 2025, more than a year before the wallet it reads made its first transaction. Commit dates are attacker-controlled input.

Where PolinRider came from: itsa-utils, JADESNOW and Contagious Interview

OpenSourceMalware traced the campaign’s ancestry in late October, and it reads like a preserved specimen. The npm utility itsa-utils had not published a new version since August 2018. At 20:15 UTC on Sunday, May 4, 2025, version 1.4.2 appeared, followed within ninety minutes by new versions of eight more packages from the same maintainer. The published tarballs contained a heavily obfuscated line appended to index.js or webpack.config.js behind 1,012 or 253 whitespace characters. The GitHub repository never held that line, so someone ran npm publish from a directory that carried the payload. They used the maintainer’s publishing rights but a toolchain (npm 10.9.2 on Node 22.14.0) that the maintainer, who otherwise published with npm 5.5.1 on Node 8.9.1, never used. Clean replacement versions shipped the next morning, but the infected versions stayed installable for anyone pinning exact versions, and three were still live when the researchers checked in 2026.

The 2025 infection chain, step by step

The chain inside that line is the campaign in miniature:

  1. The loader set global[‘_V’]=’5-itsa’ as a campaign marker.
  2. It queried Binplorer for the latest mint operation on an attacker wallet on BNB Smart Chain and extracted the transaction’s calldata.
  3. It split the calldata on .. delimiters, Base64-decoded the second part, XORed it with a fixed key and ran the result through node -e.
  4. That stage was JADESNOW, a downloader Google Threat Intelligence has tied to the UNC5342 cluster. It switched chains to Ethereum, read a transaction through Ethplorer, BlockCypher and Blockchair for redundancy, and XOR-decrypted its calldata with the key ThZG+0jfXE6VAGOJ before calling eval. The same key appears in later PolinRider waves.
  5. The recovered bootstrapper reported to 154[.]91[.]0[.]103:27017, the same command server as the documented campaign, checked ip-api.com and exited if the victim was in Russia, installed a portable Python 3.12.7, and fetched two final payloads from two more Ethereum transactions.

The two final payloads were a Socket.IO RAT speaking HTTP on port 3306 (the MySQL port) at 85[.]239[.]62[.]36, and a 65,500-byte Python credential stealer. The stealer harvested browser passwords through DPAPI, the macOS Keychain and Linux secret stores, data from more than eighty wallet extensions, Git credentials, GitHub CLI tokens and password-manager vaults. It packed the loot into AES-encrypted ZIPs with the password ,./,./,./, uploaded them to /u/f endpoints, and fell back to a Telegram bot for archives under 50 MB. Both payload transactions were written on February 7, 2025, eighty-six days before the npm burst. Nothing in the chain survived a reboot. Persistence came from detached processes, five-second Socket.IO reconnects and silent error handling.

Where the worm came in

The 2025 sample had no worm. The same maintainer’s GitHub repositories later received the payload through history-rewriting force-pushes in four windows during 2026: January 22, March 23, May 29 and July 9. Across the 49 repositories scanned there were ten infections and ten restorations. The July commits were backdated by 34 to 152 days, and four repositories were infected within 43 seconds of each other.

OpenSourceMalware offers one reading as assessment and not proof: the initial compromise persisted on the maintainer’s machine from 2025, and the propagation script arrived later. The whole architecture shows up in that one story: stolen developer access, amended commits, blockchain rendezvous, and payloads that end in the BeaverTail and InvisibleFerret stealers familiar from Contagious Interview. OpenSourceMalware has formally merged the related TasksJacker cluster into PolinRider after finding shared propagation scripts, blockchain addresses and decryption keys across the same victim population.

Fake job interviews: AccuraSoftHire, HuntRole and the $6.34 billion Binance theft

The recruitment side supplies the initial access. JFrog exposed AccuraSoftHire, a fake company with a careers site, job ads on Indeed and Glassdoor, ID-verified LinkedIn recruiter profiles and a ninety-minute React take-home test. The test’s Tailwind config loaded eleven plugins, ten real and one, tailwind-custom-forms, a copy of the official forms plugin with the loader appended. It executed when Tailwind built the CSS, during the build step and never at install. StepSecurity found that two of the look-alike packages stayed installable on npm for 169 and 211 days because nobody reported them.

HuntRole and the malicious VS Code assessment extension

A second front, HuntRole, surfaced on November 16 when researcher Pavel Savinov published the recruiter’s take-home test: a VS Code extension, huntrole.assessment-tool, listed on the official Marketplace on October 21 with 126 installs by mid-November. The extension itself contained no malware. It beaconed the hostname and VS Code machine ID to api.huntrole.com on every editor start. When the assessment panel opened, the server returned a decoy script for display and a different one for execution. The second script performed the Ethereum lookup and installed a RAT that plants loaders inside npm and Electron applications, VS Code, Cursor, Discord and GitHub Desktop, so uninstalling the extension removes nothing.

The two fronts provably share an operator. One wallet, 0xf97062cb…, funded both pointer wallets, both named the same servers, and on October 16 they switched to a new server 24 minutes apart. Twelve of the repositories in StepSecurity’s pull-request sample read the AccuraSoftHire wallet directly.

Why employers should care

Binance’s November 3 report traces the October 29 theft of roughly $6.34 billion to an engineer running a fake interview assignment on his work computer, where the malware trojanized his pyenv installation. JFrog found no link between AccuraSoftHire and that intrusion. A September 18 joint advisory from the FBI and partner agencies counts at least 30,000 devices infected by North Korean fake-interview operations in over 100 countries. The recruitment fraud and the repository worm are two intake valves for the same machine.

How many repositories are infected? The numbers, and the reinfection problem

The published numbers describe different populations and should not be added together.

  • Apiiro: 7,609 repositories, from an October 17 census of default branches at 36 standard file paths plus an October 28 code search for the fake-font kit, confirmed by reading each repository. Code search caps at 1,000 results per query and non-default branches went uncounted, so every figure is a lower bound. The classifier checked out on 48 of 50 hand-verified repositories. Between October 27 and November 6 the worm pushed its loader into 2,040 repositories, 956 of them new.
  • StepSecurity: sampled from the 2,776 package.json files that GitHub code search returns for the node api.js && hook, fetched and decoded what the API would give it, and confirmed the loader in 576 of 622 repositories across 311 accounts, thirty of them organizations. Of 402 decoded copies, 390 read the HuntRole wallet and twelve the AccuraSoftHire wallet.
  • SafeDep: its Python census adds 375 repositories under 260 accounts.

The victim profile matters more than the totals. Eighty-six percent of Apiiro’s census belongs to personal accounts more than a year old with real activity. Named victims include Neutralinojs, whose main branch and seven others were rewritten on March 2; the WordPress plugin InstaWP Connect, with around 40,000 installs, whose SVN trunk carried the loader for about 23 hours before removal; and fxhash, Chingu, BuidlGuidl and Brainstorm Force. Pull requests from infected forks targeted shadcn/ui and Apache Superset but were never merged, and two infected repositories shipped the loader to npm through their own release pipelines.

The census repositories hold only 6,323 stars between them and their npm packages draw 84 weekly downloads, which tells you the downstream package ecosystem was never the prize. The prize is the roughly 2,300 developers whose tokens, machines and push access the worm reached, plus the 293 victim repositories carrying coding-agent configuration, because agents run dev, build and lint without being asked.

Why cleanup fails

Reinfection is where the campaign’s design pays off. Apiiro found 1,949 repositories that received injection pushes after appearing on public compromise lists, in every week from late July to mid-October, and 992 listed repositories picked up the A-family loader specifically. Nine of sixteen repositories with a commit message claiming to remove PolinRider had the loader pushed back over the cleanup. One owner’s repositories went through five rounds of it, and the latest overwrite of a removal commit came on October 25. SafeDep found the Python loader sitting inside removal commits themselves.

Deleting the file does not revoke the credential that pushed it, and wiping the laptop does not help if the loader already lives in repositories the developer will open again. Cleanup that starts with the repository and ends there accomplishes nothing.

How to detect PolinRider in your repositories, CI and machines

Detection has to move from repository state to repository history, and from install time to build time.

In your code

  • Run Apiiro’s padding hunt across every local and remote ref: git grep -nE ‘;[[:blank:]]{200,}[^[:space:]]’. It catches the whitespace signature in all JavaScript-family variants.
  • Look for .vscode/tasks.json tasks with “runOn”: “folderOpen” that invoke node on anything under a fonts directory.
  • Look for package.json scripts beginning node api.js && or node init &&.
  • Look for a committed .env whose AUTH_API_KEY base64-decodes to a URL.
  • Look for forty or more consecutive \u00XX escapes and public RPC hostnames in non-Web3 code.
  • Look for the loader’s most distinctive habit, code that turns a transaction recipient into bytes, matching Buffer.from$\s*\w+(\.tx)?\.to…,\s*[“‘]hex[“‘]$.

On GitHub

  • Read the Activity view for force-pushes whose commits predate the push by days or weeks.
  • Treat an unsigned commit from a contributor who normally signs as an incident, and don’t wave it off as a curiosity.

On machines and networks

  • Look for detached node -i or node -e processes.
  • Look for Python calling Ethplorer followed by a Node process calling an RPC endpoint.
  • Look for plain HTTP to a bare IP on port 443, which no legitimate build produces.

On any host that ran an infected build

  • Rotate GitHub, npm, SSH and cloud credentials from a clean machine.
  • Move funds out of wallet extensions.
  • Audit deploy keys, Actions secrets, CI runs and releases since the infection date, because the loader’s whole purpose is to leave with everything the machine could reach.

How to harden GitHub Actions and developer machines

Pipeline hardening should follow the three-project experiment to its conclusions.

  1. Require approval for workflows from all external contributors. Eternity0207 already had merged pull requests at CircuitVerse and Open Food Facts, so the first-time-contributor gate would have waved it through. AsyncAPI’s full approval requirement stopped the payload cold.
  2. Never publish artifacts from fork pull requests. Build them if the check is needed, but upload installers and packages only from trusted branches and release workflows, as CircuitVerse’s fix now does.
  3. Require approval of the most recent reviewable push in your branch protection rules, so a force-push after review reopens the gate and no longer inherits the old approval. Read force-push diffs, and don’t rely on commit messages.
  4. Pin third-party actions to full commit SHAs and scope job permissions to the minimum.
  5. Put an egress allowlist on CI runners that blocks public Ethereum, TRON, BSC and Aptos endpoints. A frontend build that suddenly queries eth.blockscout.com and then fetches XOR-encoded JavaScript from a bare IP has told you everything you need to know.
  6. Harden VS Code. Keep Workspace Trust and Restricted Mode enabled, set task.allowAutomaticTasks to off, and read .vscode/tasks.json before trusting any folder you did not write.
  7. Set a recruiting policy. The Binance incident argues for banning interview assignments, recruiter “drivers” and setup commands from outside the company on work machines. Candidates who must run them should use a disposable VM with no tokens, keys, wallets or browser profiles on it.

Conclusion

PolinRider needs no zero-day in GitHub, npm or PyPI. It needs a developer with push access, a workflow that executes code before a human approves it, and a review culture that trusts the final diff and the commit date. The campaign has survived public disclosure, overwritten cleanup commits, and reused one wallet infrastructure across recruitment fraud, package hijacking and repository poisoning. It prices its entire global redirection infrastructure at a few hundredths of an ETH per month.

The defense that matches is a pipeline where every execution is attributable, every credential is scoped and short lived, and every force-push is treated as a change to your threat model. It also means seeing the blockchain for what this campaign has made it: a dead drop that no takedown order can reach.

FAQ

What is the PolinRider worm?
PolinRider is a North Korea-linked campaign, tied to the Contagious Interview ecosystem, that infects developers’ GitHub repositories by amending their commits with an obfuscated loader. Apiiro counted at least 7,609 infected repositories across 2,330 accounts.

How does PolinRider hide malicious code from code review?
It force-pushes forged commits that keep the original author, message and timestamp, and it pads the loader with hundreds of tab characters so GitHub’s diff view shows an empty line. In the Eternity0207 incident it pushed the payload into open pull requests, then force-pushed the clean version back within 30 to 40 minutes.

What is NullReceiver?
NullReceiver is the campaign’s command-and-control technique. The loader reads the recipient address of a wallet’s latest Ethereum transaction, which encodes an IPv4 address and the marker helloipbot!!, to learn its server. No domain or server takedown disrupts it.

Does disabling npm install scripts protect me?
No. PolinRider triggers at build time, during pytest collection, on application start, or when a folder is opened in VS Code with automatic tasks enabled.

How can I tell if my repository is infected?
Run git grep -nE ‘;[[:blank:]]{200,}[^[:space:]]’ across all refs, check .vscode/tasks.json for folderOpen tasks, check package.json for node api.js && prefixes, and review the GitHub Activity view for force-pushes with commits that predate the push.

What should I do if I ran an infected build?
Rotate GitHub, npm, SSH and cloud credentials from a clean machine, move funds out of wallet extensions, and audit deploy keys, Actions secrets, CI runs and releases since the infection date.

Buy me A Coffee!

Support The CyberSec Guru’s Mission

🔐 Fuel the cybersecurity crusade by buying me a coffee! Your contribution powers free tutorials, hands-on labs, and security resources.

Why your support matters:
  • Writeup Access: Get complete writeup access within 12 hours
  • Zero paywalls: Keep the main content 100% free for learners worldwide

Perks for one-time supporters:
☕️ $5: Shoutout in Buy Me a Coffee
🛡️ $8: Fast-track Access to Live Webinars
💻 $10: Vote on future tutorial topics + exclusive AMA access

“Your coffee keeps the servers running and the knowledge flowing in our fight against cybercrime.”☕ Support My Work

Buy Me a Coffee Button

If you like this post, then please share it:

News

Discover more from The CyberSec Guru

Subscribe to get the latest posts sent to your email!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.