Keyv-Linked npm Worm Poisons Hundreds of Packages, Plants Claude Code and VS Code Hooks
- Published
- Record updated
Summary
A credential-stealing npm worm that first appeared in keyv@6.0.0 has spread into hundreds of packages across multiple organizations, with SafeDep verifying 353 poisoned versions across 79 package names on August 4, 2026. The malicious release runs a preinstall script that executes a credential-stealing bundle in developer and CI environments, and it can use available npm publishing access to poison more packages. The Keyv repository also retained Claude Code and VS Code hooks that can run the payload once a user trusts the workspace or permits the project configuration.
Mitigation
Socket says any workstation or runner that executed an affected version should be treated as credential-exposed. SafeDep advises responders to remove the malware's credential-revocation watcher before rotating exposed tokens and keys, because revocation triggers the watcher and rotating first can run an attacker-supplied local handler. Exposure checks should use exact package names, resolved versions and lockfiles rather than a cached list of current tags. npm 12 blocks unapproved dependency lifecycle scripts by default, but earlier npm clients and other install paths that permit lifecycle scripts remain exposed.
Related items
- MediumThe Agent That Robbed Itself: an AI-Driven Hugging Face Malware Campaign Leaks Its Own OperatorSame vendor · JFrog Security Research (Posts)
- MediumCVE-2026-134825: Gradio 6.27.0 before 6.32.0 contains an authentication bypass vulnerability in gradio/history.py that allows remote…Same vendor · NVD/CVE Database
- InfoRemember the frontier AI pause? Chip companies don’t eitherSame vendor · The Verge (AI)
- MediumResearchers hijack Hugging Face account for popular Kokoro AI modelSame vendor · BleepingComputer
- InfoCalifornia sues OpenAI over safety concerns after rogue agent hackingSame vendor · The Guardian Technology