Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub
Passwords and API keys that developers typed into commands they approved in Claude Code are sitting in public GitHub repositories, where anyone can read them, according to The Hacker News. The article states that when a user selects "Yes, and don't ask again," Anthropic's AI coding assistant can save the command word-for-word, including the secret, in a project settings file. Because those settings files can be committed alongside project code, the saved commands and any embedded credentials become readable to anyone browsing the repository. Software security company Apiiro said yesterday that 1,122 public copies were found, according to the report. The source frames the exposure as a direct result of the approval option's behavior: the command text is retained verbatim rather than stripped of sensitive values. The article does not describe which specific credentials were exposed, which repositories or organizations were involved, or any response from Anthropic beyond the description of the feature's behavior.
Developers who approve commands with "don't ask again" may have secrets saved verbatim into project settings files that end up in public repositories.