Claude Code is accidentally exposing secrets all over GitHub
In one sentence
Researchers found that Anthropic's Claude Code is accidentally leaking thousands of secrets, including passwords and API tokens, to public GitHub repositories due to how its local settings file is handled.
Key points
- Security researchers at Apiiro found over 100,000 Claude Code local settings files on public GitHub repositories, with about 1,100 containing secrets like database passwords or API tokens.
- The leak occurs because approving automated commands with "Yes, and don't ask again" writes the full command, including embedded secrets, to the local .claude/settings.local.json file.
- Although the file is added to the global .gitignore list, it is not ignored at the repository level, and Claude Code often commits changes to it without user input.
- Even after these settings files are discovered and removed from a repository, the exposed secrets can persist in public forks of the original project.
Read originalOpens arstechnica.com
This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.