Malicious npm Package indexed-btree Hid Its Loader in Runtime Code Before Removal
A malicious npm package hid its loader in runtime code instead of using lifecycle scripts, suggesting attackers are shifting tactics to bypass security controls.
Overview
A malicious software package named indexed-btree was uploaded to the npm registryA central database of system settings on a computer or a public catalog that hosts software packages on June 18, 2026, by a user named charlessadler25. The package mimicked a legitimate utility called sorted-btree and amassed millions of downloads in a short span of time. Unlike typical attacks that use installation scriptsA short program written in an interpreted language to automate tasks in a browser, shell, or application, this malware hid its code inside the application itself to avoid detection by new security controlsThe technical rules, tools, and policies put in place to prevent, detect, or limit cyberattacks. The threat actor earned approximately 230,933.57 euros in cryptocurrencyDigital money tracked on a public ledger using cryptography instead of a central bank from the campaign. The package and its associated GitHub repositoryA central storage place where a software project's source code, change history, and configuration files are kept have been removed from the registry. Organizations that downloaded the package during that period are affected by this supply chain attack.
Terms in this story
- 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.
- scripts
- 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.
- security controls
- The technical rules, tools, and policies put in place to prevent, detect, or limit cyberattacks. Network firewalls, multifactor authentication, disk encryption, and regular backups are all security controls that auditors check after an incident. Security+ objective 1.1 lists the term
- cryptocurrency
- Digital money tracked on a public ledger using cryptography instead of a central bank. Cryptocurrency appears constantly in cybersecurity news because ransomware gangs demand payment in digital coins and hackers target online exchanges and digital wallets directly.
- repository
- A central storage place where a software project's source code, change history, and configuration files are kept. Software teams collaborate by pushing code to a shared repository, and attackers scan public repositories for accidentally committed API keys or try to poison popular projects.
- 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
- 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.
- threat actors
- A person or group that carries out cyberattacks, whether for money, spying, or disruption. Security researchers use the term threat actor to refer to a criminal gang, state spy unit, or solo hacker behind a series of intrusions. Security+ objective 2.1 lists the term
- configurations
- A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
- exploited
- A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
- malicious code
- 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
- 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.
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 The Hacker News website. Cite the article, not this page.
Read the full article on The Hacker News (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.
- Kind of story: Research and reports
"...malicious npm package named "indexed-btree" has been observed hiding its malicious behavior..." Found by reading the article; these exact words are in it - Security+ 1.1 Compare and contrast various types of security controls.
"......likely shifting tactics in response to recent security controls. "Indexed-btree is a malicious npm package..." Found in the opening sentences - Security+ 2.1 Compare and contrast common threat actors and motivations.
"......rather than using lifecycle scripts, indicating that threat actors are likely shifting tactics in response to..." Found in the opening sentences - Security+ 2.2 Explain common threat vectors and attack surfaces.
"Malicious npm Package indexed-btree Hid Its Loader in Runtime Code..." Found in the headline - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"Malicious npm Package indexed-btree Hid Its Loader in Runtime Code Before Removal..." Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......rather than using lifecycle scripts, indicating that threat actors are likely shifting tactics in response to..." Found in the opening sentences - CYBR 101 week 8: networks, ports, DNS and packets
"......been observed hiding its malicious behavior within application code rather than using lifecycle scripts, indicating..." Found in the opening sentences - CYBR 101 week 9: malware, indicators and how detection works
"Malicious npm Package indexed-btree Hid Its Loader in Runtime Code Before Removal..." Found in the headline - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of malware triage.
"...malicious behavior within application code rather than using lifecycle scripts..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Manage dependencies and risks.
"...package was first uploaded to the registry on June 18, 2026..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- New npm malware finds a way around install script defenses
- Malicious npm package ‘indexed-btree’ evades install-script defenses and detonates at runtime
- Malicious npm packages evade install-script defenses at runtime