Claude Code settings files expose thousands of secrets on public GitHub repositories
- Severity
- Medium
- Sources
- 1
What happened
Apiiro researchers identified thousands of exposed secrets, including database passwords, API tokens and root credentials, in .claude/settings.local.json files committed to public GitHub repositories. Claude Code stores 'Yes, and don't ask again' shell command approvals in this file, often as literal commands that can contain embedded credentials rather than generalised patterns. Anthropic states the file is added to the global .gitignore, so exposure implies it was committed despite that. No CVE or affected versions are given. Defenders should search their repositories and history for this file, confirm it is gitignored, and rotate any credentials it may contain.
For security analysts · 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
Who and what is in it
Products