Claude Code Settings Files Are Leaking Passwords to GitHub
Trill News Briefing
The Story
Claude Code settings files are leaking database passwords, API tokens and root logins into public GitHub repositories, researchers at Apiiro found.
When a developer picks "Yes, and don't ask again" to approve a shell command, Claude Code often writes that command as is, secrets included, into a local file called .claude/settings.local.json.
Anthropic adds that file to the developer's global .gitignore list, but the protection does not carry over to the repository, and Apiiro says Claude Code in many cases commits the file itself.
Apiiro counted more than 100,000 of these files on public GitHub, about 1,100 of them from 63 organizations containing secrets, and 215 of those secrets slipped past the gitleaks and TruffleHog scanners.
The problem was flagged in a bug report as far back as August 2025, and that report and related ones were closed without action after 60 days of inactivity.
Boris Cherny of the Claude Code team said on Hacker News that the team is looking into fixes and is considering building secret scanning into the tool, while arguing such files should pretty much never be checked in and that the cases seemed to involve files that were manually created and checked in.
Removing the file does not necessarily end the exposure, because secrets can persist in forks, so any key that reached GitHub should be treated as burned.
When a developer picks "Yes, and don't ask again" to approve a shell command, Claude Code often writes that command as is, secrets included, into a local file called .claude/settings.local.json.
Anthropic adds that file to the developer's global .gitignore list, but the protection does not carry over to the repository, and Apiiro says Claude Code in many cases commits the file itself.
Apiiro counted more than 100,000 of these files on public GitHub, about 1,100 of them from 63 organizations containing secrets, and 215 of those secrets slipped past the gitleaks and TruffleHog scanners.
The problem was flagged in a bug report as far back as August 2025, and that report and related ones were closed without action after 60 days of inactivity.
Boris Cherny of the Claude Code team said on Hacker News that the team is looking into fixes and is considering building secret scanning into the tool, while arguing such files should pretty much never be checked in and that the cases seemed to involve files that were manually created and checked in.
Removing the file does not necessarily end the exposure, because secrets can persist in forks, so any key that reached GitHub should be treated as burned.
Why It Matters
Claude Code is not the only AI tool leaking through a feature built for speed. Meta paused sharing on its Muse agent after the security firm Claroc enumerated 6,800 share links through passive DNS records, Ars Technica reported. Claroc then found nearly 95 percent of 43,601 Grok Build links open to anyone, exposing medical exams, worker rosters and SpaceXSI's own sales files, Ars Technica reported. The cost falls on the employers whose credentials and records walk out through these shortcuts. Watch whether Anthropic ships the secret scanning Cherny described before the next sweep of public repositories turns up more keys.
Go Deeper
Read the original reporting at Ars Technica.
Read Full Story at Ars Technica →Continue reading
-
Briefing
Windows SignDrop Zero Day Lets Local Users Seize System Rights
-
Briefing
Polymarket Hack Drained Trader Wallets Through a Hijacked DebugBear Monitoring Script
-
Briefing
Hackers Cracked Open a Flock Camera and Found It Watching People Too
-
Briefing
153 Million Driver's License Breach Is a National Security Threat