Cybersecurity news

Jessica Doner

Back to the list

Tensorlake npm Package Compromised to Spread Shai-Hulud Worm and Steal Developer Secrets

Cyber Security News,

A malicious update to a popular software package was released to steal developer secrets and spread through connected software supply chains.

Malware and ransomwareAttacks and breachesAI and security

Overview

A malicious version of the Tensorlake npm packageA reusable web code library published to the public npm registry for developers to install was released on October 8, 2026, containing a Shai-Hulud worm variant designed to steal developer secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys. The affected version, tensorlake@0.5.144, had more than 100,000 lifetime installs, which increased the potential reach of the incident. The malwareSoftware built to steal data, spy on users, lock files, or take control of a computer was triggered during installation, allowing it to run before developers began using the package. It used a preinstall scriptA short program written in an interpreted language to automate tasks in a browser, shell, or application to download the Bun JavaScriptThe programming language that web browsers run to make web pages interactive, and that also runs on servers runtimeThe environment in which a program executes, or the period of time while the program is actively running and launch hidden logic that collected secrets from environment variablesA named setting stored in a program's running environment that often holds file paths or secret keys and local credential files. The repositoryA central storage place where a software project's source code, change history, and configuration files are kept remained compromised for about 20 hours before the npm release was published. Developers who installed this specific version are affected by the theft of their secrets and the potential spread of the worm through connected software supply chainsAll the open-source libraries, build tools, code repositories, and update servers that go into making a program.

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
Secrets
Private credentials used by software, such as API keys, database passwords, and encryption keys. Software teams use vault tools to keep secrets out of source code because anyone who finds a leaked secret in a public repository can log right in to the company's cloud services.
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
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.
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.
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.
environment variables
A named setting stored in a program's running environment that often holds file paths or secret keys. Cloud apps frequently store database passwords and API tokens in environment variables, so an attacker who tricks a server into printing its environment variables can steal those secrets.
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.
software supply chains
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.
serverless
A cloud execution model where the provider runs small code functions on demand without dedicated virtual servers. With serverless computing, developers upload individual functions that wake up only when a request arrives, shifting server patching to the cloud provider while leaving application logic permissions to the developer. Security+ objective 3.1 lists the term
sandbox
An isolated test environment where a program can run without touching the rest of the computer. Web browsers run each tab inside a sandbox so a malicious page cannot read your personal files, and analysts detonate suspicious attachments in a sandbox to watch what they do. Security+ objective 4.1 lists the term
AI agents
Artificial intelligence software that can plan steps, call tools, and take actions on its own. Many stories cover agentic AI when companies connect language models to email, browsers, and databases, creating new risks if a hidden prompt tricks the agent into leaking data.

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 Cyber Security News website. Cite the article, not this page.

Read the full article on Cyber Security 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.

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

Same story at other outlets

Related