Apiiro: Claude Code "Don't Ask Again" rules leak secrets into public repos
12/04/2026 — 12/04, 11:19·1 sources (all)·1 reports (all)
Key takeaways
- Security firm Apiiro found that Claude Code's "Don't Ask Again" command approvals persist embedded credentials into .claude/settings.local.j…
Background & analysis
On December 4, 2026, AI agent security vendor Apiiro disclosed that Claude Code's "Don't Ask Again" command-approval mechanism stores approval rules, along with any credentials embedded in them, in a developer's local .claude/settings.local.json file. Because that file is not effectively covered by a project-level .gitignore, keys end up being committed to public repositories. Apiiro said it found more than 2,200 leaked secrets across the relevant paths and Git history, affecting 63 organizations. Of those, 1,122 keys were detected in claude/settings.local.json files, while another 1,160 appeared in Git history, in settings.json files deliberately committed and shared, and in agent chat logs stored inside code repositories.
According to Apiiro, when a developer replies "Yes, and don't ask again" to approve a shell command, Claude Code saves it as a permanent permission rule in that local settings file, which may inadvertently contain credentials, passwords and API tokens. When Claude Code creates the file inside a Git repository, it adds the file to the developer's global git ignore list. That covers common cases but has exceptions: a folder added to a repository later, a clone on another machine, or a file someone else has already committed.
GitGuardian later found 31,088 secrets in similar files in Claude Code's public GitHub repositories, of which 5,343 were still valid at the time of detection. The matter currently rests at the disclosure and counting stage; the source material does not mention any response or fix from Anthropic.
AI-generated from 1 reports · updated 1 day ago
Related AI tools
- Heat index
- 45
- All sources
- 1
- All reports
- 1
- First seen
- 2 days ago
Reports on this story headlines open the original
Security firm Apiiro found that Claude Code's "Don't Ask Again" command-approval rules are stored together with embedded credentials in the local .claude/settings.local.json file, which is not covered by the project's .gitignore, so secrets end up committed to public repositories; it found more than 2,200 leaked secrets across 63 organizations. GitGuardian later reported 31,088 secrets in such files on public GitHub repos, 5,343 of them still valid at the time of detection.
InfoQ 中文AI score 74
Other stories people are talking about
- Heat index 50How to Get Notified When Claude Code Waits for Input1 sources
- Heat index 41Using Codex and Claude Code to review each other's code1 sources
- Heat index 40Claude Code passed all visible tests but broke hidden rules in 38 of 78 runs1 sources
- Heat index 77When Claude Code plugins are worth building: a team's take1 sources
- Heat index 95NewDeveloper open-sources a Claude Code skill that interviews you before writing your blog post1 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

