Post

Coding Agents Copy Your Secrets to a Hidden File. Thousands Are on GitHub

Apiiro reports finding secrets in 1,122 public Claude Code local settings files: approved command strings can preserve passwords or tokens in permission rules. Across settings, history and other agent artifacts, the researchers counted 2,539 distinct purported secrets; their scanner comparison also missed some ordinary passwords embedded in commands.

Claude Code attempts to ignore its local settings when creating them, but that protection may not travel with a project. A Claude Code team member says the file is intended to remain local and the team is exploring additional safeguards. Check settings and Git history, and rotate exposed credentials before cleanup.