AI coding assistants are increasingly committing sensitive data alongside the code they help write. Adversa AI published research on Dec 4 showing 1,122 real credentials sitting in publicly accessible repositories inside .claude/settings.local.json files, a configuration artifact generated by Claude Code and similar AI coding tools.
What the research found
Adversa AI scanned public GitHub repositories and identified 1,122 distinct credentials in .claude/settings.local.json files committed without redaction. The files, intended for local project-level Claude Code configuration, frequently contain API keys, database connection strings, and other secrets when developers do not add them to .gitignore. A parallel scan found an additional 708 credential strings in repositories of exported AI chat logs, where developers had pasted raw API responses or configuration snippets and committed the entire session.
Associated CVEs and tooling
Two CVEs tie into the same credential-exposure pattern. CVE-2026-136998 affects Docker Desktop 0.55.0 and earlier; Docker released a fix that prevents certain credential strings from being written to agent configuration files in world-readable paths. CVE-2026-120779 affects a VS Code extension with a CVSS score of 8.3; it allows the extension to read and transmit agent configuration files from open workspace directories. Additionally, the malicious Ruby gem strutil-core 1.0.1 was found on RubyGems.org; it harvests AI session data and configuration files from developer workstations.
Immediate action items
Check your repositories now. Add .claude/settings.local.json and any equivalent AI tool configuration files to your .gitignore before the next commit. Run a git log search to identify whether the file has ever been committed. If credentials were exposed, rotate them immediately: treat any key that touched a public repository as compromised. For organizations running CI/CD pipelines that invoke AI coding agents, review the pipeline configuration for credential injection patterns that could end up in agent context files.
Gigia Tsiklauri is a Security Architect and founder of Infosec.ge. Get in touch if your team handles AI-generated code and wants a review of your secrets-hygiene posture.