Claude Code settings files found leaking secrets on GitHub
Security researchers at Apiiro found thousands of secrets, including database passwords, API tokens, and root logins, in Claude Code settings files embedded in public GitHub repositories. The exposure stems from Claude Code storing approved shell commands in the local .claude/settings.local.json file, sometimes including sensitive information written directly into the command. Anthropic's documentation says this settings file is added to the global .gitignore list, which usually prevents public sharing.