Short answer: when you click "Yes, and don't ask again" on a Claude Code command, the approval is saved as a rule in .claude/settings.local.json . If the command contained a password, the rule can contain it too. The file is meant to stay on your machine, but in early November 2026 Apiiro reported more than 100,000 public copies on GitHub, some holding passwords and tokens. To check your own exposure, search every repository and clone for the file. Treat each credential found as leaked and rotate it first; then untrack the file, add a repository-level ignore rule, and scrub history if needed.
This guide is for engineers and security owners whose teams use Claude Code. It covers the audit and the fix for this one file and links to our other guides for general cleanup.
What was reported, and what is confirmed?
Short answer: the numbers come from Apiiro, a security vendor, and we could read them only in press coverage because Apiiro's own post returned an access error when we tried it.…