Sunday, November 8, 2026

Claude Code's 'Don't Ask Again' Button Leaked Passwords Into 1,122 Public GitHub Repos — Check Yours Now (2026)

A developer's laptop at night showing lines of code, with a glowing red warning symbol and floating digital key icons, after Claude Code was found leaking passwords into public GitHub repositories

One click. That is all it took. A developer using Claude Code, Anthropic's popular AI coding agent, clicked "Yes, and don't ask again" to let the tool run a command — and that single click quietly saved a real password into a file that later ended up on public GitHub. Now security researchers say more than a thousand public repositories are carrying live secrets this way, including production database passwords, cloud keys, and payment tokens. If you use Claude Code, or you work anywhere near a team that does, this is one of those stories where checking takes five minutes and not checking can cost a lot more.

Here is what happened, how the leak works, and exactly what to check before the weekend is over.

Key Takeaways

  • The finding: Security firm Apiiro reported on November 5, 2026 that Claude Code's "Don't Ask Again" approval can save passwords and API keys in plain text inside a project settings file — and that file has been committed to public GitHub repositories.
  • The scale: Of 104,185 public copies of the file on GitHub, 1,122 contained at least one real secret. Counting git history and related files, the researchers found 2,539 distinct secrets across 1,994 public repositories.
  • What leaked: Production database passwords, cloud keys, API tokens, and SSH root logins — including a database vendor's own admin-level cloud key, a production Azure PostgreSQL password, a Square production token, and the owner password of a medical-records database.
  • Who is affected: 63 organizations, mostly software companies of all sizes. One confirmed to the researchers that its exposed key was still live.
  • The catch: Normal secret scanners miss about one in five of these files, because the secrets are passwords typed inside commands, not keys in a recognizable format.
  • What to do: Search your GitHub organization for the settings file, remove it from version control, and revoke and rotate any key that was ever in it. Revocation — not a "leak checker" website — is the fix.

What Happened

Claude Code is the coding agent from Anthropic that has become a daily tool for a huge number of American developers. It reads your code, suggests changes, and runs shell commands on your behalf — querying a database, calling an API, restarting a service. Before it runs a command, it asks for your permission. That is the safety net, and for most people it works fine.

The problem is the convenient option in that permission prompt: "Yes, and don't ask again." Pick it, and Claude Code remembers the approval so it stops bothering you. To remember it, the tool writes the full command — word for word — into a local settings file called .claude/settings.local.json inside your project folder. If that command contained a password, a token, or a cloud key, the secret is now sitting in that file in plain text.

That file is supposed to stay on your machine. Claude Code even tries to protect it: the first time it writes the file inside a git repository, it adds an entry to your global gitignore so git will skip it. But that protection has limits. Once a file has already been committed, gitignore does not untrack it. And in practice, thousands of copies of the file are sitting in public repositories right now.

Apiiro, the security company behind the research, published its findings on November 5, 2026. The report was written by researchers Shmulik Cohen and Matan Giladi, who scanned GitHub between November 1 and 3. The story spread through security reporting on November 7 and 8, including coverage by Cybersecurity News and iTWire.

What the Researchers Actually Found

The numbers are precise, and they are worth reading carefully, because they show this is not a handful of careless developers.

Apiiro examined 104,185 public copies of .claude/settings.local.json spread across 103,617 repositories. In 1,122 of those files — about 1.1 percent — there was at least one real secret: a key in a known provider format, or a password or token sitting next to a public host. That adds up to 1,379 distinct secrets, of which 636 were provider keys and 743 were passwords or tokens for hosts reachable from the internet.

Then the researchers widened the net. Checking earlier commits, shared settings files, and agent transcripts, they counted 2,539 distinct secrets across 1,994 public repositories. The files are not new, either. In the median affected repository, the settings file was first committed 217 days before the scan, and in 118 repositories it had been sitting there for more than a year.

The researchers also traced the connection back to Claude Code itself. In 539 of the 1,105 repositories they examined closely, a commit co-authored by Claude Code had changed the settings file. And they reproduced the same behavior with Anthropic's newest models, Opus 5.5 and Fable 5.1 — this is a behavior of the Claude Code product, not a glitch in one model.

Two caveats matter, and honest reporting should include them. First, Apiiro did not test the credentials it found, so the research shows exposure, not confirmed break-ins — although one notified company confirmed its exposed key was live. Second, Apiiro sells security products for coding agents, so it has a commercial interest in this topic, and no independent party has repeated its counts yet. Neither caveat changes the mechanism, which is documented in Anthropic's own settings documentation: standing approvals are saved in the local settings file.

What Got Exposed

The specific cases Apiiro documented are the part that makes this story hard to shrug off. Among the exposed secrets were a database vendor's own admin-level cloud key, a production Azure PostgreSQL password, a Square production token, and the owner password of a medical-records database. In total, the researchers counted 379 database passwords and 122 Supabase service-role keys.

Sixty-three organizations were affected, most of them software companies of all sizes. That is the other lesson here: this is not only a problem for hobby projects. Real companies with real customers had production credentials sitting in public files, in some cases for over a year.

Perhaps the most worrying detail is how badly normal defenses perform against this kind of leak. Apiiro ran two of the best-known secret scanners, gitleaks and TruffleHog, over all 104,185 files. Of the 1,122 files with a real secret, gitleaks flagged 564 and TruffleHog flagged 643 — and 215 were flagged by neither. That is roughly one in five. The reason is simple: these tools are tuned to recognize key formats, like a provider prefix followed by a long random string. A password typed inside an ordinary shell command does not look like a key, so it slips straight past them.

Attackers already know this. The Shai-Hulud npm worm, which hit developers earlier in 2026, ran TruffleHog over its victims' files looking for exactly this kind of material. Public GitHub is scanned constantly, by everyone, for free.

What Anthropic Has — and Hasn't — Said

As of November 8, there is no public reply from Anthropic about the research, and no change to the documentation on this point. That silence is itself part of the story, because this is not the first time the issue has surfaced. A GitHub issue reported plaintext credential storage in approved commands as early as August 2025.

That does not mean Anthropic is ignoring the problem, and it would be unfair to claim it is. But for users, the practical position is clear: do not wait for a fix or an announcement. The file, the behavior, and the public exposure are all real right now, and the steps below take minutes.

Checklist: What to Check Right Now

Your Claude Code Leak Checklist

  • Search your GitHub organization: Look for .claude/settings.local.json and .claude/settings.json across every repository you own or contribute to. Every hit is a file anyone on the internet can read right now.
  • Check the history, not just the current files: Deleting the file today does not erase old commits. If the secret was ever committed, it is still in the git history, and the history is public too.
  • Remove it properly: If the file is tracked, run git rm --cached .claude/settings.local.json and add the entry to the repository's own .gitignore — not just the global one. The global gitignore only protects files that were never committed.
  • Revoke and rotate every exposed key: This is the step that actually matters. A leaked password or token must be treated as compromised. Revoke it at the provider and issue a new one. Do not paste the key into any website that offers to "check" whether it leaked — revocation is the check.
  • Stop approving commands with secrets in them: If a command needs a password, use an environment variable or a secrets manager instead of typing the secret into the command line. And think twice before clicking "Don't Ask Again" on anything that touches credentials.
  • Scan with more than one tool: Since gitleaks and TruffleHog each missed hundreds of these files, run both — and still assume something could be hiding in a command string neither tool recognizes.
  • Protect your private files the same way: Leaks like this one are a reminder that sensitive material should never sit in a place that can be copied or synced by accident. Keep photos, videos, documents, and private notes in a secure vault on your own device — Pro Calculator Secure Vault keeps them locked behind sign-in protection with an intruder selfie, stored locally on your phone with no data collected or shared.

Watch Out: Scams Riding on the Leak

Every major security story spawns fakes within days, and this one is tailor-made for them. Expect to see posts offering "leaked Claude Code key lists," cheap access to premium AI tools, or a free "checker" that asks you to paste in your API key to see if it was exposed. Every one of those is either a scam to harvest your credentials or a way to sell you access built on someone else's stolen keys.

The rule is simple: never paste a real key or password into a website, a chat message, or a tool you did not already trust before this story broke. If a message claims your key leaked and offers to fix it for a fee, delete it. The only legitimate fix is revoking the key at the provider that issued it — through the provider's own dashboard, reached by typing its address yourself.

Why This Matters Beyond Claude Code

Zoom out, and this is not really a story about one bug in one tool. It is a story about what happens when AI agents get real permissions. A few years ago, a developer's most dangerous file was a config with a key in it. Now the agents themselves write files, approve commands, and remember your choices — and every one of those conveniences is a new place for a secret to hide.

October 2026 already showed how bad this pattern can get. As we reported in our Black October roundup, nine AI developer platforms were breached in a single month, and the common thread was stolen keys — the same kind of credentials now sitting in public GitHub files because of a saved approval. The Claude Code leak is the other side of that coin: sometimes nobody has to break in, because the secret was published by the workflow itself.

The fix, in both cases, is boring and unglamorous: fewer secrets lying around, shorter-lived keys, and a habit of revoking first and asking questions later. The tools will keep getting more convenient. The discipline has to keep up.

Frequently Asked Questions

I use Claude Code. Am I affected?

Only if a settings file containing a secret from your projects was committed to a public repository. Check your GitHub repositories for .claude/settings.local.json and .claude/settings.json. If neither file is in any public repo, this particular leak does not affect you — but the checklist above is still worth doing once.

What exactly is .claude/settings.local.json?

It is Claude Code's local settings file for a project. It stores standing approvals — commands you told the tool it can run without asking again. The file is meant to stay on your machine, but if it gets committed to a git repository, everything in it, including any secrets inside saved commands, goes with it.

Can I just delete the file from GitHub?

Deleting it from the current version is not enough. Git keeps the full history, so the secret remains in older commits, which are also public. You must remove the file from tracking, and — critically — revoke and rotate every secret that was ever in it.

Why didn't secret scanners catch this?

Tools like gitleaks and TruffleHog look for keys in recognizable formats. A password typed inside an ordinary command does not match those patterns, so about one in five of the affected files slipped past both tools. That is why manual checking and revocation matter more than a clean scan result.

Has Anthropic fixed this?

As of November 8, 2026, Anthropic has not publicly responded to the Apiiro research, and the documentation describing how standing approvals are stored has not changed. The issue was first reported on GitHub in August 2025. Until there is an official fix, the practical steps in this article are the protection available.

Does this affect other AI coding tools?

The research focused on Claude Code, but the underlying pattern — an agent saving approved commands that contain secrets — can apply to any coding agent that stores approvals in project files. If you use Codex, Cursor, or similar tools, check what they save locally and whether those files are in version control.

Conclusion

A convenience feature did exactly what it was designed to do: it remembered an approval so the developer would not be interrupted. The problem is that it remembered the password too, word for word, and nobody noticed until the file was already public. That is the shape of AI security problems in 2026 — not a dramatic hack, but a quiet default that turns a normal workflow into an exposure.

The good news is that the damage is containable, and the fix is mostly in your hands. Search your repositories, remove the file from tracking, and revoke anything that was ever in it. Five minutes now beats a very bad email from your cloud provider later.

And the same discipline applies beyond code. The files on your phone — photos, videos, documents, private notes — deserve the same rule: they should live somewhere only you can open. Pro Calculator Secure Vault keeps them locked behind sign-in protection with an intruder selfie, stored locally on your device with no data collected or shared with third parties. You can see the full collection of apps from the same developer on the ZAS Technologies developer page on Google Play.

Download Pro Calculator Secure Vault on Google Play

No comments:

Post a Comment

Post Top Ad

Pages