Claude Code settings files expose sensitive data on GitHub
Publication date is supplied by the source. Prepared by Cybermonit · Content updated:
AI summary
Database passwords, API tokens and root logins can end up on public GitHub through a local settings file in Claude Code. When users enable automatic approval of future commands, the tool saves approved shell commands in that file, often with such credentials, and the file is not automatically excluded from the repository despite Anthropic documentation suggesting version control should ignore it. Researchers at Apiiro, whose findings Ars Technica reports, found over 100,000 such files on public GitHub, 1,100 of them containing active credentials across 63 organizations; reports date back to August 2025, and many were closed without resolution. Anthropic is investigating possible fixes, but the source does not say any has been released, and experts advise developers to audit repositories manually because some scanners missed 215 leaked secrets.
