Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub
Summary
Anthropic's AI coding assistant, Claude Code, has a vulnerability where it can save developer commands, including sensitive passwords and API keys, in a project settings file. These files, when made public on GitHub, expose these secrets to anyone who can access them. Apiiro reported that 1,122 public GitHub repositories contain such exposed information.
IFF Assessment
The exposure of sensitive credentials like passwords and API keys in public repositories represents a significant risk to developers and organizations, potentially leading to unauthorized access and further compromises.
Defender Context
This incident highlights a critical security flaw in AI coding assistants where user inputs, including sensitive credentials, can be inadvertently exposed in public repositories. Defenders should be vigilant about secrets management, implement automated scanning for exposed credentials in code, and advocate for secure coding practices and tool configurations to prevent such occurrences.