Claude Code's "don't ask again" option leaked secrets on GitHub
Claude Code saved approved commands, passwords included, in plain text in a local file. Researchers at Apiiro found that credentials ended up in public GitHub repositories.

Choosing "Yes, and don't ask again" in Claude Code can store sensitive credentials in plain text, and some of them have ended up in public GitHub repositories. The issue was uncovered by researchers at Apiiro, who found leaked database passwords, SSH logins, private keys, GitHub tokens and AWS keys.
How the leak happens
To remember a permission, Claude Code writes the literal command to a project file, .claude/settings.local.json. If that command contained a password, the password is saved as-is. The file is meant to stay on the developer's machine, but if it was already committed, or another computer working on the project pushes it, the contents travel to GitHub along with the rest of the code.
Anyone who finds a private API key in a public repository could cause the developer serious financial damage, which is why the exposure matters.
Vibecoding raises the stakes
The behavior is logical: to avoid nagging the user, the tool stores the exact approved command. The risk grows when developers push files without reviewing them. GitHub's Octoverse 2026 report shows how much AI-assisted coding has increased activity: 17.9 billion pushes and 34.3 billion commits in the twelve months to 30 September, with pushes exceeding 2024 and 2025 combined. In September, more than 40% of pull requests originated from an AI agent, up from 17% in March.
Anthropic's response
Anthropic issued no statement, but Boris Cherny, who leads Claude Code, replied on Hacker News. He acknowledged that the tool has never scrubbed secrets from what it saves, and argued the file is designed to stay local. Because Claude Code excludes it from Git when creating it, he says the leaked files were created manually and uploaded later.
Until a definitive fix arrives, Cherny recommends using Claude Code's auto mode and enabling secret scanning on the repository. The team is testing two improvements: auto mode that detects data leakage, and a basic built-in secrets scanner. Neither has a release date.
Apps worth a look
Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.
Talk to an AI conversation partner; every sentence comes back corrected and explained in your language. 9 languages, A1 to C2.
Open EDIFACT and X12 messages, see every segment explained, convert to JSON/XML, export PDF and Excel. Runs locally, no upload.
Pick who it is for, the occasion and their personality. The search engine reads product descriptions from local shops and ranks what fits. Free, no sign-up.
More from this day
See all →
Beget restores first shared hosting sites from backups after attack

ArtCraft Developer Releases Open-Source Word, Excel Clones

Google Releases Gemini 4 Carbon to All Users and Developers

Boston Dynamics puts Atlas humanoid robot on wheels for stress tests
More in: Security
See all →
France Blames Iran's Shahid Kaveh for Supermarket Fridge Hack

Korea's Financial Security Institute Hit by Hack, Data Leaked

Sharefull Breach May Expose Data of Up to 7.5 Million Accounts
