
Security researcher Chaofan Shou discovered the leak on March 31,
The leak of Claude Code's source code from Anthropic has sparked intense and varied reactions across the tech ecosystem. What makes it particularly notable is that Anthropic has built a reputation around strong security practices and strict controls, yet the leak stemmed through a basic packaging oversight that security researchers say should never occur in a finished software product. Developers and techies, meanwhile, have reacted with enthusiasm, sharing and analysing the code across forums and repositories, calling it a valuable learning resource rather than a crisis.
Cybersecurity professionals, however, have criticised the lapse, saying how even leading AI firms may be lagging in operational security, raising concerns about future risks as AI systems become more autonomous. The leak is seen as a blow to Anthropic's operational reputation, especially as it reportedly prepares for a $380 billion IPO.
On the internet, the leak has triggered sharp reactions, with many users both criticising and mocking the operational security practices at Anthropic and pointing out the obvious irony. Shakthi Vadakkepat, an active Enterprise AI Architect, called the lapse "the mothership of all code leaks," noting how the leak stemmed from something as basic as shipping a map file within an npm package.
"The big deal is that Anthropic is a company that prides itself on the level of security and controls they have in place, and then they ship a map file in their npm. The other thing is that they'll have a tough time suing the guy who created the repo on GitHub because he has essentially ported the code to Python, hence making the DMCA inapplicable here. And the logical argument would be that nothing was "hacked" per se; Anthropic essentially shipped the map file themselves," he wrote on X.
To make the technical lapse easier to understand, another user compared it to a homeowner investing heavily in security, locking doors, installing surveillance systems, and hiring guards, only to accidentally publish the detailed layout of the house online for anyone to access.
"This is the same company that told Congress AI is an existential threat... the same company that spent $8 billion building 'the most safety-focused lab on earth'... the same company the Pentagon blacklisted as a 'supply chain risk' because they were supposedly TOO principled... and they got exposed by a config file that any mid-level engineer would've caught in a code review," the user added.
"The company telling the world how dangerous AI is... couldn't protect its own code from a rookie mistake. These are the people advising governments on regulation. Testifying about existential risk. Asking to be the ones trusted with the most powerful technology ever built. And they just shipped their own blueprints to the public by accident," another user commented.
Check out other reactions and memes flooding the internet:
Notably, security researcher Chaofan Shou discovered the leak on March 31, when he found out that Claude Code had its entire source code compromised via a 60MB source-map file (cli.js.map) in its npm package. This file allowed anyone to reconstruct the full TypeScript codebase, essentially exposing the underlying architecture of Claude Code.
The exposed code includes the CLI implementation, agent architecture, unreleased features, and internal tooling - but not the model weights or user data. Anthropic confirmed the leak was due to human error and not a security breach.
Show full article
Track Latest News Live on NDTV.com and get news updates from India and around the world
Claude Code Leak, Anthropic, Claude Code Hack