Executive Summary
A sophisticated supply chain campaign has been identified targeting the npm and Packagist ecosystems. The attackers, including those linked to North Korean operations (PolinRider), are shifting away from traditional installation lifecycle scripts (preinstall/postinstall) to bypass new security measures in npm v12. Instead, they embed malicious loaders directly into legitimate runtime functions, such as BTree.prototype.set(), ensuring execution occurs when a developer actually uses the library in their application.
The attack chain involves host fingerprinting, data exfiltration via Slack and Telegram, and the use of the 'EtherHiding' technique, which leverages Ethereum smart contracts on the Sepolia testnet for resilient C2 infrastructure. By polling smart contracts for second-stage payloads and using X25519 key exchange for decryption, the attackers maintain a high level of stealth and resilience against traditional domain-based takedowns.
This campaign matters because it demonstrates the immediate adaptation of threat actors to platform-level security hardening. The 'indexed-btree' package alone achieved millions of downloads by impersonating legitimate utilities. Organizations must shift from simple install-time scanning to runtime behavioral analysis to detect these 'sleeper' functions within third-party dependencies.
Key Details
Threat Name
Malicious indexed-btree npm Campaign
Affects
—
Adversary
North Korean hackers Other Adversaries and Aliases: PolinRider
MITRE Techniques
Malware/Tools
indexed-btree, Rapuncel, SmartLoader, RatHat, CHOSEN BRICK, btree-core, mutex-forge, PolinRider, NullReceiver