Download Privacy Needle App

Type to search

Cybersecurity

Malicious NPM Package Mimicking B-tree Utility Reaches Millions of Downloads

Share

A sophisticated supply chain attack targeting the NPM ecosystem has been identified, involving a malicious package named indexed-btree that has accumulated millions of downloads. Researchers at Checkmarx discovered that the package mimics the legitimate sorted-btree utility to build trust among developers.

The threat actor employed a highly effective method to bypass traditional security scanners. Instead of using common malicious install scripts, which are often flagged by automated security solutions, the attacker embedded a malware trigger within the library’s JavaScript prototype code. Specifically, the malicious payload is hidden inside the BTree.prototype.set method.

To increase the package’s perceived legitimacy, the attacker created a dedicated GitHub repository and added seemingly routine commits. This strategy helped the package reach two million weekly downloads before its malicious nature was detected.

Blockchain-Based Command and Control

Once the malicious code is executed, it performs several stages of data exfiltration and command-and-control (C&C) communication. The malware first collects system information and sends it to hardcoded Slack and Telegram channels. It then connects to a smart contract deployed on the Sepolia blockchain, which serves as its C&C infrastructure.

The malware uses this blockchain connection to extract and decrypt a second-stage payload. After completing its objectives, the code attempts to clean its own traces from the host system to avoid detection.

Checkmarx noted that the attacker’s smart contract had previously been linked to the mutex-forge package. The threat actor is estimated to have gained approximately 109 ETH, valued at nearly $300,000, through these campaigns.

Wider Supply Chain Impact

The indexed-btree package is part of a larger, ongoing campaign. Several other malicious packages have been linked to the same threat actor, including:

  • ordered-kv-index
  • btree-leaderboard
  • priority-slot-queue
  • btree-range-store
  • btree-core
  • btree-time-index
  • btree-lru-cache
  • neighbor-key-map
  • sliding-score-window

These related packages had accumulated over five million downloads before being removed from the ecosystem. Security professionals are advised to audit their dependency trees and monitor for any unexpected prototype-based code execution in JavaScript environments.

Watch Our Latest Video
Stay ahead with expert insights on privacy, cybersecurity, artificial intelligence, data protection and compliance.
No Leak, No Wahala
Published: August 16, 2026
Daily Privacy News
Cybersecurity Updates
Data Protection Tips
GDPR & NDPA Explained
Tags:
Ikeh James Certified Data Protection Officer (CDPO) | NDPC-Accredited

Ikeh James Ifeanyichukwu is a Certified Data Protection Officer (CDPO) accredited by the Institute of Information Management (IIM) in collaboration with the Nigeria Data Protection Commission (NDPC). With years of experience supporting organizations in data protection compliance, privacy risk management, and NDPA implementation, he is committed to advancing responsible data governance and building digital trust in Africa and beyond. In addition to his privacy and compliance expertise, James is a Certified IT Expert, Data Analyst, and Web Developer, with proven skills in programming, digital marketing, and cybersecurity awareness. He has a background in Statistics (Yabatech) and has earned multiple certifications in Python, PHP, SEO, Digital Marketing, and Information Security from recognized local and international institutions. James has been recognized for his contributions to technology and data protection, including the Best Employee Award at DKIPPI (2021) and the Outstanding Student Award at GIZ/LSETF Skills & Mentorship Training (2019). At Privacy Needle, he leverages his diverse expertise to break down complex data privacy and cybersecurity issues into clear, actionable insights for businesses, professionals, and individuals navigating today’s digital world.

  • 1

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Rating

This site uses Akismet to reduce spam. Learn how your comment data is processed.