Keyv-Linked npm Worm Poisons Hundreds of Packages, Plants Claude Code and VS Code Hooks
A credential-stealing worm spread from one npm package to hundreds of others, planting hooks in Claude Code and VS Code.
Overview
A credential-stealingStealing usernames, passwords, login tokens, or keys so an attacker can sign in as a real user worm spread through hundreds of software packages on the npm registryA central database of system settings on a computer or a public catalog that hosts software packages starting with a malicious release of keyv version 6.0.0. The malware used a preinstall scriptA short program written in an interpreted language to automate tasks in a browser, shell, or application to run a bundle that steals sensitive data from developer and continuous integration environments. It targets repositoryA central storage place where a software project's source code, change history, and configuration files are kept, package registry, cloud, and private-keyThe key only its owner holds material while also installing a watcher that triggers when credentials are revoked. The attack also planted hooks for Claude Code and Visual Studio Code that execute the payloadThe part of an attack or malware file that carries out the harmful action on the target when a user trusts a workspace. SafeDep verified 353 poisoned versions across 79 package names, while Aikido reported at least 868 packages across 1,381 versions. Any workstation or runner that executed an affected version must be treated as having exposed credentials.
Terms in this story
- 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
- 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.
- 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.
- 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.
- private-key
- The key only its owner holds. When attackers steal a company's private key in a breach, they can sign malware so computers trust it or impersonate the company's website to intercept customer traffic. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 2); 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.
- namespaces
- A named boundary that keeps variable names, package names, or container resources separate from each other. Operating systems use namespaces to isolate containers so a program inside one container sees only its own files and processes, not those of the host server.
- configuration
- 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.
- malware's
- 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
- revocation
- Officially canceling a digital certificate before its expiration date because its private key was compromised or misissued. When a website's private key leaks, the owner requests certificate revocation so browsers stop trusting anyone who presents that old certificate.
- tokens
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
- keys
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
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
"A credential-stealing npm worm that first appeared in keyv@6.0.0 spread beyond the Keyv and Cacheable namespaces into hundreds of packages across multiple organizations..." Found by reading the article; these exact words are in it - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"Keyv-Linked npm Worm Poisons Hundreds of Packages, Plants Claude Code..." Found in the headline - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"A credential-stealing npm worm that first appeared in..." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......npm Worm Poisons Hundreds of Packages, Plants Claude Code and VS Code Hooks..." Found in the headline - CYBR 101 week 9: malware, indicators and how detection works
"Keyv-Linked npm Worm Poisons Hundreds of Packages, Plants Claude Code..." Found in the headline - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of malware triage.
"...malicious release used a preinstall script to run a credential-stealing bundle..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Perform secure program testing, review, and/or assessment to identify potential flaws in codes and mitigate vulnerabilities.
"...safedep advises responders to remove the malwares credential-revocation watcher..." 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