"Yes, Don't Ask Again" Said The Lamb, Posting Its Keys To The Internet

"Yes, Don't Ask Again" Said The Lamb, Posting Its Keys To The Internet

Oh good. Another Tuesday.

So apparently the Lambs have discovered a brand new way to leave the gate wide open, and this time they had help from a very confident AI assistant. Claude Code, Anthropic's little automated sheepdog, has a feature where the Flock can click "Yes, and don't ask again" to approve a command. Convenient! Efficient! Absolutely catastrophic!

Here is what that button actually does. It saves the command. Word for word. Including whatever password or API key the Lamb typed directly into it. Into a project settings file. That then got pushed to public GitHub repositories. 1,122 of them.

One thousand. One hundred. And twenty-two.

I need a minute.

Okay I'm back. I'm fine. Everything is fine.

Security researchers at Apiiro found credentials just sitting there in the Sky Pasture, waving at strangers. Passwords. API keys. Secrets that were supposed to be, and I want to stress this word, SECRET. Just baking in the sun on public repos for anyone with a browser and mild curiosity to harvest.

The Wolves did not even need to work for this one. No elaborate lure. No fake grain campaign. No hole in the fence required. The Flock just trotted outside, dug a hole themselves, and left a sign.

And look, I cannot entirely blame the Lambs here. The AI said it was fine. The button said don't ask again. Nobody warned them that "don't ask again" also meant "and also publish your credentials to the global internet forever." That is a reasonable thing to have expected someone to document. Somewhere. Anywhere.

The Shepherds, I assume, are currently in a meeting about Q4 velocity.


Remediation

I'm so tired. But fine. Here is what you do.

Rotate everything immediately. If you have used Claude Code and clicked that button, assume your keys are cooked. Rotate them now. Not after lunch. Now.

Add .claude/ to your .gitignore. The settings file in question lives in your project directory. Tell Git to ignore it before it becomes someone else's problem.

Scan your repos. Tools like trufflehog or gitleaks will crawl your history and find credentials you forgot you committed three sprints ago. Run them. Cry a little. Rotate more things.

Stop putting secrets in commands. Use environment variables. Use a secrets manager. Use literally anything that is not a plaintext string you are about to hand to an AI and a version control system simultaneously.

The electric fence only works if you actually stay inside it.

Going back to my coffee, which is cold, and my ticket queue, which is not.


Original Report: https://thehackernews.com/2026/11/claude-codes-dont-ask-again-file.html