AI Assistants Leak Secrets via Saved Settings

Updated: 2026.11.08 22H ago 1 sources
When coding assistants save user‑approved commands to per‑project settings files, those files can be (and have been) committed into git repositories and forked, exposing passwords, API tokens, and keys in public history even after deletion. The leak persists in git history and forks, so the safe remediation sequence is rotate secrets first, then purge history and forks. — Shows an emergent class of supply‑chain and cloud‑credential risks driven by AI developer tools that requires both vendor fixes (agent behavior, default ignores, secret scrubbing) and operational policy changes (mandatory secret scanning, automated rotation and git‑history remediation).

Sources

Claude Code's 'Don't Ask Again' File Exposes Passwords and Keys in 1,122 Public Copies on GitHub
EditorDavid 2026.11.08 100% relevant
.claude/settings.local.json saved by Claude Code and Apiiro’s scan finding 104,185 copies (1,122 with secrets) including database admin keys and medical‑records owner passwords; Anthropic comment acknowledging lack of historical scrubbing and plans to prototype auto‑mode secret scanning.
← Back to all ideas