GitGuardian: 31,088 secrets in Claude Code settings files on public GitHub, 5,343 still working when found
GitGuardian reports 31,088 distinct secrets in Claude Code’s .claude/settings.local.json on public GitHub, across 23,276 repositories, of which 5,343 worked when it detected them. It says answering "Yes, and don’t ask again" saves an allow rule that is the command itself, API key included. The AI Incident Database lists this as Incident 1846.
“GitGuardian found 31,088 distinct secrets in Claude Code’s .claude/settings.local.json on public GitHub, across 23,276 repositories, and 5,343 of them worked when we detected them.”
Why it matters. A convenience click turned into a stored credential, and the file that holds it travels with the code. The agent did what it was allowed; the key went where the file went.
Where it stops. Vendor research: GitGuardian sells the scanning it recommends. "Worked when we detected them" is not evidence that anyone used them. Public GitHub and Docker Hub only. Catalogued by the AI Incident Database as Incident 1846 (incidentdatabase.ai/cite/1846/).