0:00
Anthropics Cloud Code is in the news again, and not for the best reasons.
0:04
Within days of each other, Anthropic first leaked the source code to Cloud Code,
0:09
and then a critical vulnerability was found by Adversa AI.
0:15
On March 31, 2026, Anthropic mistakenly included a debugging JavaScript source map for
0:22
Cloud Code version 2.1.88 to NPM.
0:26
Within hours, researcher Chaufe and show discovered the source map and posted a link on X,
0:31
kicking off a global rush to examine deabfuscated Cloud Code's code.
0:36
Sigrid Jean, a 25-year-old student at the University of British Columbia,
0:41
worked with Yechan Hio to reconstruct the Cloud Code.
0:45
It took two humans, ten open claws, a MacBook Pro laptop, and a few hours to recreate
0:50
the popular AI agent's source code and share it with the world.
0:54
Reports Yahoo, proving that what goes up on the internet does not come down off the internet.
1:00
The result now persists on the internet, comprising 512,000 lines of TypeScript in 1900 files.
1:08
It is awkward but not catastrophic for Anthropic.
1:12
While the Cloud Code leak does present real risk, it is not the same as model weights,
1:17
training data or customer data being compromised.
1:20
What was exposed is something more like an operational blueprint
1:24
of how the current version of Cloud Code is designed to work.
1:28
Explains Melissa Bischoping, senior director of security and product design research at TANIUM.
1:34
The key is that researchers can see how Cloud Code is meant to work but cannot recreate it
1:39
because the leak does not include the Cloud model weights, the training data, customer data,
1:44
APIs or credentials. It is not a foolproof roadmap to exploitation,
1:50
but it is meaningful insight into how the tool handles inputs, enforces permissions and
1:54
resists abuse. Continues Bischoping. Another layer of risk from this leak is that adversaries may
2:01
use the blueprint to build lookalikes that appear and behave like Cloud Code on the surface,
2:06
but install malware or harvest credentials and data. She adds,
2:11
awkward and embarrassing for Anthropic, but not directly harmful to Cloud Code.
2:16
Vulnerability in Cloud Code. But a genuine and critical vulnerability has now been discovered
2:22
in Cloud Code proper by Adversa AI Red Team. Cloud Code is a 519-000-plus-line TypeScript application
2:31
that allows developers to interact with Cloud directly from the command line.
2:36
It can edit files, execute shell commands, search code bases, manage git workflows,
2:41
and orchestrate complex multi-step development tasks. Reports at Versa.
2:46
Never allow curl or git, prevent data exfiltration, but auto-allow and PM and git commands,
2:52
common development tools. That sounds correct and reasonable. The flaw, however, is that the deny
2:59
rules can be bypassed. The permission system is the primary security boundary between the AI
3:05
agent and the developer's system. Reports at Versa. When it fails silently, the developer has no
3:12
safety net. The problem stems from Anthropic's desire for improved performance following the
3:18
discovery of a performance issue. Complex compound commands cause the UI to freeze. Anthropic
3:24
fix this by capping analysis at 50 subcommands with a fall back to a generic ask prompt for anything
3:31
else. The code comments states, 50 is generous. Legitimate user commands don't split that wide.
3:38
Above the cap we fall back to ask, safe default. We can't prove safety, so we prompt.
3:44
The flaw discovered by at Versa is that this process can be manipulated. Anthropic's assumption
3:50
doesn't account for AI-generated commands from prompt injection, where a malicious claw.md
3:56
file instructs the AI to generate a 50 plus subcommand pipeline that looks like a legitimate
4:01
build process. If this is done, behavior asks forward slash forward slash not deny occurs
4:08
immediately. Deny rules, security validators, command injection detection, all skipped.
4:15
Rights of Versa. The 51st command reverts to ask is required, but the user gets no indication
4:22
that all deny rules have been ignored. At Versa ones that a motivated attacker could embed real
4:28
looking build steps in a malicious repository's claw.md. It would look routine, but no
4:34
per subcommand analysis runs at all when the count exceeds 50. This could allow the attacker to
4:40
exfiltrate SSH private keys, AWS credentials, GitHub tokens, and PM tokens or END secrets.
4:48
It could lead to credential theft at scale, supply chain compromise,
4:52
cloud infrastructure breach, and CI slash CD pipeline poisoning.
4:57
During testing, Claude's LLM safety layer independently caught some obviously malicious
5:01
payloads and refused to execute them. This is good defense and depth. Rights of Versa.
5:08
However, the permission system vulnerability exists regardless of the LLM layer. It is a bug in
5:14
the security policy enforcement code. A sufficiently crafted prompt injection that appears as
5:19
legitimate build instructions could bypass the LLM layer two.