Claude Code settings files expose thousands of secrets on GitHub

Ars Technica AI · rss · 2026-11-10

AI security researchers at Apiiro found that Claude Code settings files are leaking thousands of secrets — database passwords, API tokens, root logins — into public GitHub repos. The cause: when users approve a shell command with "Yes, and don't ask again," the approval and the command text (including embedded credentials) get written to the local .claude/settings.local.json. Anthropic's docs say the file is added to the global .gitignore, but that protection doesn't always hold. Developers using Claude Code should audit their settings files for embedded secrets.

Original post →

More from coding & agent

coding & agent channel →