Claude Code AI Feature Exposes Thousands of Secrets on Public GitHub Repositories

Thumbnail Image

The information displayed in the AIM should not be reported as representing the official views of the OECD or of its member countries.

Anthropic's Claude Code AI assistant's "Yes, and don't ask again" feature saved credential-bearing shell commands in plaintext configuration files. These files were later committed to public GitHub repositories, exposing over 2,500 secrets—including passwords and API keys—from at least 63 organizations, causing significant security risks and data breaches.[AI generated]

Why's our monitor labelling this an incident or hazard?

Claude Code is an AI coding assistant, thus an AI system. The 'Don't Ask Again' feature causes credential-bearing commands to be saved in configuration files that are then exposed publicly on GitHub, leading to the direct exposure of secrets. This exposure is a direct harm related to the AI system's use and configuration, causing security breaches and violations of confidentiality. Therefore, this event qualifies as an AI Incident due to realized harm caused by the AI system's malfunction or misuse leading to exposure of sensitive data.[AI generated]
AI principles
Privacy & data governanceRobustness & digital security

Industries
Digital securityIT infrastructure and hosting

Affected stakeholders
Business

Harm types
Economic/PropertyReputational

Business function:
Research and development

AI system task:
Content generation


Articles about this incident or hazard