Claude Code is accidentally exposing secrets all over GitHub
AI security researchers at Apiiro found Claude Code's local settings file, .claude/settings.local.json, uploaded to public GitHub repositories in more than 100,000 cases — and about 1,100 of them, from 63 organizations, contained live secrets including database passwords, API tokens, private keys and root logins. The leak comes from how Claude Code stores a user's 'don't ask again' approval for shell commands as a rule in that file, which then gets committed; 215 of the exposed secrets were missed by the popular scanners gitleaks and TruffleHog. It matters because a popular coding agent is quietly turning routine approvals into a large-scale credential leak — and the issue was first reported in August 2025 and closed after 60 days without action.
- Ars Technica2026-11-09 17:24