A sophisticated npm malware campaign using the malicious indexed-btree package bypasses security defenses by executing hidden code during runtime rather than through traditional installation scripts.
Key Points
- The indexed-btree package, which mimics the legitimate sorted-btree library, has reached 2 million weekly downloads.
- Attackers hide malicious loaders within the BTree.prototype.set() method to evade npm v12 security measures and static analysis tools.
- Once active, the malware exfiltrates system data via Slack and Telegram and retrieves command-and-control instructions from an Ethereum smart contract.
- Checkmarx identified nine additional malicious packages, including btree-core, which collectively amassed millions of downloads before being removed.
- Researchers linked the operation to a cryptocurrency wallet containing 109 ETH, though the source of these funds remains unconfirmed.