← November 8, 2026 briefing · added in the 12:00 KST update

P1 Dev tools Unconfirmed AI securityAgents12:00 updateAnthropicApiiroGitHub

Apiiro: Claude Code's 'don't ask again' approval saves secret-laden commands to a settings file, found exposed in 1,122 public GitHub files (community report)

Verified (fact)

This is Apiiro's analysis as summarized on GeekNews. When a user selects 'Yes, and don't ask again' in Claude Code, commands containing secrets such as passwords are written in full to the project's permission settings file (.claude/settings.local.json). If that file is committed along with the code, the credentials leak. Apiiro examined 104,185 of these files on public GitHub and found secrets in 1,122 (about 1.1%). However, it did not verify whether the credentials found are still valid. According to the analysis, when Claude Code creates this file it adds it only to the developer's global Git exclude list and does not add a rule to the repository's .gitignore. As a result, folders later turned into Git repositories, repositories cloned to other machines, and files already being tracked are not protected.

Why it matters (interpretation)

It shows that a feature meant to make coding-agent permission approvals convenient can itself become a credential leak path. Teams using Claude Code should check whether the file is in their repository's .gitignore and whether it has already been committed, and rotate any exposed keys.

Confidence medium · official source pending

Sources

More about Anthropic