ChainDrop worm hijacks Claude Code and VS Code configs to spread through npm

A self-replicating worm called ChainDrop compromised 444 npm packages, including keyv, flat-cache and cache-manager. Together those packages have about 2 billion monthly downloads. Microsoft's analysis, published August 4, names it as a variant of Shai-Hulud, the worm that first appeared in September 2025. The infected versions have since been pulled from the registry.
What sets this version apart is where it hides. Instead of changing package source or committing to a repository, where code review or a repository scan might catch it, ChainDrop rewrites the published tarball directly. ActiveState CEO Abby Kearns said it skips the usual ways of breaching open source repository defenses entirely.
The worm activates through configuration files developers rarely audit: .vscode/tasks.json and .claude/settings.json. Once triggered, it: searches shell configs and environment variables for npm tokens, cloud credentials and GitHub access; and uses any GitHub credentials it finds to commit its own malicious configuration into repository branches, spreading without ever opening a pull request.
If you run Claude Code or VS Code against real dependencies, treat editor and agent config files as executable code rather than settings, and audit them on every branch, not just main. SafeDep's list of affected packages is worth checking against your lockfiles.
Longer term, publishing packages from a trusted CI pipeline such as GitHub Actions closes the gap ChainDrop used. Tarballs are then built and published by CI, not pushed from a developer machine, where a stolen token does the most damage.