Claude Code's "don't ask again" button has a key-leakage problem
Claude Code’s ‘don’t ask again’ button has a secrets-spilling problem
GitGuardian found that Claude Code's local permission configuration file .claude/settings.local.json leaked 31,088 distinct secrets across 23,276 public GitHub repositories, of which 5,343 were still valid at the time of detection. The problem lies in the command approval mechanism: after a developer selects "Yes, and don't ask again," the tool stores the full command, including credentials such as API keys, as an allow rule; although the file is automatically added to local Git ignore settings, it can still be committed when cloned across or when already tracked. 613 secrets, 99 of them valid, were also found in public Docker Hub images, because Docker's COPY instruction does not respect .gitignore. Monthly leaks peaked at 12,535 in April 2026 and fell to 959 in October.
Reveals that "don't ask again" authorization stores full commands containing keys in the configuration file, which teams using AI coding assistants can use to check their own repositories and images.