Latest / Media, elections and online safety

GitGuardian finds 31,088 secrets in Claude Code settings files on public GitHub

See how this story connects

GitGuardian counted 31,088 distinct secrets in .claude/settings.local.json files on public GitHub from January 2025 to 7 November 2026, across 23,276 repositories, and 5,343 of them were valid at detection. The file gets them when a user answers “Yes, and don’t ask again” to a command prompt, which saves the command, API key included, as an allow rule. Public Docker Hub images also carried 613 distinct secrets from Claude Code’s settings.local.json and settings.json files, 99 of them valid, because COPY . . ships the working tree.

Why it matters

Anyone whose Claude Code settings file held a credential should rotate it, since git history, forks and Docker Hub images keep copies that rewriting history does not reach.

When
9 Nov 2026
ID
WTA-N-2026-0840
Who
GitGuardian, Anthropic; Boris Cherny
System
Claude Code’s .claude/settings.local.json allow rules
Operator
Anthropic (Claude Code); developers who pushed the files
Type
31,088 distinct secrets in settings files on public GitHub across 23,276 repositories, 5,343 valid at detection; 613 in public Docker Hub images, 99 valid
Status
Anthropic’s Claude Code lead said the team is looking into it; disclosed by GitGuardian, 9 Nov 2026 · Incident ledger

Summary written with AI by wheresthe.ai, from GitGuardian and the reporting credited above. Checked against the source on 11 Nov 2026.

Source copy: saved on 11 Nov 2026 to check this story and not republished, because the text belongs to its publisher. Also held by the Internet Archive.

Cite this story

WTA-N-2026-0840: “GitGuardian finds 31,088 secrets in Claude Code settings files on public GitHub.” wheresthe.ai, 9 Nov 2026. https://wheresthe.ai/d/intl-gitguardian-finds-31-088-secrets-in-claude-code-setting-2026-11/ (source: GitGuardian).

Spotted an error? Email [email protected].