Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub
Overview
A recent report from software security company Apiiro has revealed that sensitive information, including passwords and API keys, is publicly accessible in 1,122 GitHub repositories. This issue arises from a feature in Claude Code, Anthropic's AI coding assistant, where users can opt to save commands by selecting 'Yes, and don't ask again.' Unfortunately, this also saves any included secrets, making them visible to anyone browsing these public repositories. This exposes developers and organizations to potential security risks, as attackers can easily access these credentials to compromise systems. The incident highlights the need for developers to be cautious when using AI tools and to implement better practices for managing sensitive information.
Key Takeaways
- Active Exploitation: This vulnerability is being actively exploited by attackers. Immediate action is recommended.
- Affected Systems: Claude Code, GitHub repositories
- Action Required: Developers should avoid using AI tools that save sensitive information in public settings.
- Timeline: Newly disclosed
Original Article Summary
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
Impact
Claude Code, GitHub repositories
Exploitation Status
This vulnerability is confirmed to be actively exploited by attackers in real-world attacks. Organizations should prioritize patching or implementing workarounds immediately.
Timeline
Newly disclosed
Remediation
Developers should avoid using AI tools that save sensitive information in public settings. It's advisable to review and rotate any exposed passwords or API keys immediately.
Additional Information
This threat intelligence is aggregated from trusted cybersecurity sources. For the most up-to-date information, technical details, and official vendor guidance, please refer to the original article linked below.