Claude Code's permission system lets you approve a shell command once and skip being asked again. Pick "Yes, and don't ask again" on a command that carries a real credential β an API key in a curl header, say β and that credential now sits in plaintext inside .claude/settings.local.json , a project file most developers don't think to treat as a secret store.
What the source says
Per CSO Online's report , GitGuardian researcher Guillaume Valadon scanned public GitHub and found 31,088 distinct secrets sitting in that one file, across 23,276 repositories. 5,343 were still valid when found. Of the secrets GitGuardian could test, 67% were working credentials β database passwords were the largest single category at 2,280 distinct credentials, ahead of cloud-provider and AI-service tokens.
It doesn't stop at git. Docker's COPY .β¦