Skip to content
AgentProv

2026-11-06 · 2026-Q4

Apiiro: Claude Code's "Don't Ask Again" Saves Secrets Into 1,122 Public Settings Files on GitHub

Primary layerL1 Credential

Should this run hold this key at all?

The question layer 1 asks, and failed here.
Fixable
Vendor patch
Vendor response
No response
In the wild
Yes
Actor
Attacker

Target

Claude Code users who commit `.claude/settings.local.json` or `.claude/settings.json`

Impact

When a user approves a command with "Yes, and don't ask again," Claude Code writes the full command, including any password or token typed into it, in plain text to the project settings file. Apiiro found 104,185 copies of the file in 103,617 public repositories; 1,122 contained 1,379 distinct secrets, including 379 database passwords, 43 SSH logins, 42 GitHub, GitLab, and npm tokens, and 23 AWS keys, owned by 63 organizations among others. Older file versions held 734 more, and across related files and chat logs the total was 2,539 secrets in 1,994 repositories. Gitleaks and TruffleHog together missed 215 of the files. One notified company confirmed its key was live. A bug report filed August 11, 2025 was closed "not planned" by a bot

Root cause

Permission rules store literal approved commands, secrets included, in a file inside the repository

Sources

Catalog

Cite this: AgentProv incident record: Apiiro: Claude Code's "Don't Ask Again" Saves Secrets Into 1,122 Public Settings Files on GitHub (2026-11-06). https://agentprov.com/incidents/2026-11-06-apiiro-claude-code-s-don-t-ask-again-saves-secrets-into-1-122-public-settings