Claude Code is accidentally exposing secrets all over GitHub
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.