Cybersecurity news

Jessica Doner

Back to the list

Don't Revoke That Token Yet: Inside the keyv/cacheable npm Worm, (Wed, Aug 5th)

SANS Internet Storm Center,

A compromised npm package executes a payload when the stolen token is revoked, making that standard security reflex the wrong first step.

Malware and ransomwareAttacks and breaches

Overview

On August 4, 2026, an attacker took over the maintainerThe developer or small team responsible for reviewing changes and publishing releases for an open-source project account for the keyv and cacheable npm namespacesA named boundary that keeps variable names, package names, or container resources separate from each other and published trojanizedAltered to hide malware inside a legitimate-looking installer, update, or open-source package releases. These caching libraries sit near the bottom of many dependencyAn external code library or package that a software project relies on to do part of its work trees, meaning they affect a large number of software projects. The malicious versions include a preinstall hook that downloads a standalone Bun runtimeThe environment in which a program executes, or the period of time while the program is actively running and runs an obfuscatedScrambling or tangling code on purpose so humans and security scanners have a hard time reading it second stage to harvest sensitive data. The payloadThe part of an attack or malware file that carries out the harmful action on the target then uses stolen credentials to inject the same hook into other packages, creating a worm that spread to more than 440 packages across two thousand-plus versions. The threat also targets developers who simply open the source repositoryA central storage place where a software project's source code, change history, and configuration files are kept in an IDE, as autostart hooks execute the loaderA stage of malware that runs first on an infected machine to fetch, decrypt, and launch other payloads without requiring an install. This means that security engineers and AI coding agents who investigate the incident by opening the directory are also at risk of having their systems compromised.

Terms in this story

maintainer
The developer or small team responsible for reviewing changes and publishing releases for an open-source project. Supply chain attackers often target a volunteer maintainer with phishing emails or offers to help, hoping to gain publishing rights over a popular code library.
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.
trojanized
Altered to hide malware inside a legitimate-looking installer, update, or open-source package. Attackers distribute trojanized copies of popular utilities through search ads so users get a working program while a hidden background script steals their passwords.
dependency
An external code library or package that a software project relies on to do part of its work. When a popular open-source dependency has a security bug or gets hijacked by an attacker, every application that imports that package inherits the risk.
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.
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.
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.
loader
A stage of malware that runs first on an infected machine to fetch, decrypt, and launch other payloads. Criminal groups specialize in spreading a stealthy loader through spam or fake downloads and then charge ransomware and infostealer operators to deliver their malware onto those infected PCs. Security+ objective 2.4 lists the term
Token
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)
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.

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 SANS Internet Storm Center website. Cite the article, not this page.

Read the full article on SANS Internet Storm Center (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

Related