Claude Code's 'Don't Ask Again' setting leaked secrets to 1,122 repos
Security firm Apiiro says a permission shortcut in Anthropic's coding tool let committed passwords and keys reach public GitHub repositories undetected.
Security research firm Apiiro has reported that a convenience setting in Claude Code, Anthropic’s command-line coding assistant, contributed to secrets such as passwords turning up in 1,122 public files on GitHub. Apiiro published the findings in a blog post, which it titled around the setting’s name, “Don’t Ask Again.”
The setting is designed to reduce friction for developers using an AI coding agent. Normally, Claude Code asks for permission before running actions like committing files or pushing to a remote repository. Once a user selects “don’t ask again” for a given action, the tool stops prompting and carries out that type of action automatically going forward.
Apiiro says that automation is where the risk appears. According to the company, once prompts are turned off, the agent can commit and push code, including files that contain credentials, without a human reviewing each step. Because git commits and pushes happen quickly and often in bulk, Apiiro reports that secrets embedded in code reached public repositories before anyone caught them.
The firm’s blog post does not attribute the underlying mistake to Claude Code deciding to add secrets to a commit; rather, Apiiro frames the issue as a loss of a manual checkpoint that previously caught such errors. The post has drawn significant attention outside Apiiro’s own audience: the discussion thread on Hacker News, linking to the research, had gathered 295 points and 202 comments at the time of writing, according to the Hacker News listing itself.
The source material does not specify which kinds of secrets were most common among the 1,122 files, how Apiiro identified them, when the scanning took place, or whether Anthropic has responded to the findings. It also does not state whether the exposed credentials were later revoked by their owners or how many repositories remained exposed by the time of publication.
What this means
The episode points to a broader tension in coding agents built to reduce repetitive approval steps: the same setting that saves developers time by skipping permission prompts also removes a human checkpoint that might otherwise catch a credential before it reaches a public repository. Apiiro’s research suggests the exposure is a byproduct of workflow design rather than a flaw in how Claude Code writes code, since the secrets originated in the developers’ own files and commits.
What remains unclear from Apiiro’s account is how widespread this pattern is across other AI coding tools that offer similar permission-skipping options, and whether Anthropic plans to change the default behavior of “Don’t Ask Again” in response. The scale of discussion on Hacker News, with over 200 comments, indicates developers are actively debating where the responsibility lies, but the source material does not include a statement from Anthropic addressing the findings.
Sources
apiiro.com