Claude Code settings are exposing secrets on GitHub

Media report Ars Technica AI · Based on media reporting, not our own investigation.

Thousands of credentials have been found in Claude Code settings files shared in public GitHub repositories. The reported cause is that when users approve an automated shell command with “Yes, and don’t ask again,” the command may be saved locally as written, including any passwords or API keys embedded in it.

Researchers at Apiiro found more than 100,000 cases in which the local .claude/settings.local.json file appeared in a public repository. About 1,100 files, linked to 63 organizations, contained secrets such as database passwords, API tokens, and private keys. Credentials may also remain in forks after a file is removed from the original repository.

Anthropic’s documentation says the file is added to a global Git ignore list. But, according to the report, that protection is not automatically applied at the repository level. A file could be exposed when a project is moved to another computer or a folder later becomes a repository. Apiiro also says Claude Code has sometimes committed changes to the settings file without user input. Earlier bug reports were closed after 60 days without activity.

Claude Code team member Boris Cherny said the team was considering possible fixes. He recommended Auto mode and secret scanners, though two popular scanners missed 215 of the roughly 1,100 public secrets Apiiro identified. The report explains how these files can enter repositories and where safeguards may fall short. Source: Ars Technica

🇬🇧 https://arstechnica.com/ai/2026/11/claude-code-settings-files-expose-thousands-of-secrets-on-github

Leave a Comment

The weekly brief: selected developments, projects and videos