THE PERMISSION [LAYER]

AI agent incident

The ChainDrop npm worm planted hooks in Claude Code and VS Code

Reported · 2 sources

What happened

A self-propagating worm that Microsoft tracked as ChainDrop, beginning with keyv@6.0.0, spread through hundreds of npm packages, stole credentials, republished malicious updates automatically, and planted hooks into Claude Code and VS Code. Reported counts of affected packages ranged from about 353 to 868.

Why it matters

Attackers targeted agent tooling directly rather than incidentally, and the credentials at risk were the non-human identities sitting in CI and package-publishing pipelines.

New incidents by email

Get incidents like this one in your inbox

New AI agent incidents are covered in the briefing, with what to check on the agents you already run. At least once a week, free.

You confirm by email. Unsubscribe in one click.

Sources

  1. Microsoft ChainDrop supply chain compromise: Anatomy of a self-propagating worm
  2. The Hacker News Keyv-Linked npm Worm Poisons Hundreds of Packages, Plants Claude Code and VS Code Hooks

Background reading

Agent plugins and skills are a supply chain An explainer on the problem behind this incident.

Cite or correct this record

“The ChainDrop npm worm planted hooks in Claude Code and VS Code.” The Permission Layer AI Agent Incident Database, https://thepermissionlayer.com/incidents/chaindrop-npm-worm/. Database updated November 10, 2026.

Every record traces to the dated sources above. If something here is wrong or missing, email editor@thepermissionlayer.com and it gets fixed. See this record in the full list.

The Permission Layer

Get the next incident like this explained

When an AI agent breaks out, leaks data or runs up a bill, the briefing covers what happened and what to check on the agents you already run. At least once a week, five-minute read, free.

You confirm by email. Unsubscribe in one click.