“Don’t Ask Again”: How One Click Turned Private Keys Into Public Data
On 6 November 2026, researchers at Apiiro reported a quiet but serious problem in Claude Code, an AI coding assistant. Before running a command, the assistant asks the developer for permission. Sometimes that command contains a password or API key, typed by the developer or taken from a configuration file. If the developer chooses “Yes, and don’t ask again,” the full command, secret included, can be saved in a local settings file. When that file is pushed to GitHub, the secret becomes public.
Apiiro found 2,539 distinct secrets across nearly 2,000 public repositories, linked to 63 organisations. They included cloud admin keys, production database passwords and the password for a medical-records database. One company confirmed its exposed key had been live. Apiiro shared its findings with Anthropic before publishing, and the company has said it is looking into the issue.
When the safety check becomes the leak
There was no attacker and no stolen account. The leak came from a normal approval flow. Asking a human for permission is meant to keep AI under control. Here, the approval itself became the leak. The decision was saved, but its context was not: who approved it, why, for which task, and for how long. A single moment of consent turned into a permanent, portable permission.
The secrets were also hard to catch. Two popular secret scanners missed hundreds of affected files, and 215 were missed by both. Many were passwords placed inside commands, which do not look like standard API keys. Once inside an approved command, the secrets ended up in a place where common tools rarely look.
Keys without owners
The agent in this case did not have its own login. It worked with the developer’s own passwords and keys, and each approved command was saved with the secret inside it. Most of what leaked, such as database passwords, SSH logins and payment tokens, does not ask for a phone code or a fingerprint. Whoever holds the secret can use it. Once these settings files reached public GitHub, the secrets were no longer tied to the developer who approved them. They were readable by anyone.
Follow the permission, not just the password
Apiiro’s first advice is to change every exposed key, but that alone does not fix the cause. The cause was the approval itself. In Claude Code, a “don’t ask again” approval can stay in place across sessions, with the secret still inside it. Organisations using AI agents should treat these approvals like any other access right: review what they allow, limit them, and remove the ones no longer needed. And secrets should be pulled from a secure store when needed, not written into saved commands.
Who is really behind the access?
At Facephi, we see this case as an early sign of a new kind of identity problem. Imagine the database on the other side of one of these leaked passwords. It often sees the same credential every time. It may not be able to tell whether the employee logged in directly, whether a script the employee wrote is running, or whether an AI agent is using the employee’s access. And once the password is public, it may not be able to tell whether a stranger is using it too. This is the question the security industry now faces: not only “is this access allowed?” but “who is really behind it?”
A previous Facephi Observatory analysis on AI Agents and the New Role of the CISO: Who Is Accountable When the System Acts on Its Own? argued that the decisive point in an AI agent’s action comes earlier, when its permissions are granted; in this case, that point was a single click on ‘don’t ask again’. If a company cannot say who accessed its data, it cannot say how far an incident spread, what to report to regulators, or who is responsible. Control means enabling AI to act within precise limits. As AI agents take on more work, knowing who acted will matter as much as knowing what was done.