International
The Morning Dev

Only the news worth knowing

‹
 
A64/100

Vulnerability · high

Claude Code settings and secrets exposed in public GitHub repositories

Tier A · Patch today – Before you go home

Who’s exposed: Developers whose Claude Code settings files are committed 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

  1. Check public repositories for committed Claude Code settings files and remove any credentials they contain.
  2. Rotate any secrets or database passwords that may have been exposed.

The Brief

  • Apiiro researchers found that Claude Code leaks sensitive data to public GitHub repositories because of a partial oversight in how its settings files are handled.
  • They found thousands of secrets, including database passwords.
  • Dark Reading reports that a Claude Code command inadvertently saves files containing credentials to public Git repositories.

Why it matters

Developers who use Claude Code may have credentials committed to public GitHub repositories without realising it, which can expose databases and services to attackers.

The checklist behind the tier

Checklist · 3 of 10 yes
YesHits tech teamsJudgment: Claude Code is a developer tool used by engineering teams.
NoCore infrastructureJudgment: a single vendor's AI coding tool, not foundational software like OpenSSH or GitHub.
YesPopular toolJudgment: Claude Code is a widely used mainstream developer tool.
NoExploited in the wildDarkreading: a command inadvertently saves credentials to public repos; no attacks reported.
NoPublic exploitArs Technica: Apiiro researchers found exposed secrets; no exploit code or PoC mentioned.
NoRemote, no loginArs Technica: accidental leakage via settings files; no unauthenticated remote attack described.
NoFull takeoverArs Technica: secrets such as database passwords and API keys exposed; no code execution or takeover described.
YesSecrets exposedArs Technica: Apiiro discovered thousands of secrets, including database passwords and API keys, exposed on GitHub.
NoSupply chainDarkreading: a command in Claude Code saves sensitive files to repos; no compromised package or pipeline.
NoNo fix yetNeither source states whether a fix has been shipped or is unavailable.

Timeline

  1. The Hacker News

    Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub

  2. Hacker News: Front Page

    Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files

  3. DEV Community: ai

    Claude Code's "Don't Ask Again" Leaked Developers' Secrets to Public GitHub — Explained Honestly

  4. DEV Community: ai

    Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files

  5. Apiiro findings on Claude Code secret exposure reported by Ars Technica

  6. AI - Ars Technica

    Claude Code is accidentally exposing secrets all over GitHub

  7. darkreading

    AI Coding Agents Leak Thousands of Secrets to GitHub

  8. Hacker News

    5 points · 1 comments

  9. DEV Community: ai

    $1.5T Valuation, Zero .gitignore: How Claude Code Leaked 2,539 Live Secrets to GitHub

Full coverage · 7 sources

What developers are saying

Based on 1 comments

First seen · 7 sources · 1 comments · Full story page · How tiers are decided