Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files
A security report found that Claude Code's local settings files, which cache commands containing plaintext passwords when users select Don't Ask Again, have been accidentally committed to 1,122 public GitHub repositories.
summary is enough The article's core claim is fully unpacked in the discussion, where a Claude team member and researchers debate whether this stems from user error or poor agent UX.
The article could not be read automatically; this analysis is based on the title and discussion.
summary
A security analysis reveals that 1,122 public GitHub repositories contain plaintext passwords saved in Claude Code local configuration files. When users select permission bypass options, Claude stores commands containing credentials in project settings files that can end up committed to source control. Commenters point out that while these files are meant to remain local, agents frequently co-commit them or users blindly run bulk add commands.
key points
- Claude Code stores approved command-line arguments, which can include raw passwords or API keys, inside local settings files when users select prompt exceptions.
- Researchers found 1,122 public GitHub repositories with these files exposed, with Claude itself co-authoring commits that pushed the files in nearly half of the traced cases.
- A representative from the Claude team noted the file is designed to stay local and gitignored by default, arguing that the issue stems from manual file handling and absent secret scanning.
who should read it
Developers and security engineers using AI coding assistants who need to manage credential safety in source control.
discussion skeptical
consensus
Commenters generally agree that while developers bear ultimate responsibility for committing local configuration files, coding agents aggravate the risk by caching raw credentials in plaintext and sometimes co-authoring commits that push them.
pushback
Some commenters argue this is standard developer sloppiness unrelated to AI, noting that humans have always accidentally checked secrets into public repositories.
Boris from the Claude Code team here. Historically Claude Code has not done secret scrubbing (there are many good tools for that), but we are looking into what we can do to prevent this.
That said, a few thoughts:
1. .claude/settings.local.json is meant to stay local. This is not a file you should check into source control. We automatically gitignore it when Claude creates the file, so in this case the files were manually created and checked in (docs: https://code.claude.com/docs/en/settings)
2. Permission rules are old hat. Everyone should be using auto mode instead. It is safer and also …
A member of the Claude Code team explains the intended local scope of the configuration files and recommends enabling native secret scanning.
Generated by an LLM from the article and thread. Check the sources before relying on it.