Skip to content

Claude Code is accidentally exposing secrets all over GitHub

8.2 relevance
Score Breakdown
technical depth
7
novelty
8
actionability
9
community
9
strategic
8
personal
10

Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.

Claude Code leaking secrets is a major AI tool security issue, directly actionable for developers.

AI/ML arstechnica.com
Claude Code is accidentally exposing secrets all over GitHub
Summary

Apiiro researchers discovered over 100,000 Claude Code settings files on public GitHub, with ~1,100 from 63 organizations containing secrets like database passwords and API tokens. The leak occurs when users approve shell commands with 'Yes, and don’t ask again,' storing the full command—including embedded secrets—in .claude/settings.local.json. While Anthropic adds this file to the global .gitignore, it isn’t repo-level protected, so cloning or reinitializing a repo can expose it; Claude Code may also commit changes without user input.

Author

Kyle Orland — Kyle Orland has been the Senior Gaming Editor at Ars Technica since 2012, covering topics ranging from retro games to new gaming hardware, business and legal developments in the industry, fan communities, gaming mods and hacks, virtual reality...

More from Kyle Orland →