Claude Code's 'Don't Ask Again' File Exposes Passwords and Keys in 1,122 Public GitHub Repositories

Executive Summary

Anthropic’s Claude Code AI coding assistant, when users select “Yes, and don’t ask again,” can save commands—including any passwords or API keys typed—into a project settings file. A security firm found 1,122 public GitHub repositories containing such files, exposing sensitive credentials. The leak demonstrates a flaw in the assistant’s handling of secrets and highlights the need for better secret management in AI‑assisted coding.

Original Description

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 a project settings file. Software security company Apiiro said yesterday that 1,122 public