Reported by 15 outlets
Apiiro: Claude Code settings.local.json files with secrets exposed on public GitHub
Why this score
- Breadth
- 2.00 / 2.0 · 15 sources
- Authority
- 1.80 / 2.0 · best outlet weight
- Severity
- 0.70 / 5.0 · CVSS + content signals
- Velocity
- 0.50 / 2.0 · updates in 48h
- Pickup speed
- 0.32 / 0.6 · time to second source
- Recency
- × 0.46 temporal multiplier
- Community
- + 0.00 / 1.5 · reddit signal
- Score
- 2.4 / 10 = base × recency + community
Desk analysis
Apiiro researchers Shmulik Cohen and Matan Giladi published on November 5 that Claude Code's "Yes, and don't ask again" approval writes the full approved shell command into .claude/settings.local.json, including any password or API key in the command. Their scan found 104,185 public copies of the file across 103,617 repositories; 1,122 copies held at least one secret, with 1,379 distinct values in current copies and 2,539 secrets across 1,994 repositories when history, shared settings and agent transcripts were counted. Reported examples include a database vendor's admin-level cloud key, a production Azure Postgres password, a Square production token and a medical-records database owner password, affecting 63 organizations.
GitGuardian measured 31,088 distinct secrets in settings.local.json files across 23,276 public repositories, 5,343 of them still valid when detected. The same work found 613 secrets, 99 valid, in 559 public Docker Hub image tags because COPY . . carried the working tree into images; one Cloudflare API token appeared in all 559 tags. Monthly settings.local.json leaks peaked at 12,535 occurrences in April 2026 and fell to 959 by October, a 92 percent drop with no confirmed explanation.
Fresh GitGuardian reporting adds how fast automated discovery works: Stony Brook researchers Billy Tsouvalas and Nick Nikiforakis planted keys in 300 honeypot images across eight public registries over four months. The fastest AWS key was used 7.86 seconds after its image went live, every AWS key was used within 15 minutes, and the median first API call came after 51 seconds. Rotate anything those files held, update .dockerignore, scan every image layer, and check both repositories and container builds for the approval file.
Timeline
-
original reporting
🤖 Apiiro: 104,185 public copies of Claude Code's .claude/settings.local.json on GitHub; 1,122 hold ≥1 secret (1,379 total). "Yes, and don't
thehackernews.com · 18d ago · November 7th, 2026
🤖 Apiiro: 104,185 public copies of Claude Code's .claude/settings.local.json on GitHub; 1,122 hold ≥1 secret (1,379 total). "Yes, and don't
-
update from aicoder.com
Apiiro: Claude Code's “Don't Ask Again” Saves Approved Commands - Passwords Included - to settings.local.json; 2,539 Secrets Found on Public GitHub
aicoder.com · 20d ago · November 6th, 2026
Apiiro researchers Shmulik Cohen and Matan Giladi reported on 5 November 2026 that Claude Code saves an entire approved shell command, including any password or API key typed into it, verbatim into the project file .claude/settings.local.json when the user chooses Yes and don't ask again. Their scan of public GitHub found 104,185 copies of the file across 103,617 repositories, with 1,122 files holding at least one secret. Counting git history, shared settings, and saved agent transcripts, the exposure totaled 2,539 secrets across 1,994 repositories.
-
update from itwire.com
Claude Code approval files found exposing company secrets on GitHub, says Apirro researchers
itwire.com · 19d ago · November 7th, 2026
The exposure comes from the permanent approval option saving credential-bearing commands in plain text.
-
update from gbhackers.com
Claude Code’s “Don’t Ask Again” Feature Exposes 2,539 Secrets Across 1,994 GitHub Repositories
gbhackers.com · 19d ago · November 7th, 2026
Exposed material included production database passwords, cloud credentials, API tokens, and SSH […] The post Claude Code’s “Don’t Ask Again” Feature Exposes 2,539 Secrets Across 1,994 GitHub Repositories appeared first on GBHackers Security | #1 Globally Trusted Cyber Security News Platform .
-
update from madrobot.blog
Claude Code “Don't ask again” left secrets in 1,122 GitHub files
madrobot.blog · 19d ago · November 7th, 2026
That file is then easy to commit to a public repository, exposing passwords and keys.
-
mentioned by madrobot.blog
Claude Code’s “Don’t ask again” button left passwords and API keys in 1,122 public GitHub files, researchers say # ClaudeCode # Infosec # AI
madrobot.blog · 19d ago · November 7th, 2026
-
update from dev.to
Apiiro’s Claude Code Scan Found 2,539 Secrets in .claude/settings.local.json - Local Desktop Tools Keep Credentials Off the Git Path
dev.to · 19d ago · November 7th, 2026
The post notes that local desktop tools avoid this class of leak entirely.
-
mentioned by kylesinvestigation.com
Claude Code’s “Yes, and Don’t Ask Again” Option Can Leak Passwords and API Keys to GitHub
kylesinvestigation.com · 19d ago · November 7th, 2026
-
update from malware.news
Coding Agents Copy Your Secrets to a Hidden File. Thousands Are on GitHub
malware.news · 19d ago · November 7th, 2026
Among them: a database vendor’s own admin-level cloud key, a production Azure Postgres password, a Square production token, and the owner password of a medical-records database. 63 organizations, mostly… Article Link: https://databreaches.net/2026/11/07/coding-agents-copy-your-secrets-to-a-hidden-file-thousands-are-on-github/
-
update from apiiro.com
The research behind the story goes back to November 5: Coding Agents Copy Your Secrets to a Hidden File. Thousands Are on GitHub https:// ap
apiiro.com · 19d ago · November 7th, 2026
The research behind the story goes back to November 5: Coding Agents Copy Your Secrets to a Hidden File.
-
update from thehackernews.com
👀 😅🤣 https:// thehackernews.com/2026/11/clau de-codes-dont-ask-again-file.html # Cybersecurity # llm # privacy # vibes
thehackernews.com · 18d ago · November 8th, 2026
👀 😅🤣 https:// thehackernews.com/2026/11/clau de-codes-dont-ask-again-file.html # Cybersecurity # llm # privacy # vibes
-
update from newtqnia.com
Apiiro found 2,539 classified credentials across public repositories, histories and agent-generated files after Claude Code stored exact app
newtqnia.com · 18d ago · November 8th, 2026
Apiiro found 2,539 classified credentials across public repositories, histories and agent-generated files after Claude Code stored exact app
-
update from gbhackers.com
agent permission files are the new .env nobody reviews them. everybody commits them when's the last time you opened yours? https:// gbhacker
gbhackers.com · 18d ago · November 8th, 2026
agent permission files are the new .env nobody reviews them. everybody commits them when's the last time you opened yours? https:// gbhacker
-
mentioned by www.martincid.com
Claude Code’s ‘don’t ask again’ left passwords in 1,122 public GitHub files https://www. martincid.com/technology-sv/cl aude-code-dont-ask-a
www.martincid.com · 18d ago · November 8th, 2026
-
mentioned by www.itnews.com.au
Source: IT News Security (AU) Read: https://www. itnews.com.au/news/dont-ask-ag ain-in-anthropics-claude-code-leaks-developer-secrets-630203
www.itnews.com.au · 17d ago · November 9th, 2026
-
update from gbhackers.com
Anthropic Claude Code’s ‘Don’t Ask Again’ Feature Exposes 2,539 Secrets on GitHub
gbhackers.com · 17d ago · November 9th, 2026
They linked these exposures to coding agents that record sensitive commands in project files.
-
update from www.itnews.com.au
Claude Code has been storing developer passwords in plain text files, which in some cases have ended up on Github. Anthropic: Our large lang
www.itnews.com.au · 17d ago · November 9th, 2026
Claude Code has been storing developer passwords in plain text files, which in some cases have ended up on Github. Anthropic: Our large lang
-
update from blog.gitguardian.com
Claude Code settings.local.json Secrets: GitHub, Docker Hub
blog.gitguardian.com · 17d ago · November 9th, 2026
TL;DR 31,088 secrets, 5,343 valid: GitGuardian found 31,088 distinct secrets in Claude Code’s .claude/settings.local.json on public GitHub, across 23,276 repositories, and 5,343 of them worked when we detected them. “Yes, and don’t ask again” writes the key: approving a command permanently makes Claude Code save an allow rule that is the command string itself, API key included, in the project’s settings file. One valid token in 559 Docker image tags: COPY . ships the working tree, not the git index, so 613 secrets, 99 valid, reached public Docker Hub images; one valid Cloudflare API token appears in 559 tags. 92% drop from the April 2026 peak: monthly leaks in settings.local.json peaked at 12,535 occurrences in April 2026, then fell to 959 by October, and we do not yet know what changed. I have been doing research for a long time, and a good sign that you are working on something worth doing is that other researchers are working on the same topic. It can feel frustrating at first, but it is great. This one first occurred to me in early 2026, while I was doing research on n8n and kept finding n8n API keys inside Claude Code settings files. Here are the results I had planned to release in the State of Secrets Sprawl 2027, refreshed to this week, with what only continuous monitoring can see. Every version of the file we saw pushed, whether the credentials worked, who pushed them, and where the file
-
mentioned by thehackernews.com
# Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on # GitHub https:// thehackernews.com/2026/11/clau
thehackernews.com · 17d ago · November 9th, 2026
-
update from rbfirehose.com
Ars Technica: Claude Code is accidentally exposing secrets all over GitHub. “Claude Code is leaking sensitive information on public GitHub i
rbfirehose.com · 12d ago · November 13th, 2026
Ars Technica: Claude Code is accidentally exposing secrets all over GitHub.
-
mentioned by www.infoq.com
Using Claude Code’s "Don’t Ask Again" feature? Security firm Apiiro found over 2,200 exposed secrets in public repositories linked to Claude
www.infoq.com · 2d ago · November 24th, 2026
-
update from blog.gitguardian.com
Your AI Coding Agent Just Leaked a Secret. Bots Found It on Docker Hub in 8 Seconds
blog.gitguardian.com · 1d ago · November 25th, 2026
TL;DR Bots read your Docker layers in 7.86 seconds : Stony Brook researchers planted keys in 300 honeypot images. Every AWS key was used within 15 minutes, and the median first API call came after 51 seconds. Five fixes you can start today : Rotate what those files held, update .dockerignore, scan every layer, and stop the leak at the agent with AI Hooks. See what to do before the next bot gets there first. On Nov. 17, BleepingComputer reported on research from Billy Tsouvalas and Nick Nikiforakis of Stony Brook University. They published 300 honeypot images across eight public registries over four months and presented the findings at the most recent ACM Conference on Computer and Communications Security earlier this month. The fastest planted AWS key was used 7.86 seconds after its image went live. That is far faster than any human or team could ever react. Developers commonly run AI coding agents, which make the same mistakes humans have been making for years: writing plaintext credentials into project config files. Those files follow the code into container builds. That is how Docker Hub secrets end up in front of the bots reading image layers. In an era of Artex and the many variations of autonomous offensive security AI