Back to News
Cybersecurity

Claude Code's Security Flaw: Exposed Secrets in Public GitHub Repositories

Anthropic's AI coding assistant inadvertently exposes sensitive information in public repositories, raising cybersecurity concerns.

A recent report by Apiiro has revealed a significant security vulnerability in Claude Code, Anthropic's AI coding assistant. The tool allows users to select a command while opting for the 'Yes, and don't ask again' feature, which results in sensitive information such as passwords and API keys being saved verbatim in project settings files. Alarmingly, this flaw has led to 1,122 public copies of repositories on GitHub containing these unprotected secrets, making them accessible to anyone with internet access.

For businesses utilizing Claude Code, the implications are severe. Organizations must reevaluate their security protocols and implement measures to ensure that proprietary and sensitive information is not inadvertently shared or exposed. This incident serves as a reminder of the importance of secure coding practices and the need for robust oversight when integrating AI tools into the development process. As the landscape of cybersecurity continues to evolve, this incident underscores the critical necessity for organizations to remain vigilant against potential vulnerabilities introduced by AI-driven solutions.

---

*Originally reported by [The Hacker News](https://thehackernews.com/2026/11/claude-codes-dont-ask-again-file.html)*