bobbyiliev's profile
Bobby Iliev@bobbyiliev•Apr 01
63.2K
Materialize's profile
Post cover image

Claude Code Source Leaked via npm Source Maps: Lessons for Every DevOps Team

From devops-daily.com•Apr 01•7m read time

Anthropic accidentally shipped a 59.8 MB source map in version 2.1.88 of the Claude Code npm package, exposing 512,000+ lines of TypeScript source across 1,900 files. This was the second such incident, with a similar leak occurring in February 2025. The post explains what was exposed (CLI architecture, agent logic, prompt patterns, unreleased features) and what was not (model weights, user data, secrets). It provides concrete prevention steps for DevOps teams: using the `files` whitelist in package.json, disabling source maps in production builds, running `npm pack --dry-run` in CI to catch unwanted files, adding pipeline checks for Docker images via multi-stage builds, and enabling npm provenance. The key lesson from Claude Code's creator Boris Cherny is to automate the fix in the pipeline rather than adding manual checklist steps that humans will eventually miss.

2 Comments

Sort:

bobbyiliev's user avatar
Bobby Iliev
@bobbyiliev
Joined Sep 24. 2020
63.2K
Materialize's profile

Materialize

Verified

DevOps Engineer | Laravel enthusiast | Docker Captain

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard