credential leak2 articles
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.
CISA Left Its Passwords in a Public GitHub Repo Called 'Private-CISA'
CISA, the US cybersecurity agency, had a trove of sensitive credentials — including plaintext passwords, SSH private keys, and tokens — exposed in a public GitHub repository called "Private-CISA" since at least November 2025, with GitHub's default secret-protection features deliberately disabled. Security testing confirmed the leaked credentials provided high-privilege access to multiple AWS GovCloud accounts, and the repo appears to have been managed by CISA contractor Nightwing. The incident marks yet another security embarrassment for CISA, following a separate January 2026 incident in which the acting director uploaded sensitive government documents to ChatGPT.