tensorlake NPM package compromised with Shai Hulud worm
A compromised version of the tensorlake package was published to npm, containing a worm that steals secrets and spreads through connected supply chains.
Overview
On 8 October 2026, a threat actorA person or group that carries out cyberattacks, whether for money, spying, or disruption published a compromised version of the tensorlake package to npm. This specific version, 0.5.144, contains a variant of the Shai-Hulud worm that steals secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys and tries to spread through connected supply chains. Tensorlake is a serverlessA cloud execution model where the provider runs small code functions on demand without dedicated virtual servers sandboxAn isolated test environment where a program can run without touching the rest of the computer for AI agentsArtificial intelligence software that can plan steps, call tools, and take actions on its own with over 100,000 lifetime installs, making it a significant target for attackers. The malware uses a preinstall scriptA short program written in an interpreted language to automate tasks in a browser, shell, or application to drop Bun and execute an obfuscatedScrambling or tangling code on purpose so humans and security scanners have a hard time reading it payloadThe part of an attack or malware file that carries out the harmful action on the target that exfiltratesThe unauthorized copying and sending of stolen files or records out of a victim's network sensitive data. It also attempts to read data from web browser stores and cryptocurrencyDigital money tracked on a public ledger using cryptography instead of a central bank extensions, which is a new behavior compared to previous waves. Any system impacted by this malware should be treated as fully compromised, and all secrets or credentialsThe login details, such as a username and password or key, that prove who an account belongs to it contained must be rotated as a critical priority.
Terms in this story
- threat actor
- 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
- 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.
- 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.
- 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.
- obfuscated
- Scrambling or tangling code on purpose so humans and security scanners have a hard time reading it. Attackers use obfuscation by renaming variables to gibberish, splitting strings, and wrapping scripts in layers of encoding so analysts cannot easily see what the program does. Security+ objective 1.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.
- exfiltrates
- The unauthorized copying and sending of stolen files or records out of a victim's network. Before launching ransomware or after breaking into a cloud database, attackers perform data exfiltration by quietly uploading customer records to an external storage server they control. Security+ objective 2.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.
- credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- 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
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 Aikido website. Cite the article, not this page.
Read the full article on Aikido (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
...threat actor published a compromised version of tensorlake to... Found by reading the article; these words are close to its own - Security+ 2.2 Explain common threat vectors and attack surfaces.
"...tensorlake NPM package compromised with Shai Hulud worm..." Found in the headline - Security+ 2.3 Explain various types of vulnerabilities.
"...malicious code detected in tensorlake 0.5.144 Category: Vulnerabilities & Threats..." Found in the opening sentences - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"...tensorlake NPM package compromised with Shai Hulud worm..." Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"...malicious code detected in tensorlake 0.5.144 Category: Vulnerabilities & Threats..." Found in the opening sentences - CYBR 101 week 9: malware, indicators and how detection works
"...tensorlake NPM package compromised with Shai Hulud worm..." Found in the headline
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- Tensorlake npm Package Compromised: Anatomy of the Shai-Hulud Worm, Hostage Token Wipe-Switch, and AI Supply Chain Attacks
- Tensorlake npm Package Compromised to Spread Shai-Hulud Worm and Steal Developer Secrets
- Hackers Hijack Tensorlake Package to Spread Shai-Hulud Supply Chain Malware
- Tensorlake npm Package Compromised to Deliver Shai-Hulud Credential-Stealing Worm