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. 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
Briefing
Written from the coverage below · deepseek-v4.1-flash
Apiiro reported that 1,122 public GitHub repositories contain Claude Code project settings files where developers' allowlisted commands were saved verbatim, including embedded passwords and API keys. The exposure occurs when users choose "Yes, and don't ask again" during command approval.
Why it mattersAI coding assistants can persist secrets into committed config files, silently turning developer workflow approvals into public credential leaks.
ActionAudit repos for Claude Code settings files containing allowlisted commands with inline secrets, rotate any exposed credentials, and remove secrets from history.
Coverage
1 article