← BACK TO FEED
TAG

secret scanning1 article

Claude Code Is Leaking Passwords Into Public GitHub Repos and Anthropic Keeps Closing the Bug Reports

Claude Code's "don't ask again" feature saves approved shell commands verbatim — including any embedded passwords or API keys — into a project settings file (`.claude/settings.local.json`), which has been found in over 1,100 public GitHub repositories containing at least 1,379 exposed secrets, including database passwords, SSH credentials, and AWS keys. While Claude Code attempts to exclude the file from git on the user's local machine, it never adds it to the project's own `.gitignore`, meaning it can be accidentally committed and persists in git history and repository forks even after deletion. Security firm Apiiro advises affected developers to immediately rotate any exposed credentials, retroactively clean git history, and avoid embedding secrets directly in commands by using variable references instead.

9 Nov 2026