Menu

Claude Code's 'don't ask again' button saved 31,000+ secrets into public repos
πŸ“°

Claude Code's 'don't ask again' button saved 31,000+ secrets into public repos

DEV Community: devsecopsΒ·Ramdai BistaΒ·about 1 hour ago
#ijyWSnUZ
#devtodevsecops#devto#dev#file#claude
Reading 0:00
15s threshold

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 .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.