Claude Code's saved approvals exposed secrets in 1,122 public GitHub repositories

Security firm Apiiro scanned 104,185 copies of Claude Code's local permission files across public GitHub repositories and found 1,122 containing at least one secret, 1,379 distinct secrets in total. When users pick "Yes, and don't ask again," the approved command, including any inline password, is saved as a permanent allow rule in .claude/settings.local.json. Two common secret scanners, gitleaks and TruffleHog, together missed 215 of the affected files. Claude Code's default protection is a global git excludes entry, which does not travel with a project to other machines, and in many cases the agent itself committed the file. The exposed credentials include database passwords, SSH logins, GitHub, GitLab and npm tokens, and AWS keys.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in