[KongchangAI]
Product

settings.local.json

A local configuration file generated by Claude Code for persisting permission and command settings, which may contain sensitive command content that has not been desensitized.

Timeline (last 90 days)

Nov 14

If a local configuration file containing sensitive commands is accidentally committed and pushed to a public GitHub repository, credentials will be exposed.

Unverified50%
Nov 14

Developers should add settings.local.json and related local configuration files to .gitignore.

Unverified50%
Nov 9

The settings.local.json file is usually generated automatically when a user clicks "Yes, and don't ask again" in Claude Code, to remember local permission decisions.

Unverified50%
Nov 9

Security firm Apiiro found that more than a thousand public Claude Code settings.local.json files contained real secrets.

Unverified50%
Nov 9

It is recommended to add known sensitive filenames (such as settings.local.json) to git-secrets or gitleaks scanning rules to establish default protection.

Unverified50%
Nov 9

Anthropic responded that settings.local.json was designed for local use and should not be committed to version control systems.

Unverified50%
Nov 9

Apiiro confirmed that 1,122 public settings.local.json files contained real secrets, a figure derived from actual scan results.

Unverified50%

All Facts (7)

Source Articles