Executive Summary
A sophisticated supply-chain campaign has targeted the npm ecosystem, successfully amassing millions of downloads by impersonating legitimate libraries such as 'sorted-btree'. The campaign, which includes the 'indexed-btree' package and is linked to the 'PolinRider' actor (suspected North Korean nexus), represents a tactical shift following npm v12's restrictions on installation lifecycle scripts. Instead of relying on 'preinstall' hooks, the attackers hide malicious triggers within core library methods like 'BTree.prototype.set', ensuring execution occurs during normal application runtime.
The attack chain utilizes 'EtherHiding' and 'NullReceiver' techniques, where the malware polls Ethereum smart contracts on the Sepolia testnet to retrieve C2 instructions and second-stage payloads. This blockchain-based infrastructure provides high resilience against traditional domain and IP takedowns. The malware fingerprints infected hosts, exfiltrates data via Slack and Telegram, and features self-deletion capabilities to eliminate forensic traces.
This threat highlights the limitations of install-time scanning. Organizations must recognize that clean installation reports do not guarantee package safety, as malicious behaviors are increasingly deferred to runtime. Affected sectors include information technology and any organization utilizing common open-source B-tree indexing utilities in their production environments.
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
