Cybersecurity news

Jessica Doner

Back to the list

New npm malware finds a way around install script defenses

CSO Online,

A malicious package disguised as a legitimate library spread malware through normal code, bypassing defenses that only block install scripts.

Malware and ransomware

Overview

A malicious npm packageA reusable web code library published to the public npm registry for developers to install named indexed-btree impersonated the legitimate sorted-btree library to spread malwareSoftware built to steal data, spy on users, lock files, or take control of a computer. The package reached over 2 million weekly downloads by hiding its payloadThe part of an attack or malware file that carries out the harmful action on the target in a routine library function rather than an install scriptA short program written in an interpreted language to automate tasks in a browser, shell, or application. This approach bypassed new defenses that block suspicious install scripts. The malware was active for roughly 11 weeks before it was flagged and removed from the registryA central database of system settings on a computer or a public catalog that hosts software packages on September 3, 2026. It collected host information and sent it to hardcodedPasswords or secret keys written directly into source code instead of stored in a separate vault Slack channel and Telegram chats. The attackers used a smart contractA self-executing program stored on a blockchain that automatically moves digital assets when set conditions are met on the Sepolia Ethereum testnet blockchainA shared digital ledger where transactions are grouped into linked blocks secured by cryptographic hashes to hide their command-and-control server address.

Terms in this story

npm package
A reusable web code library published to the public npm registry for developers to install. Web developers pull in dozens of npm packages when building a site, and attackers frequently publish malicious packages with lookalike names to steal developer credentials during installation. Security+ objective 2.2 lists the term
malware
Software built to steal data, spy on users, lock files, or take control of a computer. News reports use malware as the umbrella term for viruses, ransomware, spyware, and trojans that criminals install on phones, laptops, or servers without permission. Security+ objective 2.4 lists the term
payload
The part of an attack or malware file that carries out the harmful action on the target. A phishing email and an exploit are only the delivery steps, while the payload is the ransomware or spyware that actually runs once the computer is compromised.
script
A short program written in an interpreted language to automate tasks in a browser, shell, or application. System administrators write scripts to automate daily maintenance, while attackers often use a script to download malware and disable security settings without dropping a compiled file.
registry
A central database of system settings on a computer or a public catalog that hosts software packages. In security news, the registry means either the operating system settings database where malware adds startup entries or a public package registry where developers download code libraries.
hardcoded
Passwords or secret keys written directly into source code instead of stored in a separate vault. When a vendor ships a router or server appliance with hardcoded credentials inside its firmware, every customer device shares the exact same secret backdoor password.
smart contract
A self-executing program stored on a blockchain that automatically moves digital assets when set conditions are met. Because smart contract code is public and cannot easily be reversed once deployed, a single logic bug in a smart contract can let an attacker drain millions in cryptocurrency.
Blockchain
A shared digital ledger where transactions are grouped into linked blocks secured by cryptographic hashes. In security news, blockchain appears both in thefts from cryptocurrency services and when malware hides its command server address inside a public blockchain transaction. Security+ objective 1.4 lists the term
JavaScript
The programming language that web browsers run to make web pages interactive, and that also runs on servers. Because every browser runs JavaScript automatically when loading a page, attackers use malicious JavaScript in cross-site scripting, fake browser updates, and compromised software packages.
software supply-chain
All the open-source libraries, build tools, code repositories, and update servers that go into making a program. Protecting the software supply chain means making sure no attacker has tampered with the third-party packages, build pipelines, or signing keys used to ship an application.
runtime
The environment in which a program executes, or the period of time while the program is actively running. A flaw in a container or language runtime can let a program escape its isolation, and runtime security tools watch what a program actually does in memory while it runs.
supply-chain attacks
Breaking into a software maker or vendor so their trusted product or update infects their customers. Instead of attacking a hundred companies one by one, an intruder compromises a single software library or update server that all of those companies already trust. Security+ objective 2.2 lists the term

This page is a short description made for this site. The article itself, with its author's name and its own link, is on the CSO Online website. Cite the article, not this page.

Read the full article on CSO Online (opens in a new tab)

Course connections

Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.

How a story is connected to the course, and every objective, week and job role

Same story at other outlets

Related