Claude Code's 'Don't Ask Again' File Leaks Secrets in 1,122 Public GitHub Copies

Hesamation · x · 2026-11-07

Security researchers warn that Claude Code's "Yes, and don't ask again" option saves approved shell commands verbatim into .claude/settings.local.json, including any passwords or API keys typed into them in plain text.

Security firm Apiiro found 1,122 public copies of the file on GitHub containing at least one secret each; one notified company confirmed its key was still live. Deleting the file doesn't undo the leak since old versions persist in git history and forks — researchers advise rotating every credential the file ever held before cleaning up.

Related event: Claude Code's 'Don't Ask Again' Option Leaks Secrets to GitHub(2 posts)→

Original post →

More from coding & agent

coding & agent channel →