Claude Code permission configuration leak exposes 31,000 keys
Start here
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.
Generated by AI from reports · Updated 6 days ago
Attention and developments
Attention, hourlyA report
Now 40, 0% in 24 hours·Peak 45 (Nov 24 09:00)·1 other outlet followed
Progress timeline
- AI Incident DatabaseSelectedClaude Code's "don't ask again" button has a key-leakage 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.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- WebGitGuardianYour AI Coding Agent Just Leaked a Secret. Bots Found It on Docker Hub in 8 Seconds(opens the original post in a new tab)
- X@TDSheridanLabAI coding agents don't just need safer prompts. They need safer boundaries around credentials. InfoQ reports that Clau…(opens the original post in a new tab)
- X@Yuki_K25If you use Claude Code, please check this much by the end of today. Commands for which you pressed "Yes, and don't ask again" are saved as-is to .claude/settings.local.json. If the command contains a…(opens the original post in a new tab)
2 likes·Nov 24 09:17Collect
- X@rehanshakir23One click in Claude Code can publish your database password. 'Don't ask again' saves the full command, secret included,…(opens the original post in a new tab)
Attention trend
New sources per day
- Nov 22: 1 new sources (0 outlets, 1 accounts)
- Nov 23: 1 new sources (1 outlets, 0 accounts)
- Nov 24: 2 new sources (0 outlets, 2 accounts)
- Nov 25: 0 new sources (0 outlets, 0 accounts)
- Nov 26: 1 new sources (1 outlets, 0 accounts)
- Nov 27: 0 new sources (0 outlets, 0 accounts)
- Nov 28: 0 new sources (0 outlets, 0 accounts)
- Nov 29: 0 new sources (0 outlets, 0 accounts)