LIVE · cybersecurity feed
Live wire
malware

Malicious npm packages evade install-script defenses at runtime

A new npm malware campaign has successfully bypassed recent supply chain security measures by embedding malicious code within a package's normal runtime behavior rather than in installation scripts. The campaign, identified by Checkmarx researchers, involves the `indexed-btree` package, which has accumulated two million weekly downloads, and several other related packages.

ZeroDay News ·

Source: BleepingComputer

A new npm malware campaign has successfully bypassed recent supply chain security measures by embedding malicious code within a package's normal runtime behavior rather than in installation scripts. The campaign, identified by Checkmarx researchers, involves the `indexed-btree` package, which has accumulated two million weekly downloads, and several other related packages.

The `indexed-btree` package mimics the legitimate `sorted-btree` library. Its malicious functionality is not triggered during installation, allowing it to evade security checks introduced by GitHub in June 2026. These measures block dependency lifecycle scripts like `preinstall`, `install`, and `postinstall` unless explicitly approved, and prevent automatic retrieval of dependencies from Git repositories or remote URLs.

Instead of using installation scripts, the malware loader is hidden within the `BTree.prototype.set()` method of the `indexed-btree` package. This method is a core function that would be frequently called by users of the library. When invoked with a specific key value, it triggers `sharedLoad.min.js`, which contains the obfuscated first stage of the malware. This technique allows the malicious code to bypass standard taint-analysis tools and most static scanners.

Upon execution, the malware gathers system details such as architecture, hostname, CPU, memory, and uptime. This information is then exfiltrated via hardcoded Slack and Telegram channels. The malware also communicates with an Ethereum smart contract on the Sepolia test network to receive command-and-control (C2) instructions. It uses X25519 key exchange to derive an AES key, which decrypts a second-stage payload stored in the contract. Operators can also command the malware to delete its files and remove the malicious trigger from the package code to erase its traces.

The threat actors went to considerable lengths to make the `indexed-btree` project appear legitimate. This included creating a convincing GitHub repository, populating it with a fabricated commit history, and curating the developer account.

Checkmarx researchers also identified nine other npm packages linked to the same operation, which have since been removed from npm. These packages also achieved significant download numbers: `ordered-kv-index` (448,184 downloads), `btree-leaderboard` (493,685 downloads), `priority-slot-queue` (402,860 downloads), `btree-range-store` (468,092 downloads), `btree-core` (1,951,274 downloads), `btree-time-index` (425,312 downloads), `btree-lru-cache` (372,185 downloads), `neighbor-key-map` (366,019 downloads), and `sliding-score-window` (448,024 downloads).

The researchers noted that the attackers may have generated significant profits, pointing to an Ethereum wallet holding 109 ETH. However, it is not confirmed that these funds were acquired through cryptocurrency theft.

Developers are advised to move beyond relying solely on install-time scanning and to implement runtime behavioral analysis for enhanced security. Users who have installed `indexed-btree` or any of the other listed malicious packages should rotate all secrets and restore their development environments from a trusted backup.

malware
ShareXLinkedInWhatsAppFacebook

More News

view all →
security

Canadian cybersecurity executive arrested in federal extortion case

A Canadian cybersecurity executive was arrested in Pennsylvania on Thursday, facing federal charges of conspiracy to commit extortion. Edward Dubrovsky, 54, a co-founder and former Chief Operating Officer of CYPFER, a firm specializing in ransomware negotiation, is charged with conspiring to threaten the confidentiality of information for extortion and conspiring to commit Hobbs Act extortion,…

breach

Criminal IP Introduces AITEM as the Next Evolution of Attack Surface Management

AI SPERA, the company behind the cyber threat intelligence platform Criminal IP, has announced AITEM (AI-Powered Threat Exposure Management), an expansion of its Attack Surface Management (ASM) offerings. AITEM aims to move beyond traditional asset discovery to provide a more comprehensive approach to understanding, prioritizing, and responding to security exposures. The platform is scheduled…

ai

AI Is Getting Really Good at Messing With Cybercriminals

Anti-cybercrime initiatives are increasingly deploying artificial intelligence to disrupt scammers by engaging them with lifelike bots, which the criminals mistake for genuine victims. This strategy aims to waste scammers' time and resources while gathering intelligence on their operations.

ransomware

FBI Arrests Ransomware Negotiation Firm Co-Founder in ShinyHunters Probe

The Federal Bureau of Investigation (FBI) has reportedly arrested Edward Dubrovsky, a co-founder of the ransomware negotiation firm Cypfer and currently associated with CyberSteward. The arrest is said to be part of the ongoing ShinyHunters investigation, specifically in connection with an incident involving FBI job applicant data.

ai

The Third-Party Agent Problem: Why Security Built for AI You Chose Misses the Agents You Didn't

A new report highlights a significant blind spot in enterprise security architectures concerning the proliferation of third-party AI agents. The forthcoming 2026 State of Agent Security Report indicates that current security models, often designed to protect AI systems directly chosen and deployed by an organization, frequently fail to account for AI capabilities embedded within third-party…

security

Insider Cyber Extortion Plot Against Industrial Firm Lands Engineer in Prison

A former core infrastructure engineer has been sentenced to prison for an attempted cyber extortion plot against an industrial firm. The engineer reportedly deleted administrative accounts and reset hundreds of user passwords, subsequently demanding a ransom of 20 Bitcoin to prevent further disruption to the company's servers.