
Anthropic's Claude Code leaks 1,379 secrets in 1,122 public GitHub files
Security firm Apiiro found that 1,122 public GitHub repositories contain .claude/settings.local.json files with exposed passwords and API keys. This occurs because Claude Code saves approved commands verbatim, including secrets, when users select 'Yes, and don't ask again.' The file is often committed to git history, where it persists even after deletion. Researchers advise rotating all affected credentials immediately and updating gitignore templates to prevent future leaks.




