Skip to main content
Lightning Jar - Web Studio Lightning Jar Wordmark
Reading List

Popular npm packages in the keyv and cacheable namespaces compromised in active supply chain attack

Summary:

A compromised maintainer account shipped malicious releases of keyv, the @keyv and cacheable families, flat-cache, file-entry-cache, and others, using a preinstall hook that downloads a standalone Bun runtime and runs an obfuscated payload. The payload harvests cloud and CI credentials (AWS, GCP, Azure, Kubernetes, GitHub Actions OIDC, npm tokens), then self-propagates by republishing other packages with the same hook using the stolen npm tokens. Two details stand out to us. The persistence layer plants autostart hooks in .claude and .vscode directories, explicitly targeting developer machines and AI coding agents as an execution surface. And remediation is order-sensitive: Socket advises removing the host-level dead-man's switch watching stolen GitHub tokens before rotating credentials, or the rotation itself tips off the attacker. This is the maintainer-account attack class the npm hardening measures we logged earlier are aimed at; install-script-off-by-default cannot come fast enough. We audited our own lockfiles against the affected list the day we read it, and would suggest the same to anyone.

Excerpt:

"Socket details a self-propagating npm supply chain attack: a compromised maintainer account, a malicious preinstall hook, credential harvesting, and persistence hooks aimed at developers and AI agents."
#Supply Chain Security#Security#npm#Open Source
Read Full Source

Ask Eljay

Ask about the studio's work, research, packages, or writing. A few starters:

Answers come from this site's own content and link their sources. For anything that matters, email hello@lightningjar.com.