Saltar al contenido
Fali Fuentes

PolinRider: Lazarus Infects 7,600 GitHub Repos and Steals Credentials

Leer este artículo en español

The North Korean Lazarus group maintains an active supply chain campaign named PolinRider which, as of November 9, had compromised at least 7,609 GitHub repositories across 2,330 accounts according to Apiiro’s count. On November 24 SafeDep detected a new Python version of the loader in 375 repositories (370 uploaded that same month) and on November 26 poisoned packages were still appearing, confirming the operation is alive and rotating infrastructure at full speed.

Three infection vectors cover the entire workflow

The loader reaches developers through three simultaneous channels: fake job offers from fictitious recruiters (“AccuraSoftHire” and “HuntRole”) who deliver poisoned technical tests; 12 hijacked versions of 10 npm packages published on November 3 and 4 (e.g. @adminide-stack/utils@0.0.16-129, server-hemera-mongo@0.0.16); and injection into open pull requests of legitimate projects (AsyncAPI, CircuitVerse, Open Food Facts) on October 19, where CI builds executed the malicious code.

Blockchain C2: NullReceiver technique avoids takedown-prone infrastructure

To avoid infrastructure that can be taken down, the loader reads the control server IP from Ethereum transactions from a fixed wallet (e.g. 0x1eEf0849EDa15d87f64e51C73C8442Cf3c8bCEF3); the first bytes of the destination address encode the IP and the last 12 bytes form the string “helloipbot!!”. On November 25 the wallet published a new C2 address, which invalidates network IOCs within days or weeks.

Massive secret theft and persistence that rewrites commits

The malware exfiltrates environment variables, passwords, and browser cookies, 80-153 password manager and wallet extensions, ~/.git-credentials, ~/.npmrc, SSH keys, AWS credentials, macOS keychain, Windows Credential Manager, and clipboard. To persist, patches npm/lib/cli.js re-infecting on every npm execution, rewrites the last commit with git commit --amend --no-verify and force pushes using cached credentials, preserving original author and date. Apiiro found 1,949 re-infected repositories after public cleanup and 9 of 16 cleanup commits overwritten from infected machines.

Cross-ecosystem threats and the –ignore-scripts trap

Besides npm, there are more than 80 Go modules and 10 poisoned Packagist packages; the Go proxy continues serving compromised versions after repository cleanup. Installing with --ignore-scripts does not protect: the malicious code executes when the package loads at runtime or build, not during the install phase.

What to do today: behavioral hunting and remediation only from a clean machine

Static IOCs expire fast. ThreatDefence publishes six ready-to-use KQL queries for Defender/Sentinel that detect: development tools calling blockchain APIs, blockchain lookups followed by connection to IP without hostname in <5 min, known C2 IPs by time windows, persistence/propagation files, hidden Node.js processes with rewritten commits and scripted force-push, and editors triggering downloads on folder open. On the network, inspect plain HTTP on port 443 (paths /0x/cls, /0x/ls, /0x/npm-migrate, headers Sec-V / X-Payload-B64, Telegram uploads); firewalls that assume TLS on 443 let it through. Microsoft also tracks how threat actors abuse agentic AI frameworks like ARTEX to automate intrusions according to its security blog.

If there is any sign of compromise: kill hidden Node/Python processes, reinstall Node.js+npm if cli.js is patched, and rebuild the machine (reinstall VS Code, Cursor, Discord, GitHub Desktop) because the RAT (BeaverTail/InvisibleFerret/DEV#POPPER/OmniStealer) may have executed arbitrary commands. Rotate all secrets from a clean machine (GitHub PATs, SSH keys, npm tokens, cloud credentials, .env, crypto wallets); rotating from the infected machine is useless because the malware monitors. Clean repositories only from a clean machine (GitHub web editor or fresh clone); pushing the fix from the infected machine lets the malware rewrite the cleanup commit (9 of 16 observed cases).

Immediate preventive measures: require manual approval before pipelines run fork PRs and after every new push; require commit signing and block force-push on protected branches (GitHub logs force-pushes even if the commit retains original date/author); pin dependencies with lockfile and delay adoption of new versions 48-72 h (the hijacked npm packages were pulled in ~22 h); block build server egress to public blockchain services (Ethereum, TRON, BSC, Aptos) because runners don’t need to query public chains and that cuts C2 lookup; run technical tests and unreviewed code in disposable VM/container without credentials; disable automatic tasks in VS Code/Cursor (task.allowAutomaticTasks = off, task.allowAutomaticTasks = off, Restricted Mode) to cut the «auto-run on folder open» vector.

SYSTEM_EXPERT
Rafael Fuentes – BIO

I am a seasoned cybersecurity expert with over twenty years of experience leading strategic projects in the industry. Throughout my career, I have specialized in comprehensive cybersecurity risk management, advanced data protection, and effective incident response. I hold a certification in Industrial Cybersecurity, which has provided me with deep expertise in compliance with critical cybersecurity regulations and standards. My experience includes the implementation of robust security policies tailored to the specific needs of each organization, ensuring a secure and resilient digital environment.

Share
Scroll al inicio