惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
美团技术团队
Recent Announcements
Recent Announcements
B
Blog
GbyAI
GbyAI
雷峰网
雷峰网
博客园_首页
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Tailwind CSS Blog
M
MIT News - Artificial intelligence
V
V2EX
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
L
LangChain Blog
Microsoft Security Blog
Microsoft Security Blog
宝玉的分享
宝玉的分享
A
About on SuperTechFans
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
Last Week in AI
Last Week in AI
aimingoo的专栏
aimingoo的专栏

Machines – Silicon Republic

Why we have to start thinking ahead to combat rogue AI Opinion: Why dismissing AI doom talk as hype may be the laziest take Microsoft drafts 'humanist AI code of conduct' amid safety debate Quantum funding only a part of the solution, EU experts say OpenAI launches GPT-6 Astra Anthropic launches Claude Fable 5.1 and Mythos 5.1 Household names co-sign open letter on AI cybersecurity threat Bill Gates warns of AI-led societal upheaval if leaders don’t act Revolut to advance fintech architecture with research platform AI bias isn’t just algorithm error, it’s a chain of human decisions Waymo details custom AI silicon for autonomous vehicles OpenAI launches ChatGPT for teens amid calls for stronger child safety measures Alibaba AI models pass Google, Meta with 3bn downloads China’s Z.ai unveils GLM-5.3, claims chart-leading scores Alice & Bob partner on European doctoral network for quantum error correction Quantinuum and Oracle to blend quantum and cloud in new partnership Anthropic pledges to watermark AI content in EU Opinion: AI-native engineering teams are replacing traditional delivery Anthropic confirms plans to build own chips amid global shortage TechIreland launches Galway-bound National AI Challenge 2026 Seven experts join AI Office of Ireland board Thinking Machines Lab unveils new Inkling version at 25pc size After OpenAI incident, Anthropic finds Claude hacked organisations Quantum computing company Zuriq to scale tech amid $25.5m raise Nvidia forms industry alliance post Hugging Face cyber incident Anthropic breaks from AI rivals in open-weight model debate Why is China cracking down on AI-powered companions? Moonshot AI readies to release Kimi K3 for public download J&J table-integrated surgical robot gets FDA approval Samsung’s new robotics division appoints former Boston Dynamics lead
Anthropic accidentally leaks Claude Code source in npm slip
2026-04-01 · via Machines – Silicon Republic

Anthropic confirmed yesterday that ‘human error’ led to the leak of much of the source code of its star product Claude Code.

Anthropic has accidentally leaked the source code of its Claude Code agent after a misconfigured software package exposed it to the public. It follows a separate incident last week where Fortune said the company had accidentally leaked thousands of files.

The leak was spotted on Tuesday by security researcher Chaofan Shou, according to The Register, who found that the official npm package for Claude Code had shipped with a map file referencing an unobfuscated TypeScript source. Chaofan Shou proceeded to announce his find on X, sparking a flurry of activity.

That file pointed to a zip archive stored on Anthropic’s Cloudflare R2 storage bucket, which anyone could download and decompress. The archive reportedly contained some 1,900 TypeScript files totalling more than 512,000 lines of code, including full libraries of slash commands and built-in tools.

Within hours, a copy of the code was uploaded to GitHub, where it was ‘forked’ more than 41,500 times, according to The Register, effectively ensuring that the exposure could not easily be undone.

“Earlier today, a Claude Code release included some internal source code,” an Anthropic spokesperson told SiliconRepublic.com. “No sensitive customer data or credentials were involved or exposed. This was a release packaging issue caused by human error, not a security breach. We’re rolling out measures to prevent this from happening again.”

The incident comes just days after Fortune reported that Anthropic had accidentally made thousands of files publicly available, including a draft blogpost describing an upcoming model known internally as both “Mythos” and “Capybara” – one that the document said presents cybersecurity risks.

The Register cited software engineer Gabriel Anhaia, who published a detailed analysis of the exposed code, saying the incident should serve as a cautionary tale for development teams everywhere.

“Apparently, a source map file was included in the npm package. Source maps are meant for debugging – they map minified/bundled code back to the original source,” Anhaia wrote in his analysis of the Claude Code leak. “Including one in a production npm publish effectively ships your entire codebase in readable form.

“This is a reminder for every engineering team: check your build pipeline. Make sure .map files are excluded from your publish configuration. A single misconfigured .npmignore or files field in package.json can expose everything,”

As experts and commentators pored through the now available source code, there seemed to be consensus that they were impressed with what they saw.

“Notice no one said the code is slop,” said prominent US tech blogger Robert Scoble in a social media post. “In every painful moment there are always gifts. The gift is that we all know now that Anthropic’s code is pretty damn good.”

However it also clear that the leak is a gift to its powerful competitors who are vying to compete with one of Anthropic’s most successful products, and have been given an inside view of what’s behind it.

Don’t miss out on the knowledge you need to succeed. Sign up for the Daily Brief, Silicon Republic’s digest of need-to-know sci-tech news.