• Sources: discussion
  • Thread: Claude Code settings.local.json secret leakage
  • Summary: Apiiro found 104,185 public copies of .claude/settings.local.json, and 1,122 of them hold at least one secret, 1,379 distinct secrets in all, including 379 database passwords and 23 AWS keys. Claude Code adds the file only to the user's global git excludes, not the project .gitignore, and in 539 of 1,105 traced repositories a commit co-authored by Claude changed the file. Gitleaks and TruffleHog missed 215 of the files with secrets, mostly passwords typed inline in commands.
  • Why it matters: Teams using Claude Code should search repositories and git history for .claude settings files, rotate any secrets found, and approve command patterns that reference secrets through variables rather than inline values.
  • Comments: The Hacker News reports four related GitHub issues, the earliest filed 2025-08-11, were closed by a stale bot without an Anthropic reply.