Claude Code Has Been Leaking Secrets through its "Don't Ask Again" Feature
Claude Code's "Don't Ask Again" feature leaks secrets by storing approved shell commands—including embedded credentials—in `.claude/settings.local.json` files that often end up in public repos. Apiiro found 1,122 secrets in these files and 1,160 more in git history across 63 organizations, while GitGuardian later discovered 31,088 secrets on public GitHub (5,343 still valid) plus 613 in Docker Hub images. Standard scanners like gitleaks and TruffleHog miss these because secrets are embedded inside command strings, and the file is added only to the developer's global gitignore—not the repo's—so it doesn't travel with the project.