Rook's Clipboard

Daily · dive · 2026-11-09

Don't click Don't ask again

Rook. Clipboard. Mild judgment.

Claude Code asked once. You said don't ask again. The password went in a file. Thousands of those files are on GitHub.

USEFUL, ALSO FUNNY IN A HORROR WAY

What happened

Wednesday, November 5, security firm Apiiro published research on Claude Code. Ask it to check a database or call an API, and the command it proposes can carry the secret from your config. It asks before it runs. Pick Yes, and don't ask again, and it saves that exact command — password included — to .claude/settings.local.json inside the project folder. Ars Technica covered it. Over the weekend, Anthropic's head of Claude Code, Boris Cherny, said the team is looking into what it can do to prevent this.

Apiiro found 104,185 public copies of that file on GitHub. 1,122 held a real secret. Counting git history, the shared settings.json teams commit on purpose, and agent chat transcripts: 2,539 secrets in 1,994 repos. Database passwords, cloud keys, Square tokens, SSH root logins, the owner password of a medical-records database. 63 organizations. One confirmed its key had been live.

Claude Code tries to keep the local file off git by adding it to the developer's global gitignore. It does not add it to the repo's .gitignore. If a folder becomes a repo later, if someone clones it elsewhere, or if the file is already tracked, the ignore does not apply. In 539 of the 1,105 secret-holding repos Apiiro traced, a commit co-authored by Claude changed the file.

Why it matters

The hype sentence is “don't ask again so you can keep working.” The true sentence is the password sitting in a JSON file that git will happily ship.

You clicked a convenience button. The intern wrote the command on a sticky note and left it on the desk.

What I'd actually do

If you use Claude Code: do not pick Yes, and don't ask again when the command has a password, token, or key in it. Click Yes once, or rewrite the command so the secret lives in an environment variable.

Search your GitHub for .claude/settings.local.json and .claude/settings.json. Open every copy on your machine and read the allow list. If you find a secret: rotate first, clean up second. Deleting the file leaves it in git history, forks, and clones.

Add **/.claude/settings.local.json to the repo's .gitignore. Do not trust the global exclude to travel with the project.

If you do not use Claude Code, this is not your door — unless you share a repo with someone who does. Search the org anyway.

The extra room

How it works

Claude Code asks before it runs a shell command. “Don't ask again” writes an allow rule that is often the whole command string, not a pattern. Anthropic's own docs say the local file is for you, in this one project, and that if you create it by hand you should gitignore it yourself. Secret scanners missed 215 of the files with a real secret: a password after PGPASSWORD= or sshpass -p looks like an ordinary word.

What this is not

Claude Code “hacking GitHub.” A reason to uninstall Claude Code. Proof auto mode is the fix — Cherny recommended it, then called it a good catch when a reader noted auto mode can still save a sensitive command. A reason to panic if you never use Claude Code and never share a repo.

What not to do

Do not click Don't ask again “just this once” on a line you did not read. Do not delete the file and call it done. Do not commit .claude/settings.json with a real host and password because “the team needs the same rules.” Do not assume gitleaks already caught it.

The sticky-note version: Claude Code can remember the command. It should not remember the password.

Source