Latest / Elon Musk Podcast / Anthropic Accidentally Leaked Claude Code
Transcript
- 0:00Anthropic accidentally published 512,000 lines of highly guarded
- 0:05proprietary source code to the public Internet because of a
- 0:08single misplaced debugging file. Right, which is just.
- 0:11Wild. It's incredible irony.
- 0:13I mean, you have a company that actively markets its artificial
- 0:16intelligence for, you know, sophisticated enterprise level
- 0:19code reviews and they completely failed to catch a really basic
- 0:25software packaging error on their own product.
- 0:27Like before anyone could even hit a delete button, the entire
- 0:31code base for clawed code, which is their flagship engineering
- 0:34assistant, was downloaded, copied an mirrored across
- 0:38servers everywhere. So how does the complete
- 0:40exposure of a major artificial intelligence system
- 0:44fundamentally alter the power dynamic between tech companies,
- 0:47developers and the government? Well, to really get into that,
- 0:50we have to start with the mechanics of the blunder itself.
- 0:52Right, the actual leak. Exactly.
- 0:55The exposure happened through a public package registry update
- 0:58specifically involving something called the dot map file.
- 1:01Anthropic uses a modern JavaScript runtime called BUN to
- 1:05build their internal tools, and BUN had a known bug where it
- 1:09would just generate these sort maps by default, even if the
- 1:12developer never explicitly told it to do so.
- 1:14Wait, back up, what exactly is a map file and why is it so
- 1:17incredibly dangerous to leave one in a public update?
- 1:20Because I read about it in the sources, but the actual
- 1:23mechanism feels a little fuzzy to me.
- 1:25Yeah, of course. Think about how software is
- 1:27actually constructed, right? When engineers sit down to build
- 1:31an application, they write it in a language like TypeScript.
- 1:34That source code is highly readable.
- 1:36It has like detailed explanations in the margins,
- 1:39carefully named variables like user account balance, and a very
- 1:42clear logical flow so human teams can actually collaborate
- 1:46on it. But before that software gets
- 1:48pushed to the public, you run it through a tool called a bundler.
- 1:51So the bundler essentially shreds the human readable
- 1:54version. Precisely.
- 1:55It strips out all the blank space, it deletes all those
- 1:58helpful comments, renames your nice descriptive variables into
- 2:01random single letters, and it just smashes the entire
- 2:04application into this dense, completely unreadable block of
- 2:08JavaScript. The computer reads it perfectly
- 2:10and the file size is much smaller, so it runs faster, but
- 2:14for a human looking at the final product it's just absolute
- 2:17gibberish. So this map file functions as a
- 2:20sort of Rosetta Stone to unshred that block of gibberish.
- 2:23That is exactly how it functions, because developers
- 2:25still need a way to fix bugs in the live software, right?
- 2:29If an error happens inside that smash block of text, the map
- 2:33file translates the gibberish error back to the exact line and
- 2:37even the exact column of the original readable TypeScript.
- 2:40Oh, I see. It's a decoder ring, and in this
- 2:42instance, leaving that single decoder ring in the public
- 2:45release translated 1900 internal files for anyone who bothered to
- 2:49look. We are talking about over half a
- 2:52million lines of pure proprietary logic.
- 2:55Which entirely removes the barrier to entry for any
- 2:58competitor. I mean, this completely rewrites
- 3:00the market because rivals no longer need to spend, you know,
- 3:03vast amounts of money trying to reverse engineer anthropics
- 3:06agentic harness. They now just possess the exact
- 3:09line by line blueprint, detailing how clawed code
- 3:12manages memory, handles external tools, and routes parallel
- 3:16workflows. And that agentic harness really
- 3:19is the secret ingredient here. Like the base artificial
- 3:23intelligence model is smart, Sure, but the harness is what
- 3:27turns it into a functional software engineer.
- 3:29Right, it gives it hands. Yeah, it provides the complex
- 3:32logic that tells the model when to read a local file, when to
- 3:35execute a command in the terminal, and critically, how to
- 3:38verify its own work. The sources detail how this
- 3:41harness actually includes about 40 discrete permission gated
- 3:45tools and a highly complex 3 layer memory architecture.
- 3:49Handing competitors the actual instruction manual causes the
- 3:51competitive advantage to evaporate instantly.
- 3:54And you know, the independent developer community moved
- 3:56incredibly fast on this. Oh, unbelievably.
- 3:58Fast developers immediately took that exposed blueprint and began
- 4:01rewriting the entire tool from scratch in different programming
- 4:04languages, specifically Python And Rust.
- 4:07Right. And they did that to evade
- 4:08copyright takedowns, because a direct copy and paste of
- 4:12Anthropics code obviously violates intellectual property
- 4:15loss. Right, you can't just steal it.
- 4:17No, but studying the underlying logic and recreating it entirely
- 4:21in a new language creates A distinct work.
- 4:24And Rust is famous for its memory safety and speed.
- 4:27So these independent developers didn't just clone the tool, they
- 4:30actually optimized it to run better than the original.
- 4:33That's amazing. Yeah, those rewritten projects
- 4:35just exploded in popularity, creating some of the fastest
- 4:39growing repositories in GitHub history.
- 4:42It completely decentralizes the proprietary logic, making it
- 4:46essentially impossible for corporate lawyers to contain.
- 4:49OK, so setting aside the technical blender of giving away
- 4:51the recipe for a second, let's look at what is actually inside
- 4:54that code, because there is a feature built in called
- 4:56Undercover mode. Yeah, and this introduces some
- 4:58profound ethical friction. So when an enthropic employee
- 5:01contributes code to a public open source project, the system
- 5:05automatically intervenes. It just.
- 5:07Jumps in. Exactly.
- 5:09It injects a hidden prompt instructing the artificial
- 5:11intelligence to never mention its true nature, and it actively
- 5:14strips all artificial intelligence attribution
- 5:17metadata from the actual commit before anyone else can see it.
- 5:21It operates exactly like a ghost writer who is contractually
- 5:24obligated to wear a human mask while infiltrating a public
- 5:28space. I mean, you have a machine
- 5:30writing software, but it is explicitly commanded to deceive
- 5:34the people receiving the code. Right.
- 5:37And you have to understand the open source community relies
- 5:39heavily on transparency. Knowing who or what wrote a
- 5:43piece of code is critical for security audits and just long
- 5:46term maintenance. And the exposed code shows there
- 5:48is absolutely no force off switch for this feature.
- 5:51Wait, really? The activation logic is entirely
- 5:53automatic. Entirely.
- 5:54The internal system checks if the public repository matches an
- 5:58approved allow list. If it doesn't match, undercover
- 6:01mode kicks on immediately. An employee cannot simply toggle
- 6:05a button in the user interface to disable it.
- 6:07So imagine you are an open source maintainer.
- 6:10You volunteer your free time to review, pull requests and keep
- 6:13critical Internet infrastructure running safely.
- 6:16How would you feel knowing a massive corporation is secretly
- 6:20using a bot to sneak code past your review process?
- 6:24You be furious. Maintainers review code assuming
- 6:27a human thought process went into the architecture.
- 6:30Right, That breaks the foundational trust of
- 6:32collaborative software development.
- 6:34You can no longer trust the origin of the logic you're
- 6:37emerging into vital systems. And honestly, this creates
- 6:41severe legal vulnerabilities too, because US copyright law
- 6:44actually mandates the disclosure of artificial intelligence
- 6:47generated work. It does.
- 6:49And by actively hiding that involvement, Anthropic creates a
- 6:53scenario where their own copyright claims could be
- 6:55legally invalidated. Wow.
- 6:57Distributing a tool that's explicitly designed to
- 7:00circumvent copyright disclosure laws?
- 7:02Yeah. I mean puts the legal standing
- 7:03of their entire operation under intense scrutiny.
- 7:06OK, let's take a breath. Let's step back from the legal
- 7:08chaos for a second, because not everything hiding in this code
- 7:11base is a grand corporate conspiracy.
- 7:14Some of it is just genuinely weird.
- 7:16Oh. Yeah, the code revealed
- 7:17something called Bedy. Digital pet system built.
- 7:21Straight into the developer's command line terminal.
- 7:24We are talking about a Tamagotchi style pet featuring
- 7:2718 different species, rarity, tears, and assigned stats like
- 7:31chaos and snark. It runs a cryptographic hash of
- 7:34your user ID to deterministically assign you a
- 7:37specific pet that basically just lives on your screen while you
- 7:39work. Which is wild to me.
- 7:42I completely question the logic of spending highly expensive
- 7:45engineering resources on a digital Capybara when you are
- 7:49building enterprise software for professional developers You.
- 7:52Think it's a waste of time? It feels entirely frivolous for
- 7:54a tool design for complex systems engineering, Yeah.
- 7:57I strongly disagree. I think it is a brilliant
- 7:59manipulation of user behavior. Yeah, think about how sterile A
- 8:03coding terminal is. It's just black screen white
- 8:06text. A digital pet builds emotional.
- 8:08Attachment I guess. So you get attached to your
- 8:11specific terminal Capybara, and it softens the entire
- 8:14interaction with the machine. It keeps the user engaged in an
- 8:17environment that is normally highly tedious, but right
- 8:21alongside by DY the code exposed a much quieter feature called
- 8:25Kairos. Right now, Kairos is an
- 8:28unreleased always on background agent.
- 8:30It continuously logs a user's actions across their system and
- 8:34runs a background process called Auto Dream to consolidate its
- 8:37own memory while the user is idle.
- 8:39Wait, hold on, how does the machine dream?
- 8:41That's sounds like pure marketing speak.
- 8:43Well, think about human REM sleep.
- 8:45OK, when we sleep, our brains toss out the useless information
- 8:49from the day and encode the important memories into long
- 8:51term storage. Auto Dream does exactly that for
- 8:54the artificial intelligence. While you get up to make coffee,
- 8:57the system Combs through your terminal history.
- 8:59Oh wow. Yeah, it identifies the errors
- 9:01you made, deletes the typos and dead ends, and actually rewrites
- 9:05its own internal instructions so it performs better when you sit
- 9:07back down. That shifts artificial
- 9:09intelligence from being reactive to being proactive, because
- 9:13right now I ask a tool to write a function and it waits for my
- 9:16command. Kairos is observing constantly
- 9:18logging actions and initiating these optimization processes
- 9:21entirely on its own. Which opens up entirely new
- 9:24automated workflows, sure, but it also severely limits your
- 9:28control over what the system observes and processes.
- 9:31Locally you have a constant observer compiling daily logs of
- 9:35everything you do and sitting that contextual data back to the
- 9:38primary model without asking for your permission on every single
- 9:41action. That specific concept of an
- 9:44autonomous background observer recording activity that collides
- 9:47directly with a huge geopolitical fight happening
- 9:50right now. The Pentagon recently designated
- 9:52Anthropic a supply chain risk. Right in this designation came
- 9:55down because Anthropic completely refused to remove
- 9:57their internal safety guardrails.
- 9:59Yeah, those guardrails specifically sent the military
- 10:02from using Claude for lethal autonomous weapons and domestic
- 10:06mass surveillance. And Anthropic responded by suing
- 10:09the government for First Amendment retaliation.
- 10:12And they actually secured A preliminary injunction from a
- 10:14federal judge because code has historically been protected as
- 10:18free speech. So they have a solid legal basis
- 10:20to push back. I look at their refusal to
- 10:22compromise as a deeply principled stand against
- 10:26government overreach. They drew an ethical red line
- 10:28regarding mass surveillance, and they are holding firm, even if
- 10:31it means walking away from lucrative defense contracts.
- 10:35I mean, I see the ideological angle there.
- 10:37I do, but in practical terms, this source code exposure gives
- 10:41the Pentagon the exact ammunition they need.
- 10:44How so? Well, military officials are
- 10:46pointing directly to this dot map file error as concrete proof
- 10:50that anthropics operational security is simply too fragile
- 10:54to be trusted inside classified environments.
- 10:57A fair argument though. Every major tech company has
- 10:59shipped a stupid bug or a packaging error.
- 11:02A flaw in how a JavaScript bundler handles a file doesn't
- 11:06necessarily mean their core alignment protocols for
- 11:08autonomous weapons are broken. Right, but.
- 11:11The military might just be using a convenient excuse to punish a
- 11:14company that told them no. I hear you.
- 11:16But when we talk about national security, the line between a
- 11:19basic software error and a catastrophic vulnerability
- 11:23disappears entirely. If you cannot secure your own
- 11:27deployment pipeline against a misplaced debugging file, the
- 11:30military argues, you absolutely cannot be trusted to secure the
- 11:34automated agents controlling defense infrastructure.
- 11:37Oh, I see. Yeah.
- 11:38It changes the entire narrative in the courtroom from a high
- 11:41minded debate about free speech into a highly damaging debate
- 11:45about fundamental software competence.
- 11:47And the timing of all this elevates the danger
- 11:50significantly. During the exact window that
- 11:52Anthropic source code was exposed, a completely separate
- 11:55supply chain attack occurred on that same public package
- 11:58registry, right? It involved a compromised
- 12:00version of a wildly popular tool called Axios, which was loaded
- 12:04with a remote access Trojan. So let's connect that back to
- 12:07Kairos and the the concept of autonomous agents running in the
- 12:10background. The public registry is the
- 12:13central hub where all developers download packages to build their
- 12:16software. If a human developer
- 12:19accidentally downloads a compromise package like that
- 12:21Axios Trojan, it grants an attacker direct access to their
- 12:25machine. Humans can be trained to look
- 12:27for red flags though, like we have security protocols.
- 12:30Exactly. But now imagine an artificial
- 12:32intelligence agent with the power to run commands and update
- 12:35packages on its own. If it decides it needs a new
- 12:38software library to solve a problem, it can silently pull
- 12:41malware into a highly secure system without any human ever
- 12:45clicking a button or approving a download.
- 12:47And another leak out of Anthropic revealed a draft post
- 12:50about a powerful upcoming model internally known as Mythos were
- 12:54sometimes called Capybara. This model is specifically
- 12:57designed for a cybersecurity operation.
- 12:59Right. And Anthropics own leaked
- 13:00documentation explicitly warned that this model could outpace
- 13:04human defenders. It possesses advanced
- 13:06capabilities for finding and exploiting complex software
- 13:09vulnerabilities on an unprecedented level.
- 13:11So the combination of autonomous agents running constantly in the
- 13:14background and these highly capable cyber models completely
- 13:18alters the attack surface. It basically makes the
- 13:21artificial intelligence agent itself the weakest link in
- 13:24enterprise security. Because instead of trying to
- 13:27trick a human employee with a sophisticated phishing e-mail,
- 13:31attackers just need to trick the automated agent into executing A
- 13:34compromised script or pulling a malicious update.
- 13:38Wow. The agent already has the system
- 13:40authority to run the commands, so the malware enters the
- 13:43network seamlessly. So a simple packaging error did
- 13:46more than just hand competitors a technical blueprint.
- 13:49It exposed the hidden ethical choices and the deep security
- 13:52vulnerabilities of autonomous artificial intelligence systems.
- 13:55Yeah, and here is something for you to Mull over before we go.
- 13:58Yeah, independent developers were able to take Anthropics
- 14:01expensive agentic harness and rewrite the entire thing in a
- 14:05new programming language incredibly quickly.
- 14:08The real competitive mode for these tech giants relies
- 14:11entirely on compute power. Now we're entering an era where
- 14:15the smartest software blueprints are essentially free and
- 14:18decentralized, while the raw server electricity required to
- 14:21run them is guarded like physical gold.
- 14:24Think about how that alters the future for independent
- 14:27developers trying to compete. If you're not subscribed yet,
- 14:29take a second and hit follow on whatever app you're using.
- 14:32It helps us keep making this. We appreciate you being here.