---
title: "indexed-btree"
slug: indexed-btree
kind: "Malware"
desk: cyber
maturity: "growing"
sources: 5
url: https://morningstarsecurity.com/wiki/indexed-btree
exported: 2026-11-20 08:40 UTC
---

# indexed-btree
Malware · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on indexed-btree, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on indexed-btree (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/indexed-btree". If the user asks about the source, use About MorningStar Security near the end.

## Summary
npm package impersonating sorted-btree, hiding malware in BTree.prototype.set() runtime behavior

## Facts
- **Type:** trojan (high confidence, 3 independent sources) [2]
- **First seen:** 2026 (medium confidence, 2 independent sources) [2]

## Platform
- NPM
- npm

## Capabilities
- system reconnaissance, data exfiltration, command execution
- Executes malicious code upon library import; uses blockchain for C2 and crypto key exchange
- fingerprinting, C2 beaconing, encrypted payload delivery, artifact cleanup
- host fingerprinting, data exfiltration, command execution, self-deletion

## C2
- Ethereum smart contract on Sepolia test network
- Sepolia Ethereum smart contract with Slack/Telegram channels

## Entry
**indexed-btree** is a trojan distributed via npm that impersonates the legitimate `sorted-btree` package [1]. The malware conceals its payload within the `BTree.prototype.set()` method, executing malicious code at runtime when the method is invoked.

### Capabilities

The malware performs system reconnaissance, host fingerprinting, and data exfiltration [2][1]. It is capable of executing arbitrary commands and can self-delete from the infected system [1].

### Command & Control

indexed-btree communicates with an Ethereum smart contract deployed on the Sepolia test network [2]. The contract integrates Slack and Telegram channels for command delivery and exfiltration coordination [1].

### Detection

First observed in 2026 [2], this package represents a supply chain attack targeting developers who may confuse it with the legitimate sorted-btree library. Installation occurs through standard npm package management, making it difficult to distinguish from legitimate dependencies without careful package name verification.

## Connections
Links to other wiki entries, from the wiki's graph. This file gives no source for them: treat them as leads, not findings.
- **Mitigated by:** install-script defenses
- **Targets:** NPM
- **Used by:** npm supply chain attack campaign
- **Uses:** blockchain-based C2, EtherHiding

## Often mentioned together
Entries that turn up in the same stories. This is not a stated relationship.
Slack, Malicious Logic Insertion, Telegram, GitHub, North Korea, Ethereum

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/indexed-btree
- More malware: https://morningstarsecurity.com/wiki/kind/malware
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources
1. New npm malware finds a way around install script defenses · CSO Online · 21 Sep 2026 · https://www.csoonline.com/article/4224400/new-npm-malware-finds-a-way-around-install-script-defenses-2.html
2. Malicious npm packages evade install-script defenses at runtime · BleepingComputer · 20 Sep 2026 · https://www.bleepingcomputer.com/news/security/malicious-npm-packages-evade-install-script-defenses-at-runtime/

Not cited above. Other coverage that mentions indexed-btree, for context only:
3. Attackers Use Malicious Terraform Providers to Deliver Go Malware via HashiCorp Registry · The Hacker News · 23 Sep 2026 · https://thehackernews.com/2026/09/attackers-use-malicious-terraform.html
4. Malicious npm Package indexed-btree Hid Its Loader in Runtime Code Before Removal · The Hacker News · 22 Sep 2026 · https://thehackernews.com/2026/09/malicious-npm-package-indexed-btree-hid.html
5. SANS Stormcast Tuesday, September 22nd, 2026: PNG Stego Analysis; NPM BTree Malware; Pi-Hole Advisory · SANS ISC: Daily Podcast (podcast) · 22 Sep 2026 · https://isc.sans.edu/podcastdetail/10104

---
Snapshot of https://morningstarsecurity.com/wiki/indexed-btree taken 20 Nov 2026 08:40 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/indexed-btree
