{"id":229780,"date":"2026-03-31T13:02:00","date_gmt":"2026-03-31T17:02:00","guid":{"rendered":"https:\/\/news-you-need.com\/index.php\/2026\/03\/31\/anthropic-accidentally-exposes-claude-code-source-code-the-register\/"},"modified":"2026-03-31T18:33:44","modified_gmt":"2026-03-31T22:33:44","slug":"anthropic-accidentally-exposes-claude-code-source-code-the-register","status":"publish","type":"post","link":"https:\/\/news-you-need.com\/index.php\/2026\/03\/31\/anthropic-accidentally-exposes-claude-code-source-code-the-register\/","title":{"rendered":"Anthropic accidentally exposes Claude Code source code \u2022 The Register"},"content":{"rendered":"<p><a href=\"https:\/\/www.theregister.com\/2026\/03\/31\/anthropic_claude_code_source_code\/\">Anthropic accidentally exposes Claude Code source code \u2022 The Register<\/a><\/p>\n<p><a href=\"https:\/\/www.theregister.com\/2026\/03\/31\/anthropic_claude_code_source_code\/\">https:\/\/www.theregister.com\/2026\/03\/31\/anthropic_claude_code_source_code\/<\/a><\/p>\n<p>Publish Date: <a href=\"publish_date]\">2026-03-31 13:02:00<\/a><\/p>\n<p>Source Domain: <a href=\"www.theregister.com\">www.theregister.com<\/a><\/p>\n<p>Would you like a closer look at Claude? Someone at Anthropic has some explaining to do, as the official npm package for Claude Code shipped with a map file exposing what appears to be the popular AI coding tool&#8217;s entire source code.<\/p>\n<p>It did as of Tuesday morning, at least, which is when security researcher Chaofan Shou appears to have spotted the exposure and told the world. Snapshots of Claude Code&#8217;s source code were quickly backed up in a GitHub repository that has been forked more than 41,500 times so far, disseminating it to the masses and ensuring that Anthropic&#8217;s mistake remains the AI and cybersecurity community\u2019s gain.<\/p>\n<p>According to the GitHub upload of the exposed Claude Code source, the leak actually resulted from a reference to an unobfuscated TypeScript source in the map file included in Claude Code&#8217;s npm package (map files are used to connect bundled code back to the original source). That reference, in turn, pointed to a zip archive hosted on Anthropic&#8217;s Cloudflare R2 storage bucket that Shou and others were able to download and decompress to their hearts&#8217; content.<\/p>\n<p>Contained in the zip archive is a wealth of info: some 1,900 TypeScript files consisting of more than 512,000 lines of code, full libraries of slash commands and built-in tools &#8211; the works, in short.\u00a0<\/p>\n<p>That said, Claude Code&#8217;s source isn&#8217;t a complete mystery, and while this exposure gives us a look at a fresh iteration of Claude Code straight from the leaky bucket, it&#8217;s not blowing the lid off of something that was a secret until now.\u00a0<\/p>\n<p>Claude Code has been reverse engineered, and various projects have resulted in an entire website dedicated to exposing the hidden portions of Claude Code that haven&#8217;t been released to, or shared with, the public.<\/p>\n<p>In other words, what we have is a useful comparison point and update source for the CCLeaks&#8230;<\/p>\n<p><a href=\"https:\/\/www.theregister.com\/2026\/03\/31\/anthropic_claude_code_source_code\/\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Anthropic accidentally exposes Claude Code source code \u2022 The Register https:\/\/www.theregister.com\/2026\/03\/31\/anthropic_claude_code_source_code\/ Publish Date: 2026-03-31 13:02:00&#8230;<\/p>\n","protected":false},"author":1,"featured_media":229781,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/regmedia.co.uk\/2026\/03\/31\/shutterstock_2192683369.jpg","fifu_image_alt":"","footnotes":""},"categories":[15],"tags":[26,24],"class_list":["post-229780","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurity","tag-ai","tag-cybersecurity"],"_links":{"self":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/229780"}],"collection":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/comments?post=229780"}],"version-history":[{"count":1,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/229780\/revisions"}],"predecessor-version":[{"id":229782,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/229780\/revisions\/229782"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/media\/229781"}],"wp:attachment":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/media?parent=229780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/categories?post=229780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/tags?post=229780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}