Anthropic confirms it leaked 512,000 lines of Claude Code source code, revealing some of its biggest secrets



  • Anthropic employee accidentally leaked Claude Code source via npm map file
  • The leak exposed 1,900 TypeScript files with over 500,000 lines of code, quickly mirrored on GitHub
  • Anthropic confirmed that no customer data was exposed, calling it a packaging error amid recent vulnerabilities like ShadowPrompt and Cloudy Day.

An Anthropic employee accidentally leaked the source code of one of the most popular Artificial Intelligence (AI) assistants out there: Claude Code.

Security researcher Chaofan Shou posted on X, saying: “Claude Code’s source code has been leaked via a map file in its npm registry!” The tweet itself has been viewed over 30 million times so far, and the numbers are increasing rapidly, showing just how popular the tool really is.



Leave a Comment

Your email address will not be published. Required fields are marked *