Originally reported by SSPAI on November 11, 2026.
AI security company Apiiro reported on November 9 that Claude Code settings files in public GitHub repositories had exposed sensitive information, including database passwords, API tokens and root login details. Apiiro found more than 100,000 uploaded settings files; approximately 1,100 files from 63 organizations contained secrets. It said 215 of those secrets were not detected by the commonly used scanners gitleaks and TruffleHog.
The reported failure path starts when a user approves a shell command with “Yes, and don’t ask again.” Claude Code saves the permission rule in the local .claude/settings.local.json file. Sometimes the rule is stored as a pattern, but in other cases the command itself—including any embedded credentials—is written into the file.
Anthropic’s documentation says the file is added to a developer’s global .gitignore. That exclusion does not travel with a repository: a clone on another machine, or a directory later turned into a repository, may not have the same protection. Apiiro also said Claude Code can, in many cases, commit changes to the file without user intervention. Deleting an exposed file may not remove secrets retained in repository forks.
Claude Code’s Boris Cherny said on Hacker News that the team was investigating how to prevent the issue. He said these settings files generally should not be committed and that the reported cases appeared to involve files being manually created and committed. He recommended auto mode and secret-scanning tools; the team was also considering built-in secret scanning.
For developers, the immediate check is whether .claude/settings.local.json is tracked or present in a public repository, including its history and forks. A local global ignore rule alone is not a repository-wide safeguard. Apiiro’s findings also show that a clean result from the two scanners it tested does not establish that the file contains no secrets.