{"id":234319,"date":"2026-11-09T19:18:13","date_gmt":"2026-11-09T19:18:13","guid":{"rendered":"https:\/\/www.europesays.com\/ai\/234319\/"},"modified":"2026-11-09T19:18:13","modified_gmt":"2026-11-09T19:18:13","slug":"claude-code-settings-file-leaks-passwords-and-api-keys-across-public-github-repos-biggo-finance","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ai\/234319\/","title":{"rendered":"Claude Code Settings File Leaks Passwords and API Keys Across Public GitHub Repos \u2014 BigGo Finance"},"content":{"rendered":"<p>A design quirk in Anthropic&#8217;s Claude Code coding agent is quietly pushing sensitive credentials onto public GitHub repositories, according to security researchers at Apiiro, who traced thousands of exposed secrets back to the tool&#8217;s local configuration file.<\/p>\n<p>The problem centers on how Claude Code records the permissions developers grant it. When a user approves an automated shell command and selects the &#8220;Yes, and don&#8217;t ask again&#8221; option, the tool writes that approval into a project-level file named .claude\/settings.local.json. The entry is sometimes stored as a pattern, but frequently the full command is saved verbatim, including any password, token or private key embedded in it.<\/p>\n<p>On its own, that is harmless as long as the file stays on the developer&#8217;s machine. Anthropic&#8217;s documentation states that the file is added to the developer&#8217;s global .gitignore list, which normally keeps it out of version control. The gap is that this exclusion is not enforced at the repository level, so the file can still be committed and pushed if a repo is cloned to another machine or if a folder is turned into a repo after the fact. In many instances, Claude Code commits changes to the settings file without any user action at all.<\/p>\n<p>Apiiro found 104,185 instances of the settings file published on public GitHub repositories. Of those, 1,122 files contained 1,379 secrets, and the researchers tallied 2,539 exposed secrets in total once they also examined Git commit histories, team-shared configuration files and conversation logs. The haul included database passwords, cloud service authentication keys and API tokens linked to 63 organizations. Among the exposures were an administrator password for a database handling medical records and production credentials for a payment service.<\/p>\n<p>MeasureCountPublic .claude\/settings.local.json files found on GitHub104,185Files containing secrets1,122Secrets in those settings files1,379Total secrets found across all vectors2,539Organizations linked to exposed secrets63Secrets missed by two popular scanners215<\/p>\n<p>API tokens were the most common category at 398, followed by database passwords at 379. Larger files carried greater risk: among settings files of 8KB or more, 9.9% contained a secret.<\/p>\n<p>Even after a file is spotted and deleted, the credentials can survive in forks of the original project, leaving copies behind for anyone who looks.<\/p>\n<p>The issue is not new. A Claude Code bug report flagged it as far back as August 2025, and other reports noted that the settings file was sometimes left out of the .gitignore list or that sensitive commands were written to a different, unprotected file. Those reports were closed without action after 60 days of inactivity.<\/p>\n<p>Boris Cherny, who leads Claude Code, addressed the findings in a Hacker News thread over the weekend, saying the team is &#8220;looking into what we can do to prevent this.&#8221; He maintained that the settings files should essentially never be checked into source control and that the cases appeared to arise only when &#8220;the files were manually created and checked in.&#8221;<\/p>\n<p>Cherny pointed users toward Claude Code&#8217;s auto mode, which relies on classifiers to route routine permission prompts automatically rather than requiring developers to hand-maintain allow and deny lists. When another commenter pointed out that sensitive commands can still be saved to settings files in auto mode, he called it a &#8220;good catch&#8221; and said the team is &#8220;thinking through what we can do to improve this.&#8221;<\/p>\n<p>He also urged users to run secret scanners over their files and said the company is weighing whether to build scanning directly into Claude Code. That safeguard has limits of its own: Apiiro&#8217;s researchers found that 215 of the roughly 1,100 secrets it identified in settings files went undetected by gitleaks and TruffleHog, two widely used scanning tools. Because passwords are recorded as part of an ordinary command rather than in a recognizable key format, pattern-based detectors often miss them.<\/p>\n<p>The researchers recommend auditing whether the settings file has been pushed to GitHub and avoiding plain-text passwords in commands by using environment variables instead. Where a leak is confirmed, deleting the file is not enough; any credentials left in the public history should be revoked and reissued.<\/p>\n<p>The Claude Code episode fits a broader pattern of AI agents mishandling sensitive data. Last month, Meta suspended the sharing feature on its Muse agent after security researchers showed that the URLs behind shared links could be guessed with little effort.<\/p>\n<p>For Anthropic, the disclosure lands at an awkward moment, as agentic coding tools spread through enterprise development teams. A leak path that runs through the tool&#8217;s own convenience features, rather than through an external attacker, is harder to patch with a single fix: it requires coordinating local settings, repository-level protections and secret detection. Developers running Claude Code on shared or cloned repositories should assume that anything typed into an approved command may end up in version control, and security teams should scan commit histories, not just current file trees, for the settings file and any credentials it carries.<\/p>\n","protected":false},"excerpt":{"rendered":"A design quirk in Anthropic&#8217;s Claude Code coding agent is quietly pushing sensitive credentials onto public GitHub repositories,&hellip;\n","protected":false},"author":2,"featured_media":234320,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[53,3154,105150,8515,182,2798,3282,105151,1122,1311,105152],"class_list":["post-234319","post","type-post","status-publish","format-standard","has-post-thumbnail","category-anthropic","tag-anthropic","tag-anthropic-claude","tag-apiiro","tag-boris-cherny","tag-claude","tag-claude-code","tag-github","tag-gitleaks","tag-meta","tag-muse","tag-trufflehog"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/234319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/comments?post=234319"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/234319\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media\/234320"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media?parent=234319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/categories?post=234319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/tags?post=234319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}