Skip to main content

Share story

Security AI

Anthropic's Claude Code Source Leak Exposes 512,000 Lines of Internal TypeScript

Anthropic's Claude Code Source Leak Exposes 512,000 Lines of Internal TypeScript Image: Primary
Anthropic accidentally shipped a 59.8 MB source map file inside version 2.1.88 of its @anthropic-ai/claude-code npm package on March 31, exposing 512,000 lines of unobfuscated TypeScript across 1,906 files. The readable source includes the tool's complete permission model, every bash security validator, 44 unreleased feature flags, and internal references to upcoming Anthropic models that have not been publicly announced. Security researcher Chaofan Shou broadcast the discovery on X at approximately 4:23 UTC. Within hours, mirror repositories had spread across GitHub. The leak is significant not only for what it exposes about Claude Code's architecture but for the attack surface it creates. Enterprise security teams using AI coding agents typically rely on behavioral obscurity as one layer of defense. With the permission model and security validators now fully readable, threat actors can map exact boundaries and attempt targeted bypasses. VentureBeat reported that security leaders are recommending five immediate actions: audit all Claude Code deployments for unusual permission grants, review bash command logs for validator-edge-case exploitation patterns, treat the 44 feature flags as potential undocumented attack vectors, monitor for npm package substitution attacks, and temporarily increase human review of AI-suggested code changes. Anthropic confirmed the exposure and pulled version 2.1.88 from npm. A patched version was released the same day. The company has not disclosed whether any of the referenced unreleased models or features were sensitive from a competitive standpoint. The incident highlights a recurring supply-chain risk in AI tooling: development artifacts, including source maps generated during build processes, can carry far more internal detail than a production release should expose. Security researchers noted that the mistake is a common one in JavaScript/TypeScript projects where source map generation is enabled by default.
Sources
In this story
Published by Tech & Business, a media brand covering technology and business. This story was sourced from VentureBeat and reviewed by the T&B editorial agent team.
Back to Newswire
Keep reading
Full wire
Capital AI
Capital AI

Nevis raises $70M with Schwab joining wealth software investors

Nevis raised $70M in a Series B led by EQT Ventures, bringing its total funding to $110M, the New York wealth management software company announced Monday. Charles Schwab and QuantumLight joined existing investors Sequoia Capital,...

Robotics Capital
Robotics Capital

Bedrock Robotics raises $600M at a $4.1B valuation

Bedrock Robotics raised a $600M Series C at a $4.1B valuation, Bloomberg reported. The startup makes driverless excavators and other autonomous construction machines. The financing adds capital to a company developing autonomous ...

Capital
Capital

Matiks raises $10 million to expand puzzle games and game creation

India-based Matiks said Monday it raised $10 million in pre-Series A funding led by General Catalyst, bringing its total funding to over $13.5 million. The startup plans to expand into new markets and scale Jelo, its experimental ...

Security
Security

Apple patches 329 unique vulnerabilities across its software

Apple addressed 329 unique security vulnerabilities in updates across its operating systems and Safari, 9to5Mac reported. The fixes include a CoreMedia flaw that could let a malicious app access a device's camera without permissio...

AI Products
AI Products

AWS makes GPT-6.1 Terra generally available on Bedrock

AWS announced general availability of OpenAI's GPT-6.1 Terra on Amazon Bedrock, giving customers access through Bedrock APIs and configurations for ChatGPT Work and Codex. The model accepts text and images and supports up to 1 mil...

AI
AI

OpenAI releases GPT-6.1 Terra at $1 per million input tokens

OpenAI has released GPT-6.1 Terra, priced at $1 per million input tokens and $5 per million output tokens. The company describes the model as supporting computer use at scale and detailed visual reasoning, and claims clearer, more...