Return to Threats

Malicious npm Package indexed-btree Hid Its Loader in Runtime Code Before Removal

thehackernews.com 2026-09-22 AI supply chain High

Executive Summary

Checkmarx found malicious npm package indexed-btree, mimicking sorted-btree, hiding its loader in runtime code instead of install scripts.

What Happened

A malicious npm package named "indexed-btree" has been observed hiding its malicious behavior within application code rather than using lifecycle scripts, indicating that threat actors are likely shifting tactics in response to recent security controls. "Indexed-btree is a malicious npm package mimicking the legit sorted-btree package, an ordinary B-tree/indexing utility," Checkmarx said. "

Affected Products

  • npm

Vulnerability / Attack Technique

Typosquat with runtime loader

Technical Mechanism

Malicious logic runs when the library is used, evading install-script controls.

AI Security Category

Not AI-specific

RealGround Analysis

Disabling install scripts is not enough.

Recommended Controls

  • Verify package names before installing

Related RealGround Service

AI Agent SBOM and LLM Mapping · or start with the free AI Agent Security Scanner.

Sources

thehackernews.com: https://thehackernews.com/2026/09/malicious-npm-package-indexed-btree-hid.html

Summary and analysis written by RealGround from the source above; last updated 2026-10-18.

Talk to AI CISO