Malicious npm Campaign Evades Install Script Defenses
Score: 8/10

Malicious npm Campaign Evades Install Script Defenses

An ongoing malicious npm campaign, involving the 'indexed-btree' package and PolinRider activity, bypasses security controls by embedding malware loaders directly within runtime prototype methods and using Ethereum smart contracts for C2.

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

Malware/Tools

indexed-btree, Rapuncel, SmartLoader, RatHat, CHOSEN BRICK, btree-core, mutex-forge, PolinRider, NullReceiver

Report Score

8out of 10
Quality Score
Good
IOC Quality8
TTP Details9
Detection Guidance6
Enterprise Relevance9
Clarity & Structure8
Technical Depth9