Incident2026-11-06

Apiiro found 1,122 public copies of Claude Code’s settings file holding secrets. The file saves exact commands when a user picks 'Yes, and don’t ask again'. Those commands can include passwords and API keys in plain text. Removing the file from a repo does not remove it from git history or forks. Apiiro traced 2,539 exposed credentials across 1,994 repositories. Some secrets were live and usable when checked. The file is not added to a project’s .gitignore by default. Claude Code often commits the file itself in co-authored changes. Secrets also appear in shared settings files and older versions. Common secret scanners miss many of these files. Apiiro recommends rotating all exposed secrets before cleanup. It also advises stopping git tracking of the file and adding it to .gitignore. Developers should avoid putting secrets in commands and use variables instead.

What changed

Claude Code asked before running each shell command and did not save approved commands by default.

What it unlocks

Finding and rotating exposed secrets before attackers use them.

  • 1,122 public .claude/settings.local.json files with secrets
  • 2,539 exposed credentials across 1,994 repositories
  • 1,379 different secrets in current files
  • 734 more secrets in older file versions

What you need to act on it

  • using Claude Code
  • selecting 'Yes, and don't ask again' for a command containing a secret
  • committing the .claude/settings.local.json file to a public GitHub repository

Send this to someone who needs it

Shares the story and its sources. Nothing about you.

What does this mean for your job?

This is the story as everyone gets it. Once a week we send you the version written for your role — what changed, why it matters for the work you actually do, and one thing to try. Free while we tune it.