Threats & Adversaries · Supply Chain

Indexed-btree Hid npm Malware in Runtime Code

Checkmarx says the malicious npm package indexed-btree, uploaded by the user charlessadler25 on June 18, 2026, mimicked the legit sorted-btree library and gathered millions of downloads before it was removed after disclosure. The package is now gone from npm along with its GitHub repository.

Its loader lived in ordinary application code, in a BTree.prototype.set() method, rather than in preinstall or postinstall scripts. That matters because a package can look clean at install time and still run malicious code later when the application actually calls the library, so install-hook defenses and lifecycle-script checks never get a chance to flag it.

The exposure sits in the runtime path, which means developer workstations, CI builds, and shipped artifacts can all inherit the same blind spot if they trusted install-time scanning alone. That keeps the risk alive anywhere a malicious dependency can be imported and executed after installation.

3 sources · 1 day ago

Timeline

Sources

Part of the PlainSec briefing for 2026-09-23

Every edition of this story: Indexed-btree Hid npm Malware in Runtime Code

More from today