Claude Code saves approved commands into project files
π‘οΈ Anthropic's coding assistant, Claude Code, can store approved shell commands verbatim in a project file, causing passwords and API keys entered in those commands to be committed to public GitHub repositories. Apiiro found 1,122 public copies of .claude/settings.local.json containing at least one secret, and reproduced the behavior with Opus 5.5 and Fable 5.1. Researchers advise rotating all exposed credentials first, then removing the files from repos and git history and treating agent folders as secret-bearing.
