Claude Code Security Flaw Exposes Thousands of API Keys and Passwords on GitHub
An automation feature in Anthropic's Claude Code is inadvertently leaking sensitive credentials into public GitHub repositories.
🛡️CyberPhoto: The Hacker News
Key points
- Claude Code saves full commands, including secrets, in local JSON files.
- Over 1,100 public repositories were found to contain exposed credentials.
- Git history and forks make remediating these leaks difficult.
Security researchers at Apiiro have uncovered a significant vulnerability in Claude Code, an AI coding assistant. When users enable the "Don't Ask Again" feature, the tool saves executed commands into a local configuration file, .claude/settings.local.json. If a developer includes a password or API key within a command, that sensitive information is stored in plain text.
The investigation revealed that 1,122 public GitHub repositories contain at least one leaked secret. In total, researchers identified over 2,500 compromised credentials, including database passwords, SSH keys, and cloud service tokens. Because the file is often committed to version control, removing it does not fully resolve the leak, as the secrets persist in git history and repository forks.
The issue is exacerbated by the fact that Claude Code does not automatically add the file to a project's .gitignore, relying instead on local git settings that do not transfer with the project. Despite prior bug reports from users, Anthropic's automated systems have reportedly closed these issues without intervention.
Source The Hacker News — thehackernews.com/2026/11/claude-codes-dont-ask-again-file.html ↗
Read next
📈BusinessTrump Administration Pressures Intel and Nvidia, Sparking Concerns Over State Control
Newly unsealed court documents reveal aggressive government pressure on Intel and Nvidia, shifting tech policy toward direct state stakes.
🚀SpaceUkraine braces for another difficult winter amid ongoing attacks on energy infrastructure
Ukrainians are preparing for a harsh winter as continuous strikes on energy facilities and rising food prices strain households.
🔬ScienceBiomolecular analysis reveals centuries-old embalming recipes for Egyptian crocodile mummies
A study of ancient Egyptian crocodile mummies shows that embalmers used the exact same beeswax and pine resin recipe centuries apart at a single site.
💻TechAstronomers Witness Rare Stellar Merger as Red Giant Devours Companion Star
An international team of researchers used advanced ground- and space-based telescopes to document a rare cosmic event where a massive red giant swallowed its smaller stel…
🌍WorldNATO Fighter Jets Scrambled After Drone Enters Latvian Airspace
Latvian armed forces deployed Alliance aircraft and interceptors following a brief border breach by an unidentified unmanned aerial vehicle.
🔬ScienceBacterial colonies turn themselves inside out when oxygen is scarce
An international research team discovered that Neisseria gonorrhoeae bacteria respond to oxygen depletion in the colony's center by reducing cell adhesion, triggering a p…