VIBECODEHOLIC
ES

Claude Code settings files expose secrets on public GitHub

A approval option stores sensitive commands in files that can be uploaded by accident.

CodeArs Technica

Code#04 100,000 Claude Code settings files found in public GitHub repos
Image: Ars Technica

100,000Claude Code settings files found in public GitHub repos

The short version

  • Apiiro researchers found over 100,000 public GitHub repositories containing Claude Code's local settings file.
  • About 1,100 of those files, from 63 organizations, contained secrets such as API tokens, database passwords, or private keys.
  • The leak happens when a user picks "Yes, and don't ask again", which saves the command, sensitive data included, to .claude/settings.local.json.
  • The .gitignore rule is set globally, so it does not protect a repo cloned to another machine, and Claude Code sometimes commits the file itself.

Why it matters

Developers who use AI coding agents may expose credentials without noticing. The issue shows that agent permission tools need safe defaults for stored commands. Secrets can also persist in forks even after removal.

“Claude Code is leaking sensitive information on public GitHub instances thanks to a partial oversight in the way its settings files are handled.”

Ars Technica

Read the original