Coding Agents Copy Your Secrets to a Hidden File. Thousands Are on GitHub
Apiiro found exposed credentials in public repositories containing Claude Code approval settings and described a response from Anthropic’s Claude Code lead.
TL;DR
- Apiiro said its scan found 1,122 files among 104,185 public copies of a Claude Code settings file that contained a real secret.
- The report counted 2,539 distinct secrets across 1,994 repositories after including file history and other agent-related files.
- Anthropic’s Claude Code lead said the team was looking into prevention options and would prototype several approaches, without giving a shipping date.
Apiiro reported finding 1,122 files containing a real secret among 104,185 public copies of `.claude/settings.local.json` on GitHub. The company said the file can record commands approved with “don’t ask again,” including credentials embedded in those commands. [1]
Across current files, repository history and other agent-related files, Apiiro counted 2,539 distinct secrets in 1,994 repositories. It said these included passwords, API tokens, cloud keys and SSH credentials; the study used read-only public GitHub data collected in early November. [1]
Apiiro said its researchers notified Anthropic before publication. Boris Cherny, Anthropic’s head of Claude Code, responded in a Hacker News discussion that the team was considering options such as secret scanning and checks in auto mode, and would prototype ideas to assess trade-offs. [1] [2]
The response did not include a release date or a commitment to ship a specific safeguard. Apiiro also said it did not use or test the credentials; its “real secret” classification means a value matched a key format or appeared with a public host, not that the credential was confirmed valid. [1] [2]
Why it matters
The report ties coding-agent permission records to a concrete software supply-chain exposure surface. Anthropic’s public response signals review and prototyping, but the scope and timing of any product change remain open.
Editor's note
Added in the 19:00 KST pass. Apiiro’s dataset is a read-only scan and does not establish that every identified credential remained valid; the company explicitly says it did not test credentials.