Tensorlake npm Package Compromised to Deliver Shai-Hulud Credential-Stealing Worm
A compromised npm package delivered malware that stole credentials, exfiltrated secrets, established persistence, and executed remotely supplied code.
Overview
A malicious version of the tensorlake software package was released to the npm registryA central database of system settings on a computer or a public catalog that hosts software packages as part of a supply chain attackBreaking into a software maker or vendor so their trusted product or update infects their customers. This compromised version contained hidden malwareSoftware built to steal data, spy on users, lock files, or take control of a computer designed to steal sensitive information and spread to other systems. The software targeted credentialsThe login details, such as a username and password or key, that prove who an account belongs to from local files, cloud environments, and various development tools. It also installed a tool to steal browser data and set up a way for attackers to keep access even after the bad software was removed. The malware spread by finding other packages owned by the victim and republishing them with the same malicious code. Any developer who downloaded version 0.5.144 of the tensorlake package is affected and may have had their secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys exposed.
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.
- supply chain attack
- 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
- 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
- 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
- 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.
- 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
- Credential-Stealing
- Stealing usernames, passwords, login tokens, or keys so an attacker can sign in as a real user. Attackers use phishing pages, keyloggers, and memory dumps for credential theft because logging in with a real employee's password triggers fewer alarms than a noisy software exploit. Security+ objective 2.4 lists the term
- SDK
- A bundle of code libraries, tools, and documentation that developers import to build apps for a platform. Mobile app developers include third-party advertising or analytics SDKs in their apps, and a malicious or buggy SDK can quietly collect data from every app that bundles it.
- sandboxes
- 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
- 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
- persistence
- The tricks an attacker uses to keep access to a computer after a reboot or password change. To maintain persistence on an infected laptop, malware might add itself to the startup folder or create a hidden scheduled task that runs every time the machine turns on.
- 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.
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: Breach or attack
...npm package known as "tensorlake... Found by reading the article; these words are close to its own - Who is affected: "...npm tokens - GitHub tokens - Amazon Web Services (AWS) credentials and secrets..."
Copied word for word from the article - Security+ 2.2 Explain common threat vectors and attack surfaces.
"Tensorlake npm Package Compromised to Deliver Shai-Hulud Credential-Stealing Worm..." Found in the headline - Security+ 2.3 Explain various types of vulnerabilities.
"......as part of a ChainDrop / Shai-Hulud supply chain attack. The malicious version 0.5.144 "contains obfuscated..." Found in the opening sentences - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......npm Package Compromised to Deliver Shai-Hulud Credential-Stealing Worm..." Found in the headline - Security+ 4.1 Given a scenario, apply common security techniques to computing resources.
"......software development kit (SDK) for Tensorlake applications, sandboxes, and cloud services, was compromised as..." Found in the opening sentences - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"Tensorlake npm Package Compromised to Deliver Shai-Hulud Credential-Stealing Worm..." Found in the headline - Security+ 5.3 Explain the processes associated with third-party risk assessment and management.
"......as part of a ChainDrop / Shai-Hulud supply chain attack. The malicious version 0.5.144 "contains obfuscated..." Found in the opening sentences - CYBR 101 week 8: networks, ports, DNS and packets
"......TypeScript software development kit (SDK) for Tensorlake applications, sandboxes, and cloud services, was compromised..." Found in the opening sentences - CYBR 101 week 9: malware, indicators and how detection works
"......npm Package Compromised to Deliver Shai-Hulud Credential-Stealing Worm..." Found in the headline - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Perform static malware analysis.
"An analysis of the compromised release shows that it contains a preinstall hook..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of virtual machine aware malware, debugger aware malware, and packing.
"...contains obfuscated malware that harvests credentials..." 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
- 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 with Shai Hulud worm