Watch on YouTubeWatch on Instagram
About this video
Claude Code's "don't ask again" saves the whole command, typed passwords included, to .claude/settings.local.json. GitGuardian found 31,088 secrets from that one file on public GitHub (5,343 still worked). Five free scanners can catch it before you push. Here's what each one is for:
git-secrets (AWS): blocks the commit on your laptop. Catch: only AWS keys out of the box.
detect-secrets (Yelp): stops NEW secrets in an old repo, without cleaning up the old ones first.
gitleaks: one binary for your pre-commit hook and CI; flags every key in a plain .env.
Kingfisher (MongoDB): tells you if a found key still works, maps what it can reach, can revoke some.
TruffleHog: 800+ secret types, from Git to chats and logs; can check if a key is live.
On 10 fake secrets in that settings file (default rules, offline): TruffleHog 5/10 · Kingfisher 4 · gitleaks 2 · detect-secrets 2 · git-secrets 1. All five together missed 4: three plain passwords typed into commands (PGPASSWORD, mysql -p, sshpass) and a Telegram bot token.
The fix: keep passwords in environment variables, never force-add that file to git (it's git-ignored by default), add it to .dockerignore too, and rotate anything that was ever pushed.
What each is for, a 2-minute check and a pre-commit setup: pranavinnovates.com/leak
Notes: every secret in the test was fake; one repo and 10 examples, not a general benchmark. The permission prompt in the opening is a recreation. Leak figures: GitGuardian, 9 Nov 2026 (blog.gitguardian.com/claude-code-settings-local-json-secrets-docker-hub). Not sponsored.
Music: Deliberate Thought by Kevin MacLeod (incompetech.com), CC BY 3.0.
What the video says
Claude Code's "don't ask again" saves typed passwords. Thirty-one thousand secrets from that file are on public GitHub. Five free scanners can catch it before you push. Here's what each one is for, scored on ten fake secrets. git-secrets, from AWS, blocks the commit on your laptop. The catch: only AWS keys. One. Yelp's detect-secrets stops new secrets in an old repo, with no cleanup first. Two. Gitleaks runs in pre-commit and CI, and flags every key in a .env. Here: two. MongoDB's Kingfisher tells you if a found key still works. Four. TruffleHog knows over eight hundred secret types, from Git to chats. Top score: five. All five together still missed four. Three were plain passwords, typed into commands. The fix: passwords in environment variables, never force-add that file, and rotate anything you pushed. Eleven thousand developers leaked secrets this way. Have you checked yours?