Approval fatigue: Claude Code exposed 2539 secrets on public GitHub
A report from security firm Apiiro shows that Claude Code stored complete commands approved by users, along with the plaintext secrets in them, in project settings files; the files were committed to public GitHub, exposing a total of 2539 real secrets. After a user clicked "don't ask again," the entire command was written as an allow rule into .claude/settings.local.json, and that file only goes into the developer's local global ignore rules, not the repository's own .gitignore. Apiiro collected 104185 such files on public GitHub from November 1 to 3, and 1122 contained real secrets; counting historical versions, shared settings and agent conversation records, the secrets were scattered across 1994 repositories and affected 63 organizations, and one confirmed secret was valid at the time. gitleaks and TruffleHog combined still failed to flag 215 files containing secrets, with the gap concentrated in passwords written into commands.
The report quantifies authorization fatigue into a verifiable scale of exposure, points out that authorization records written by agents have become a new credential container, and provides a cleanup and scanning checklist that can be followed directly.