Hold this first: when the prompt shows a whole command, “Don't ask again” writes that command, password or token included, in plaintext into the project’s .claude/settings.local.json. Once the file has been in Git, deleting the working copy leaves the history and the forks. What you can check on the spot is three things: whether your own repositories and the file on this computer still contain that rule, whether the issuer has rotated every key that appeared in it, and whether the text you are about to paste into a ticket or a model still contains plaintext. Do not search the public web with a key that still works.
Answer the search in one sentence
“Don't ask again” remembers the one allow rule from that prompt. It does not store a blanket permission that says this project may run a shell from now on. When the rule keeps the whole command, the password sits in the JSON and is as readable as the rest of that line. Claude Code adds the file to the global Git exclude on this computer. That rule is absent from the project’s own .gitignore, so it does not travel with the repository. After a public copy is deleted, an older file in history, and a fork someone has already cloned, can still show the same key. Rotation finishes at the issuer. Deleting the file changes only the tree in front of you.
This note is for people who just saw the November reports that Claude Code settings had carried secrets onto GitHub, and for developers who let a coding agent run shell commands. It does not replace Apiiro’s research report, and it is not a setup guide for any one scanner. Leave with four checks: which click writes the whole command into the file, why a global exclude misses a copy that is already committed, why a scanner treats a password inside a command as an ordinary word, and why rotation comes before deletion.
What the November count actually records
The news is this public count, not the first time anyone noticed that the file can store a command. The Hacker News wrote on 7 November 2026 that Apiiro had published the search the day before: 104,185 public copies of .claude/settings.local.json, spread across 103,617 repositories. About 1.1 percent, 1,122 files, contained at least one secret, 1,379 distinct values in all. Ars Technica followed the same finding on 9 November, put the file count at about 1,100, and put the organizations at about 63. The figures in the rest of this note follow The Hacker News’s account of the research. Ars is the same-week follow-up used to cross-check that account.
A value counted among those 1,379 had to clear two bars the researchers set themselves. It matched a known secret format, or a password or token sat next to the address of a server on the public internet. An AI reviewer also had to agree. The researchers did not log in with these keys, and they did not say whether anyone had used them. The Hacker News wrote that one organization, notified a few days before publication, confirmed its own key was still valid at that time. “They did not try every key” supports one claim: the public report has no full share of keys that can still log in. It leaves “all of these keys are already dead” unproven. The notified organization is the counterexample already on the page.
Split by type, database passwords are a large block. More than a third of the secrets could open a database directly, and 379 of the values were database passwords. The rest of the writeup includes 43 sets of SSH logins aimed at public servers, 42 GitHub, GitLab, and npm tokens, and 23 AWS keys. The heavier cases named in the reporting are an admin-level cloud key belonging to a database vendor, and an owner password for a medical-records database. The writeup does not publish the organization names. With no name, leave the case as a type. Do not map it onto a company you think you can identify.
Widen the scope and the number changes layer. Do not mix that wider number with “the local settings file I have open.” The shared .claude/settings.json had 76,011 public copies, 298 of them containing secrets, and most of those secrets sat inside allow rules. A shared settings file is one a team meant to commit. Older revisions held another 734 secrets across 509 repositories. Those values are absent from every current copy, usually because the file was deleted later. Forks carry the same secrets farther: 211 forks of 74 repositories held the same secrets as the original. Add older revisions, shared settings, and saved assistant transcripts, and the total is 2,539 secrets in 1,994 repositories. When you quote a number, name the layer.
How a whole command becomes a plaintext rule
Claude Code asks before it runs most shell commands. After you choose “Yes, and don't ask again,” it writes one allow rule into the project’s .claude/settings.local.json. Later commands that match that same rule skip the prompt. The rule covers only the slice the prompt showed. It is not the broader permission you may remember afterward as “this class of command is fine.”
The prompt usually has two shapes. One is a pattern, such as a single test command and its arguments. The other is the exact command from that moment, character for character. When the exact command is saved, the password or token you typed is in the file, and it is plaintext. The researchers found saved commands in public files that still contained secrets, and they reproduced the write with the Opus 5.5 and Fable 5.1 builds they had at the time. The reproduction supports one claim: this click still writes the command into the file. It does not show that every public copy was written by the latest model, and it does not show that the model itself committed the file.
A pattern and an exact command are different rules
A pattern that holds only a command name and a wildcard has no password in the JSON. An exact command, saved as typed, makes the password part of the rule text. After the fact, “I clicked Don't ask again” does not tell you which of the two you approved. Open the file and read the line under permissions.allow. A password, a token, or a connection string on that line is plaintext. A line that contains only a command name proves nothing about other files, or about other revisions of this one.
The researchers compared documentation for 16 coding agents. The only one whose docs say it writes the approved full command into a project file by default is Claude Code. That sentence covers a documentation comparison plus the one product they reproduced. It does not prove the other 15 agents leave no password in some other file or log. Switch agents, and still open the file that agent actually writes to disk.
Why a global exclude does not travel with the repo
Claude Code does try to keep this file out of Git. The first time it creates the file inside a Git repository, it writes the path into the user’s global Git exclude. After that, Git on this computer ignores the file in every repository. The protection stops at this one user on this one computer.
The project’s own .gitignore does not gain a line from that step. The rule does not travel with the repository. If the file was committed before the exclude took effect, the exclude does nothing to that history. The same gap shows up when a folder becomes a repository later, when the repository is cloned onto a computer that lacks this exclude, or when someone forces the add with git add -f. The global exclude is not in the other party’s configuration. Ars Technica described the same hole: a repository-level ignore was never set, so the file can still be uploaded.
Commit metadata supplies a tighter number. Of the 1,105 repositories the researchers traced, 539 had a commit that listed Claude as a co-author and changed this settings file. From that, they read that Claude itself often committed the file. The reading holds only if that co-author metadata really belongs to the change. It does not prove that every secret was first written into the file by the model, and it does not prove that every push went out with no person confirming it. What you can check is your own git log for this path: the author on those commits, and whether the diff contains a whole command.
Why deleting the file does not revoke the key
The Hacker News’s “as of Monday” is 2 November 2026. On that day every file that contained a secret was still on its repository’s default branch, and in half of those repositories the file had already been there for at least 217 days. The default branch is the copy a clone and the website hand you. Two hundred and seventeen days means this is not the rare commit someone deleted a few minutes later. Deleting today’s working copy does not rewrite the disks of people who pulled the file during that half year.
Older revisions split “I already deleted it” a second time. History in 509 repositories still held 734 secrets that the current copy no longer shows, usually because the file was deleted later. The delete succeeded. The current tree looks clean. git show and the website’s history view can still read the old commit. Forks are a third path. The original repository can delete the file while 211 forks of 74 repositories still carry the same secrets. If you do not administer those forks, the delete button on the original does not reach them.
A copy that never reached GitHub is still plaintext. The file is JSON in the project directory. It can also sit in an npm package, a container image, an archive, or a synced folder. The September 2025 Shai-Hulud worm ran TruffleHog on infected computers. The Hacker News wrote that the scanner marked more than half of the files it saw as containing secrets. That sentence is about files scanned on infected machines. It is not the hit rate for these 1,122 public copies. It supports one narrower claim: a password in local JSON can be read by a program that walks developer directories, with no public repository required.
History and a fork each count as a copy
Rotate for every copy where the value ever appeared, not for “whether the current file is still there.” After the issuer revokes or replaces it, the string in history is still there. It can no longer log in. Until that rotation, deleting the file makes the current tree look clean and leaves a still-valid value in history and in forks. The researchers’ order is: rotate every password, token, and key the file ever stored, then clean up. Reverse the order, and the default branch or the history keeps serving plaintext during the gap.
Do not search public GitHub with a database password, a cloud key, or a personal token that still works, and do not commit the value again just to see whether a scanner fires. The check is your own organization, your own history, and the issuer’s rotation page. Sending a live key into a public search only adds another copy.
Why scanners miss a password inside a command
A typical secret scanner matches shapes it has seen: a fixed prefix from one cloud vendor, a token of a known length. A database password on a command line often has none of that shape. It follows an environment-variable assignment, or it follows the password flag of a database client, and it looks like an ordinary word in the command. The Hacker News named the positions PGPASSWORD=, sshpass -p, and mysql -p. The scanner is looking for a secret format. A password in those positions misses the format, so the scanner stays quiet.
The researchers ran gitleaks and TruffleHog across all 1,122 files that contained a secret, with validity checks left off. gitleaks flagged 564. TruffleHog flagged 643. Neither flagged 215. The 215 supports this: on this run, with these two tools, in this configuration, about one fifth of the files that contained a secret were not flagged. It does not support “every scanning product misses these,” and it does not support “a repository with no alert contains no password.” An empty alert means this rule set did not hit.
This miss is a different path from splitting a token into pieces and then committing the pieces. A split removes one continuous string of a known format. The password here never had that format. The whole value is present. It just looks like a command argument. Both paths support a narrower point: a scan result is the output of rules. It is not proof of whether the repository contains plaintext. Read the allow-rule line itself.
Check the copies you are allowed to manage
The steps below look only at repositories you administer, the computer in front of you, and the issuer’s rotation page. The researchers suggest that security teams treat .claude/, .cursor/, .gemini/, .specstory/, and an assistant’s memory files the way they treat .env: a place secrets land, on laptops and in repositories. An organization’s .gitignore template should include .claude/settings.local.json. Those lines prevent the next time. Values already inside still get rotated first.
- Search your own GitHub organization for
.claude/settings.local.jsonand.claude/settings.json. For repositories where the file is already gone from the current branch, read the history of that path. A hit means the text is still there. A miss only means this search did not see it inside the scope you queried. - Take every password, token, and key that appeared in the file or in history to the issuer and rotate it. Change the database account for a database password. Revoke a cloud key at the cloud vendor. Revoke a Git token at the Git host. Finish the rotation before you delete the file and call the job done. If the same password was reused on another service, change that service too.
- Then stop tracking the local file. For a path already in the index, run
git rm --cached .claude/settings.local.json, and add that line to this repository’s own.gitignore. A global exclude can stay. It only covers later adds on this computer. - Even if you never pushed, open the JSON on your computer and delete allow rules that contain a secret. Look once in the project directory, in archives, in image build context, and in synced folders. Local plaintext can be read with no public repository in the path.
- Later commands should name an environment variable or a secret-manager entry, so the rule shows
$DB_URLand the connection string stays out of the file. When you approve, choose a pattern, not the full command that contains the password. If the pattern is wrong, open the file and read the line. The button label is not the check.
Rotate first, then mask the text you are about to paste
If you are about to paste a command or this JSON into a ticket, a chat, or a model, star known secret shapes on this machine before you decide to paste. Open FastPwd Data Redaction. Ready to use, with no signup. Continuous shapes of common API keys, such as ghp_ and AKIA, can be masked in the current tab. Source text is not uploaded as business data and is not written into analytics. The mask covers the span you pasted that matches those shapes.
A database password that is only an ordinary word in a command argument is outside those shapes, so the redaction result can contain no stars at all. No stars proves that this passage missed the rules already written. It does not prove the password was covered. The .claude directory on this computer, Git history, and the issuer’s keys are not in that text box. Masking does not recall a commit that was already pushed, and it does not stand in for rotation.
When a new password has to reach another person, and it must stay out of the repository and out of the model, use Burn-Link. The browser encrypts with AES-256-GCM. The server stores ciphertext only. The key sits after the hash in s.html?id={id}#{key} and is not sent with the HTTP request. Creating and reading need no signup. Do not paste the full link, hash included, back into the assistant’s prompt, and do not write the same password into the next shell command.
Keep a same-week GitHub search in its own layer
The same week carried a separate public note. Microsoft threat intelligence wrote on 5 November 2026 that attackers used agentic tools to look for already exposed secrets on public GitHub and then kept using them. In at least one observed case, the agent went from searching GitHub for secrets to taking data from Azure Key Vault in five minutes. Microsoft’s remediation sentence points the same direction as the settings-file research: a public credential stays usable until it is rotated, and deleting the original exposure from the code does not finish the fix.
Those five minutes show how fast that observed activity was. They do not show that the 1,379 secrets Apiiro counted were the secrets used in that activity, and they do not show that your particular file has been read. The two events share a week and sit in different layers. The settings-file research answers how plaintext entered an allow rule, and what deleting the file leaves behind. The five-minute case answers a different question: once plaintext is already in a public repository, “nobody has had time to look” is a poor reason to delay rotation. Your own rotation record is the evidence for whether this credential still accepts a login.
What you can prove
| What you see | What it can support | What it cannot support |
|---|---|---|
| The file is gone from the current branch | This current tree does not show that JSON | History, forks, and clones someone already has are gone too |
| A global Git exclude ignores it | This computer will, by default, leave later copies of the file out of new commits | Copies already committed, another computer, and this repo’s own .gitignore are covered |
| Both scanners stayed quiet | This run of these two tools, with validity checks off, did not flag the file | A password in a command argument is absent from the repository and from history |
| The researchers did not try the keys | The public report gives no full share of keys that can still log in | The keys are all dead. One notified organization confirmed its key was still valid |
| The redaction result has no stars | The passage you pasted missed the secret shapes already written | An ordinary-word database password was covered, and Git history is clean |
That is as far as this comparison goes. It can support whether the allow rule you opened contains a whole command and a password, whether history and forks you administer still contain the same file, and whether the issuer’s page shows those values as rotated. A local Password Audit does not answer this either. It compares the password, in the browser, with a public list of frequently leaked weak passwords. The password is not uploaded. It is not a full-web breach lookup, and it is not Have I Been Pwned. A random database password can “look unlike a common weak password.” That result does not prove the password never entered settings.local.json, and it does not prove the issuer has revoked it.
It cannot support “everyone who clicked Don't ask again leaked a key,” “all 1,379 secrets can still log in,” or “the five minutes Microsoft observed used these files.” FastPwd’s redaction is shape matching in the current tab. It does not read Git, and it does not claim to cover every password written as a command argument.
FAQ
Does deleting settings.local.json mean the key is already revoked?
No. Older copies stay in Git history, and forks keep carrying the same key. On 2 November every file that contained a secret was still on the default branch, and in half of those repositories the file had been there for at least 217 days. Revocation happens at the issuer. Deleting the current file only changes the copy you can see now. Rotate first, then clean up.
If secret scanning stayed quiet, does that mean the password in the command never entered the repository?
That is the wrong reading. Of the 1,122 files that contained a secret, gitleaks flagged 564 and TruffleHog flagged 643. Neither flagged 215, and this run did not turn on validity checks. Most of the misses were passwords written as command arguments. An empty alert only means this rule set did not hit. Read the allow-rule line, and read the history of that path.
The global Git exclude already ignores this file. Why does it still show up in a public repository?
The first time the file is created, Claude Code writes a global exclude on this computer, not a line in the project’s .gitignore. A copy that was already committed is not covered. A different computer, a folder that became a repository later, or a commit that lists the assistant as co-author and changes this file will not grow that exclude by itself. Of the 1,105 repositories that were traced, 539 had a co-author commit of that kind. That is a commit fact. It is not proof that the exclude was already in force.
If I redact a command in FastPwd, is the database password uploaded, and is it masked?
Per the product notes, masking finishes in the current tab. Source text is not sent as HTTP business data and is not written into analytics. Ready to use, with no account. It recognizes the continuous shape of common API keys. A database password written as an ordinary word in a command argument is not one of those shapes. No stars in the result does not mean the password was covered. The tool also cannot read a local .claude directory, and it cannot recall history that was already pushed. To check whether this page sent the source text, use a fake ghp_ prefix as a canary and search request lines and bodies in DevTools Network.
Walk the boundary with a fake prefix
Prepare a prefix that is obviously fake: ghp_ followed by EXAMPLE, not by a real random body. Put it in a fake allow rule. When the string is continuous, Data Redaction should star it. Then prepare an equally fake word with no known prefix, and put that word in the command-argument position. If that line is not starred, you are looking at the same gap as the public scan: the rule matches a shape. It does not match the label “this is a password.” Push neither fake value to any remote, and do not log in with either of them.
The second step happens only at the issuer. If a real password or token appears in the current file, in history, in a fork, in an image, or in a chat you already pasted, rotate it, and see what that credential can still reach. FastPwd’s password generator can create a random string of 6–128 characters in the browser, default 16. Shorter than 8 is flagged as weaker. That string is material for a new password. The computation stays in the browser. Revocation is still a click on the issuer’s side.
The point of the two steps is not to prove that some scanner now understands passwords inside commands. It is to leave you, before you delete the file, with a comparison you can hold: the plaintext in the allow rule, the issuer’s rotation status, and the text that is about to enter a ticket or a prompt. Swap in any coding agent and the steps still apply. After you click Don't ask again, open that JSON first.
Further reading
If the question is why a scanner can stay silent after a token is split into pieces, read An agent split a GitHub token into pieces, then pushed. Why secret scanning can stay silent. That case is a known format broken apart. This one is a password that never looked like that format. If the question is which fields leave this machine before you paste them into a model, read Before you paste tickets and logs into AI, check which fields leave this machine. To see whether the redaction page’s own request contains the source text, walk the same canary through Network: How to check if browser encryption never uploaded plaintext.