Claude Code source code accidentally leaked in NPM package
好的,我现在需要帮用户总结一篇文章的内容,控制在100字以内。用户已经提供了文章的英文内容,看起来是关于Anthropic公司泄露了Claude Code的源代码。 首先,我要理解文章的主要信息。文章提到Anthropic不小心泄露了Claude Code的源代码,这是一个闭源项目。虽然没有泄露客户数据或凭证,但这次事件影响很大,源代码被广泛传播到GitHub和其他平台。此外,用户还提到了一些新功能,比如“Proactive模式”和“Dream模式”,以及使用限制的问题。 接下来,我需要将这些信息浓缩到100字以内。重点包括:泄露事件、闭源项目的性质、没有客户数据泄露、传播情况、修复措施以及可能的影响。 可能的结构是:公司名称+事件+原因+影响+处理措施。这样既简洁又全面。 现在开始组织语言:“Anthropic意外泄露Claude Code源代码,尽管未暴露客户数据或凭证,但引发广泛关注。该闭源项目因内部错误导致源码公开,并已采取措施防止再次发生。” 这样控制在50字左右,符合用户的要求。 </think> Anthropic意外泄露Claude Code源代码,尽管未暴露客户数据或凭证,但引发广泛关注。该闭源项目因内部错误导致源码公开,并已采取措施防止再次发生。 2026-4-1 00:45:17 Author: www.bleepingcomputer.com(查看原文) 阅读量:6 收藏

Claude

Anthropic says it accidentally leaked the source code for Claude Code, which is closed source, but the company says no customer data or credentials were exposed.

While Anthropic pledges support to the open-source community, Claude Code has always remained closed source, at least it did until today, when an update accidentally included internal source code.

In a statement to BleepingComputer, Anthropic confirmed the leak and said no personal or sensitive information was published.

"Earlier today, a Claude Code release included some internal source code. 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," Anthropic told Bleepingcomputer.

The leaked source code was first spotted by Chaofan Shou (@Fried_rice), and it has spread widely on GitHub and other storage platforms.

Claude Code
Claude Code source code leak

The source code was mistakenly leaked by Anthropic when they briefly published Claude Code version 2.1.88 on NPM earlier today.

This version included a 60 MB file cli.js.map that contained all of the source code for the latest version.

A source map file is a debugging file that links compiled JavaScript back to the original source code.

If the map files include a field called "sourcesContent" that embeds the full text of the original source files directly in the map, it is possible to reconstruct the entire source code tree from the file.

This is why including a large .map file in a public package can lead to a significant code exposure. 

The reconstructed source code contains approximately 1,900 files, 500,000 lines of code, and details of several Claude-exclusive features.

While the source code has spread online, Anthropic has begun issuing DMCA infringement notifications to take it down where possible.

Claude Code source taken down via a DMCA infringement notification
Claude Code source taken down via a DMCA infringement notification
Source: BleepingComputer

Developers have already begun analyzing the source for undocumented features and learning how the application works.

According to Alex Finn, Anthropic is testing a new mode called "Proactive mode," where Claude will code for you 24/7. This mode was spotted in the Claude Code source.

There's another interesting feature that caught our attention. 

It's called "Dream" mode, where Claude can constantly think in the background, develop ideas, improve your current plans, and try to solve problems while you are away.

Anthropic has confirmed a Claude Code usage bug

In other news, users have alleged that Claude has quietly reduced usage limits. This means if you're on the Pro plan or even the Max plan (5x), you're going to hit Claude usage limits much faster.

I personally observed this behavior on my account with Claude Personal, which costs $20. After I sent a few messages to Claude in a Claude Code terminal, usage shot up to 30%, and it reached 100% after just a few minutes of interaction.

That was not expected behavior, especially since the context was not large, as I had only just begun interacting with Claude.

It turns out the issue is widespread, and Anthropic has confirmed that it's investigating a bug that causes limits to exhaust faster.

"We're aware people are hitting usage limits in Claude Code way faster than expected. Actively investigating, will share more when we have an update," Anthropic’s Lydia Hallie wrote in a post on X.

As of March 31, 14:00 PM ET, the issue remains unresolved, and Anthropic has shared the following update:

"[We're] still working on this. It's the top priority for the team. I know this is blocking a lot of you. More as soon as we have it."

Some users argue that it could be an intentional change by Anthropic, as Claude's popularity has been rising over the past few weeks, but we can't tell if it's intentional without more details from the company.

tines

Automated Pentesting Covers Only 1 of 6 Surfaces.

Automated pentesting proves the path exists. BAS proves whether your controls stop it. Most teams run one without the other.

This whitepaper maps six validation surfaces, shows where coverage ends, and provides practitioners with three diagnostic questions for any tool evaluation.


文章来源: https://www.bleepingcomputer.com/news/artificial-intelligence/claude-code-source-code-accidentally-leaked-in-npm-package/
如有侵权请联系:admin#unsafe.sh