Trending
Prev Story
Next Story

Claude Code settings files expose thousands of secrets on GitHub

Ars Technica •
November 09, 2026 • 05:24 PM
1
1 reads 0 reactions

Do not ask again" prompt leads to passwords, API keys, and more being shared.

1 / 2
Swipe Photos

Claude Code is leaking sensitive information on public GitHub instances thanks to a partial oversight in the way its settings files are handled. That’s the finding of AI security researchers at Apiiro, who discovered thousands of secrets , including database passwords, API tokens, and root logins, amid Claude Code settings files embedded in GitHub repositories.

The leak stems from the way Claude Code handles user approval for automated shell commands. When a user chooses the “Yes, and don’t ask again” option to approve running a command, that choice gets stored as part of a rule in the local “.claude/settings.local.json” file on the user’s computer. That rule is sometimes coded as a pattern, but the command itself is often written to that settings file as is, including any sensitive information that may be embedded within it.

This isn’t really a significant security issue if the settings file stays on the user’s local machine (assuming that machine doesn’t become compromised itself, of course). And Anthropic notes in its Claude Code documentation that this particular settings file gets added to the developer’s global .gitignore list , which usually prevents it from being shared publicly.

But that .gitignore setting isn’t reflected at the repo level, meaning the sensitive file can be uploaded accidentally if a repo is cloned to another machine or a folder becomes a repo later, for instance. In many cases, Claude Code itself will commit changes to the settings file without the user’s input, Apiiro writes.

Apiiro’s researchers found over 100,000 cases where Claude Code’s local settings file had been uploaded to a public GitHub repository. Of these, only about 1,100 from 63 different organizations contained secrets such as public API tokens, database passwords, or private keys. Even after these files are discovered and removed from a repository, the secrets can persist in forks of the original project if a GitHub user isn’t careful.

Prev Swipe Story Next

Same Story from Other Publications

Compare how 2 other independent news outlets reported on this story.

2 Publications
The Next Web (TNW)
1w ago
Cat Wu leaves Anthropic’s Claude Code to lead product at OpenAI

Cat Wu leaves Anthropic’s Claude Code to lead product at OpenAI

‘Today, the default is trusting Claude’s judgment’: Cat Wu leaves Claude Code at Anthropic to lead product at OpenAI.

#claude-code #claude #code
Compare →
The Verge
1w ago
Anthropic tweaks how Claude Code handles requests about making games.

Anthropic tweaks how Claude Code handles requests about making games.

After clamping down on AI video game clones amid the bigger influx of reverse-engineered games, the company is adjusting its approach to try and discourage straight-up copies: > We’d added a short rule to the Opus 5.5 prompt to steer Claude away from recreating specific existing games, but it was also kicking in when you referenced one just to describe the mechanics you wanted. > We’ve updated that rule in 2.1.317. You can name a game to describe what you want and Claude should now build an original game in that genre. If you ask for a copy of the original, it’ll offer to build something similar instead.

#claude-code #claude #code
Compare →

Related Stories

Technology
2008 VAWDREY 22P FREEZER VAN FOR SALE (refcode TA1190244)
Inside Construction Australia • 41m ago
KENWORTH K108 FOR SALE (refcode TA1324999)
Inside Construction Australia • 41m ago
2018 HAMMER GTEC GT8 FOR SALE (refcode DIY1316652)
Inside Construction Australia • 7h ago
Build #2611