Claude Code settings files expose thousands of secrets on public GitHub repositories
AI SECURITYAnthropicredteam/daily · 1 source
- Severity
- Medium
- Sources
- 1
What happened
Apiiro researchers found thousands of secrets, including database passwords, API tokens and root logins, in Claude Code settings files committed to public GitHub repositories. When a user picks "Yes, and don't ask again" for a shell command, the command is often stored verbatim in .claude/settings.local.json, including any embedded credentials. Anthropic's documentation says this file is added to the global .gitignore, which normally stops it being shared.
For IT people · Written by AI from 1 source · Wrong?
What to do
- Check your repositories and their history for committed .claude/settings.local.json files.
- Make sure .claude/settings.local.json is excluded by your global .gitignore.
- Rotate any database passwords, API tokens or other credentials that may have appeared in these files.
Written by AI from the sources, checked against them
Full story timeline · 1 update
Who reported · 1 outlet
Ars Technica (Security)
Who and what is in it
Products