tech

The AI security gap nobody wants to admit is already here

On March 31, 2026, Anthropic accidentally shipped the entire source code of Claude Code to the public npm registry. Around 512,000 lines of TypeScript across 1,906 files, including 44 hidden feature flags and references to an unreleased model codenamed Mythos, sat openly accessible on a Cloudflare storage bucket until a security researcher found it and posted the link on X. Within hours the codebase had been mirrored across GitHub, amassing thousands of stars before Anthropic could issue DMCA takedowns. Anthropic called it a packaging error caused by human error. That explanation is accurate and also somewhat beside the point.

The AI security gap nobody wants to admit is already here

TL;DR

  • Anthropic accidentally leaked the source code for Claude Code, including details on its permission enforcement and sandboxing.
  • The leak provides attackers with a blueprint to design malicious repositories that can trick AI into running unauthorized commands.
  • The speed at which AI can operate compresses the timeline between intrusion and damage, outpacing traditional security detection systems.
  • Current security platforms are designed to detect human-like behavior and struggle to distinguish between human and autonomous AI actions.
  • The leak also revealed architectural directions for agentic AI, suggesting future capabilities that security teams are not yet prepared to defend against.