Claude Code npm release includes full source code via source map

Claude Code npm release includes full source code via source map

A routine release shipped the internal source of a widely used AI coding agent, and attackers used public interest in the leak as a malware lure.

31 March 2026HappenedBreaches and supply chain
@anthropic-ai/claude-code npm package v2.1.88 · Anthropic · Global
What happened
Version 2.1.88 of Anthropic's Claude Code package on npm included a source map file of about 60 MB. It pointed to the complete, unobfuscated TypeScript source, covering agent orchestration, permission systems, memory and unreleased feature flags. Researcher Chaofan Shou spotted it, and copies spread quickly on GitHub. The same day, separately, malicious versions of the axios npm package, a Claude Code dependency, were published between 00:21 and 03:29 UTC. In the following days, Zscaler ThreatLabz found fake GitHub repositories offering the 'leaked Claude Code' that delivered Vidar infostealer and GhostSocks proxy malware.
Response
Anthropic called it 'a release packaging issue caused by human error, not a security breach' and said no customer data or credentials were exposed. It issued DMCA notices to remove copies from GitHub and said it would add preventive measures.
Discovered by
Security researcher Chaofan Shou (@Fried_rice), who posted on social media; follow-on malware by Zscaler ThreatLabz.
Who was affected
Anthropic (about 512,000 lines of TypeScript across ~1,900 files); users who later downloaded fake 'leaked source' repositories containing malware
Patterns
Supply chainOff-script in public
Confidence: high · checked 24 September 2026. Published under CC BY 4.0: reuse it freely and credit the Future Skills Lab, Future Skills Academy. Seen an error or a newer development? Write to tellmemore@futureskills.academy.

Related

Incidents with the same pattern

What does this ask of people?

Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.

All 177 incidents →The Future Skills Lab

Learn with us

Learn the human skills that gain value

Future Skills 101: live online sessions of 90 minutes, open to anyone. Power Skills trainings for teams on request.