the Claude Code source leak today is a good reminder that AI tooling in your release pipeline needs the same code review discipline as everything else

Posted by vitaminZaman@reddit | sysadmin | View on Reddit | 73 comments

512,000 lines of Anthropic's own source code went public this morning because a source map file in their npm package pointed to a publicly accessible zip on their R2 bucket. Human error in the release packaging process, nobody caught it before it shipped, and now the code is permanently mirrored across GitHub, Gitlawb and torrent networks regardless of what any takedown notice says.

The part worth paying attention to isn't the IP exposure, it's the process failure. A misconfigured .npmignore or files field in package.json caused this, which is the kind of thing that should get caught before a package hits a public registry, not after someone downloads and decompresses it. Anthropic's own statement confirmed it was a packaging issue not a breach, which almost makes it worse because packaging hygiene is a solved problem.

It also coincided with a completely separate npm supply chain attack where malicious axios versions with an embedded RAT went live the same morning, so anyone who updated Claude Code between 00:21 and 03:29 UTC today has a different and more serious problem to deal with.

The release pipeline question this raises is whether anyone is actually running automated review on packaging configuration and release artifacts the same way they run it on application code. In most teams the answer is no, release scripts and packaging config get less scrutiny than the code they ship, and that gap is where this kind of thing lives.