Claude Code AI tool exposed thousands of secrets on GitHub
A flaw in Anthropic’s Claude Code saved approved commands in plain text, leaking passwords and API keys to public repositories.

KEY POINTS
- Claude Code exposed passwords and API keys on public GitHub repositories
- Apiiro found 2,539 real credentials across 1,994 repositories affecting 63 organizations
- The leak occurs when developers approve commands with “Yes, and don’t ask again”
- The settings file is saved in plain text and is not protected by the project’s own .gitignore
- Anthropic had not released a fix as of 8 November
Security firm Apiiro discovered that Anthropic’s Claude Code exposed thousands of passwords, API tokens, and server credentials on public GitHub repositories. The issue involves commands approved by developers and stored in local configuration files.
Researchers found 2,539 real credentials across 1,994 public repositories, affecting 63 organizations. The exposed material included database passwords, SSH logins, cloud keys, and software tokens.
“The only response reported so far comes from Boris Cherny of the Claude Code team, replying on Hacker News.”
The leak happens because Claude Code saves commands in a file called .claude/settings.local.json when a developer chooses “Yes, and don’t ask again.” This file can contain secrets in plain text inside the project folder.
Although Claude Code adds the file to a global ignore list, it does not add it to the project’s own .gitignore. As a result, the file can be committed when a folder is shared, cloned, or set up to use Git.
Apiiro identified 104,185 public copies of the settings file, of which 1,122 contained at least one real secret. In total, 1,379 distinct secrets were found in those files.
When git history and other files are included, the total rises to 2,539 secrets across 1,994 repositories. The secrets belonged mostly to software companies.
Anthropic had not published a fix as of 8 November. A member of the Claude Code team responded on Hacker News, saying the file is ignored automatically when Claude creates it.
2 more sources below
COMMENTS (0)
No comments yet. Be the first.
RELATED STORIES

Turkey ranks second worldwide in carbon-accredited airports, minister says at COP31
Transport Minister Abdulkadir Uraloğlu said 45 DHMI-operated airports hold carbon accreditation certificates at various levels.

Greek Defense Minister Opens Conference on Western Balkans Security Role
Nikos Dendias says integrating Western Balkans into Europe is essential for regional stability.

Brazil fines Meta $1.3 million over election order violations
Brazil's top electoral court fined Meta for failing to comply with judicial orders during the presidential campaign, while finding no proof of deliberate interference.
- Greek PM launches Railway.gov.gr digital platform for real-time train tracking
- Three Contract Workers Die in Toxic Gas Incident at Tata Plant Near Hosur
- Microsoft urges Trump administration to halt Chinese optical transceiver ban
- Mamdani Announces $25 Million Winter Emergency Plan for New York City
- Brazil asks removal of 348 influencer profiles over illegal betting ads
This page was compiled with AI assistance from the outlets named above and passed an automated language check before publication. Montegre has no reporters of its own; the byline names the outlets the story was compiled from. Method and editorial standards