31,088 secrets in Claude Code's .claude/settings.local.json on public GitHub
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
GitGuardian reports that from January 2025 to November 7, 2026 it found 31,088 distinct secrets in Claude Code's .claude/settings.local.json on public GitHub, across 23,276 repositories, and 5,343 passed an automatic validity check at detection. The file fills up when users approve a command with "Yes, and don't ask again," which stores the command, key included. Secrets also reached 613 Docker Hub image secrets, 99 valid. These figures are GitGuardian's own and unverified independently. Anthropic's Boris Cherny said the team is investigating.