The "Don't Ask Again" Button Saved the Password. Seven Steps If Anyone Builds Your Tools With an AI Coding Agent.

Researchers found real passwords and keys in 1,122 public copies of one Claude Code settings file. If someone builds software for your business with AI, here is what to ask this week.

By John Martines · November 9, 2026 · 6 min

A security firm found that Claude Code's "Yes, and don't ask again" button can save a whole command, password included, into a project file, and 1,122 public copies on GitHub held at least one real secret. Here is what happened and seven steps for any business that has software built with AI.

If anyone builds software for your business with an AI coding agent, one button may have saved your passwords in a file that can end up public. These seven steps take an afternoon and end with every exposed key replaced.

Picture a dental office whose front-desk manager is handy with computers. Over the summer she used Claude Code, Anthropic's coding assistant, to build a small tool that turns the day's appointments into a reminder list. Each time the assistant asked to run a command, she clicked the option that stops the questions. One command had the scheduling system's password typed into it. The tool works. The password now sits in a settings file in the project, which she shared on GitHub so a friend could help. Nothing broke, so nobody noticed.

What it is, in plain words

AI coding agents like Claude Code ask permission before they run a command on your computer. When they ask, you can say yes once, or say "Yes, and don't ask again" so the same command runs without asking next time.

In Claude Code, that second choice saves the approved command as a rule in a file in the project folder named `.claude/settings.local.json`. Anthropic's documentation says such an approval lasts permanently for that project and command. If the command you approved had a password, a key or a database address in it, the whole thing is saved, secret included.

The file is meant to stay on your own computer. Anthropic's documentation says Claude Code adds it to a personal ignore list the first time it writes it, so the tools that publish code usually skip it. Usually isn't always: projects get copied, set up on another machine or uploaded by hand.

How it got here:

  • Early November 2026: Researchers Shmulik Cohen and Matan Giladi at Apiiro, a company that sells software security products, published their findings. They scanned 104,185 public copies of that settings file on GitHub and found that 1,122, about 1.1 percent, held at least one real secret.
  • Same research: counting other places in the same projects (shared settings, older versions and saved agent conversations), Apiiro counted 2,539 secrets across 1,994 projects. It compared 16 coding agents from their documentation and said Claude Code was the only one confirmed to save the full approved command to a project file by default.
  • November 7, 2026: The Hacker News reported that the researchers had found four related bug reports on Claude Code's public tracker, all closed automatically, with no reply from Anthropic.

Apiiro says it did not test whether the secrets still worked. Those are the company's own counts, not an independent audit.

Why it matters to a small business

You may not write code, but people around you do now. A staff member builds a small tool on a Saturday. Your web person speeds up a site update with an AI agent. Each can click "don't ask again" a dozen times a day without thinking about where that click is saved.

A leaked key is not abstract. Earlier this month, Google's threat researchers reported stolen cloud logins running up AI bills of $100,000 a day, which we covered in [stolen AI keys run up bills](/articles/stolen-ai-keys-run-up-bills). A password in a public file is the easy version of that theft.

What to do about it, in order

1. Ask who builds with an AI coding agent. One question to staff, your web person and any contractor: "Have you used Claude Code or another AI coding agent on anything for us?" Make a list of names and projects.

2. Have each of them search their projects for the file. Ask them to look for `.claude/settings.local.json` and `.claude/settings.json` in every project they've worked on for you, on their computer and on GitHub, including older versions of the project. Deleting a file today doesn't remove it from a project's history or from copies someone else made.

3. Open the file and read the "allow" list. Each line is a command that was approved. Look for anything that looks like a password, a long string of random letters and numbers, an API key, or a web address with a name and password in it.

4. Replace every secret you find. Make a new password or key in the service it belongs to, put the new one where the tool needs it, and switch off the old one. This is the step that actually protects you. Removing the file is cleanup; replacing the key is the fix.

5. Make the project private if it doesn't need to be public. A tool your office uses rarely needs to be on public GitHub. Ask whoever owns it to switch it to private, and confirm the settings file is listed in the project's own ignore file, not only on one person's computer.

6. Keep secrets out of commands from now on. Passwords and keys belong in a password manager or in the system's settings for secrets, not typed into a command. If a command needs one, the agent can read it from there. Ask your builders to clear old entries from the allow list too.

7. Turn on GitHub's secret checks. If your business has a GitHub account, ask whoever manages it to turn on secret scanning and push protection, which warn or block when a key is about to be uploaded. Then put a twice-a-year reminder on the calendar to repeat step 2.

The prompt

Copy this into Claude or ChatGPT. It writes the message you send to the people who build things for you. Don't paste any passwords, keys or settings files into it.

```prompt YOUR PART My business: [one sentence about what we do] Who builds tools or websites for us: [names and roles, for example our web person, an office manager, a contractor] What they've built: [for example our website, an appointment reminder tool] How I want to send it: [email or text]

---- LEAVE THIS PART AS IT IS ---- Write a short, friendly message from a small business owner to the people above. Explain in two sentences that a security firm found Claude Code's "Yes, and don't ask again" option can save full commands, including passwords and keys, in .claude/settings.local.json, and that copies have ended up public on GitHub. Ask them to: say whether they use any AI coding agent on our projects; check that file and .claude/settings.json in each project, including its history; replace any password or key they find; make our projects private unless they need to be public; and reply by a date I can fill in. Make clear nobody is in trouble. Under 180 words. If anything you need is missing, say what is missing instead of guessing. ```

The line not to cross

Never treat "I deleted the file" as the fix. Once a password has been in a public project, assume someone copied it, and replace it. And never paste a live password or key into an AI chat, a command or a prompt, including the one above.

Where it's going

Coding agents are becoming the way small tools get built, often by people who aren't programmers. Expect the companies to change how approvals are saved, and expect more findings like this one, because every agent keeps notes somewhere. The habit that protects you doesn't depend on any one tool: secrets live in one safe place, nothing is public by accident, and when something leaks, you replace it the same day.

---

Sources (checked November 8, 2026). The "Yes, and don't ask again" behavior, the 104,185 copies scanned, the 1,122 files with secrets, 2,539 secrets across 1,994 projects, the 16-agent comparison, and that the secrets were not tested: Apiiro research by Shmulik Cohen and Matan Giladi (Apiiro, Nov 2026), as reported in "Claude Code's 'Don't Ask Again' File Exposes Passwords and Keys in 1,122 Public Copies on GitHub" (The Hacker News, Nov 7, 2026) and "Claude Code approval files found exposing company secrets on GitHub" (iTWire, Nov 2026). The bug reports closed without an Anthropic reply: The Hacker News (Nov 7, 2026). Where approvals are saved, that they last permanently per project and command, and the global ignore list: Claude Code documentation, "Settings" and "Identity and Access Management" (Anthropic, 2026). Stolen cloud logins and AI bills: Google Threat Intelligence Group and Mandiant, via Help Net Security (Nov 2026).

All articles