Claude Code Exposed Credentials From 63 Organizations via GitHub
What happened
Researchers at Apiiro published findings showing that Claude Code is accidentally exposing secrets all over GitHub. They found more than 100,000 cases of the tool's local settings file uploaded to public repositories. Roughly 1,100 of those files, from 63 organizations, contained secrets such as database passwords, API tokens, and private keys. Claude Code, Anthropic's AI coding assistant, saves commands a user approves with "Yes, and don't ask again" in a local file called .claude/settings.local.json. The command is often saved as written, so any credentials embedded in it are captured too. The tool relies on a user-level exclusion rule to prevent the file from being shared publicly. That rule does not apply automatically inside a code repository, making accidental exposure easy. The issue was flagged in a Claude Code bug report as early as August 2025, and related reports were closed without action after 60 days of inactivity. A Claude Code team member said on Hacker News that the team is looking into how to prevent it. This incident follows a pattern of AI coding tool credential exposure. Related findings include the AI Coding Agents Leaked Sensitive Screenshots From 343 Organizations to Public GitHub report. The broader governance gap is documented in AI Coding Tools Are Privileged Agents. Most Governance Programs Don't Treat Them That Way.
Why it matters
- ·Enterprises that classify AI coding assistants as low-risk productivity tools rather than privileged systems with access to credentials face a direct gap in their third-party AI vendor controls. Secrets exposed from 63 organizations confirm the risk is real, not theoretical. Affected companies may face breach notification obligations under the GDPR or comparable state laws depending on what data the exposed credentials protected.
- ·Anthropic closed related bug reports without action before public disclosure. This weakens any vendor risk program that relies on the vendor to surface or remediate security issues. Compliance teams that have not independently tested AI coding tool configurations cannot assume their vendor will flag problems first.
- ·Developers routinely embed credentials in commands to streamline their workflows. AI coding tools that store those commands create a persistent record of sensitive material. That record sits outside normal secrets management programs. This exposure pattern will recur across any AI tool that logs approved commands, instructions, or context in local or repository-accessible files.
Stay ahead of stories like this
Get every Global AI governance development like this one, plus the rest of the week's developments. Every Thursday.
Recent issues
- Three separate enforcement and operational crises landed this week, each adding urgent new tasks for compliance teams across patching governance, state-level AI liability, and export control disclosure.26 Nov
- Regulators, courts, and markets are all testing whether AI companies' accountability structures hold up under real pressure, not just in policy documents.19 Nov
Free every Thursday. Unsubscribe anytime.
What to do now
- ☐Search your organization's public and private repositories immediately for `.claude/settings.local.json` files or equivalent Claude Code configuration files, and audit any found for embedded credentials.
- ☐Rotate all credentials found in exposed Claude Code settings files, including copies in forks and check access logs for those credentials to determine whether unauthorized use occurred.
- ☐Update your secrets management policy to explicitly prohibit embedding credentials in commands approved for AI coding tools, and add a repository scanning rule that flags AI tool configuration files before any push to a shared repository.
- ☐Review your vendor risk assessment for Anthropic and other AI coding tool providers to determine whether their incident response and bug disclosure practices meet your vendor notification requirements. Document whether your current contracts require vendors to notify you when security reports about their tools are closed without remediation.
- ☐Extend your AI tool acceptable use policy to classify AI coding assistants as systems with privileged access to developer credentials, not general productivity software, and require a data boundary review before approving any such tool for use on production codebases.
Related guidance: How do we govern agentic coding assistants and AI developer tools? · How do we ensure third-party AI vendors meet our standards? · What AI agent security controls do we need as agent autonomy expands?
Related controls: AI Developer Tool Data Boundary Controls · Sensitive Data Handling in AI Pipelines · AI API Credential Management · AI Vendor Due Diligence · Vendor AI Incident Notification Requirements
What to watch next
Anthropic has said it is looking into the problem. It has not announced a remediation plan or a timeline for fixing how Claude Code handles its settings file. Compliance teams should monitor whether the vendor issues a formal security advisory, changes the tool's default behavior, or publishes guidance for affected organizations. Regulators focused on software supply chain security are paying attention to AI coding tool credential exposure. Future vendor risk assessments will likely need to account for how AI developer tools store and protect operational configuration data. Teams should also watch for enforcement signals from data protection authorities in jurisdictions where the exposed credentials protected personal data, particularly under the GDPR.
