A64/100
Incident · high
Claude Code "Don't Ask Again" approvals leak passwords and keys to public GitHub repositories
Tier A · Patch today – Before you go home
Who’s exposed: Developers using Claude Code's "Don't Ask Again" option who commit approval files to public GitHub repositories
Tier A because: Core infrastructure or popular tool AND secrets exposed
Reach
Attack
Damage
Fix
Popular tool · Secrets exposed
What to do
- Search your repositories for the Claude Code "don't ask again" approval file and remove any credentials stored in it.
- Rotate any passwords or API keys that were typed into approved Claude Code commands and may have been committed publicly.
The Brief
- Passwords and API keys typed into commands approved in Claude Code can be saved word-for-word when a user selects "Yes, and don't ask again".
- The saved approvals are sitting in 1,122 public copies on GitHub, where anyone can read them.
- The reporting refers to Anthropic's AI coding assistant, Claude Code.
Why it matters
Developers who approved commands containing credentials may have leaked those secrets into public repositories, which means exposed keys should be treated as compromised.
The checklist behind the tier
Checklist · 3 of 10 yes
| Yes | Hits tech teams | Claude Code is a developer coding tool used by engineering teams. |
| No | Core infrastructure | A single AI coding assistant product, not shared core infrastructure like OpenSSH or GitHub. |
| Yes | Popular tool | Claude Code is a widely used mainstream AI coding assistant from Anthropic. |
| No | Exploited in the wild | The Hacker News reports exposed secrets in public repos, not observed attacks using the flaw. |
| No | Public exploit | Sources describe the exposure only; no exploit code or step-by-step PoC is reported. |
| No | Remote, no login | Exposure arises from users approving commands; no unauthenticated remote access is described. |
| No | Full takeover | Sources describe credential exposure, not code execution, root access or account takeover. |
| Yes | Secrets exposed | The Hacker News: passwords and API keys typed into approved commands sit in 1,122 public GitHub copies. |
| No | Supply chain | No compromise of a legitimate package, update, build pipeline or signing key is reported. |
| No | No fix yet | Neither source states that a fix is unavailable or incomplete. |
Timeline
Full coverage · 4 sources
- 56 min ago ↗
- 3h ago ↗
DEV Community: ai
Claude Code's "Don't Ask Again" Leaked Developers' Secrets to Public GitHub — Explained Honestly - 23h ago ↗
Hacker News: Front Page
Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files - 2d ago ↗
The Hacker News
Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub
First seen · 4 sources · Full story page · How tiers are decided