#code's
Claude Code’s “Yes, and Don’t Ask Again” Option Can Leak Passwords and API Keys to GitHub
Claude Code’s “Yes, and Don’t Ask Again” Option Can Leak Passwords and API Keys to GitHub
Claude Code’s “Yes, and don’t ask again” option can save passwords and API keys inside project settings that later reach public GitHub repositories. Apiiro researchers found 2,539 distinct secrets across 1,994 public repositories, showing how a routine approval can turn private credentials into public data. The research identified 63 affected organizations, mostly software companies. Exposed credentials included a database vendor’s admin-level cloud key, a production Azure PostgreSQL password, a Square production token, and the owner password for a medical-records database. Apiiro said one company confirmed its exposed key had been live. The leak starts during ordinary development work. A developer asks Claude Code to check a database, test an API, or troubleshoot a failed login. Claude prepares a shell command containing a credential from a configuration file, then asks for permission before running it. Choosing “Yes, and don’t ask again” can store that command, including its secret, in .claude/settings.local.json . The command becomes an allow rule, letting Claude Code run it again without another prompt. The danger comes when that local file is committed and pushed to GitHub. Claude Code does try to prevent this. When it first writes the file inside a Git repository, it adds an exclusion to the developer’s global Git ignore file. However, that protection does not travel with the project, cover files already tracked, or reliably protect a folder turned into a repository later. Local Approvals Become Public Secrets Apiiro’s research examined 104,185 public copies of .claude/settings.local.json . Researchers found real secrets in 1,122 files, holding 1,379 distinct credentials. Checking earlier commits, shared settings, and agent transcripts brought the total to 2,539. Collection took place November 1–3, 2026. Anthropic’s settings documentation confirms that standing approvals are saved in the local settings file. Its permissions guide explains that shell approvals can persist across sessions. A GitHub issue reported plaintext credential storage in approved commands as early as August 2025. The distinction matters. This exposure does not require a malicious prompt or a stolen account. It follows a normal approval flow. Earlier Claude Code configuration vulnerabilities involved attackers changing project settings to steal API keys, but this finding concerns secrets recorded during legitimate work. Apiiro found that databases accounted for a large share of exposed access, including 379 database passwords and 122 Supabase service-role keys. Other findings included cloud credentials, private keys, package-registry tokens, and 43 SSH logins. Some SSH commands contained root passwords. Standard scanning did not catch everything. Of the 1,122 affected local settings files, Gitleaks flagged 564 and TruffleHog flagged 643. Neither tool flagged 215 files. Passwords embedded after PGPASSWORD= , sshpass -p , or inside request headers often lack the clear formats used to recognize provider-issued keys. Keeping these files off GitHub also leaves a local risk. Malware can read plaintext settings on compromised laptops. The Shai-Hulud npm supply-chain attack already demonstrated how attackers use TruffleHog to search developer files for credentials. That history makes agent approval files a practical target, not just a publishing mistake. Developers should search current files and Git history for .claude/settings.local.json and inspect shared .claude/settings.json files. Review allow rules for passwords, tokens, connection strings, and authorization headers. Apiiro also found secrets in saved agent conversations, memory files, and deployment notes. The first response is rotation, not deletion. Revoke exposed credentials before removing files or rewriting history. Untrack local settings with git rm --cached .claude/settings.local.json and add the path to the repository’s .gitignore . Use secret-manager references rather than literal passwords in commands. Security teams should scan agent folders and history, with checks for command-embedded passwords as well as recognizable API keys. The post Claude Code’s “Yes, and Don’t Ask Again” Option Can Leak Passwords and API Keys to GitHub appeared first on Cyber Security News .
cybersecuritynews.com
November 7, 2026 at 8:37 AM
honig wach auf, die neue footgun für slopcoder ist da

"Apiiro researchers found 2,539 distinct secrets across 1,994 public repositories, showing how a routine approval can turn private credentials into public data."
Claude Code's "Yes, and Don't Ask Again" Option Can Leak Passwords and API Keys to GitHub
Claude Code’s “Yes, and don’t ask again” option can save passwords and API keys inside project settings that later reach public GitHub repositories.
cybersecuritynews.com
November 7, 2026 at 6:37 PM
Boruto's cut to Code's mouth was such a well-drawn panel!
November 9, 2026 at 12:25 PM
does Claude Code's "dynamic workflow" count as a swarm?
November 6, 2026 at 3:09 PM
Claude Code's "Don't Ask Again" Feature Exposes 2,539 Secrets Across 1,994 GitHub Repositories gbhackers.com/claude-codes...
Claude Code's "Don't Ask Again" Feature Exposes 2,539 Secrets Across 1,994 GitHub Repositories
A newly identified 2,539 distinct secrets across 1,994 public GitHub repositories, tracing exposure to coding-agent configuration files, Git history, and saved transcripts.
gbhackers.com
November 8, 2026 at 12:51 PM
Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub #cybersecurity #hacking #news #infosec #security #technology #privacy thehackernews.com/20...
November 7, 2026 at 10:39 AM
De tingene som info og cybersec folk kontinuerlig advarer om ved å bruke AI i koding har skjedd whaaat no way
November 7, 2026 at 10:01 PM
"But it's gotten really good at coding."
Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub
Claude Code saves secrets in approved commands, exposing 2,539 credentials across 1,994 public GitHub repositories, Apiiro finds.
thehackernews.com
November 9, 2026 at 4:31 AM
Claude Code has been storing developer passwords in plain text files, which in some cases have ended up on Github.

Anthropic: Our large language models are the future of infosec!

Also Anthropic: Claude Code's "don't ask again" feature saved passwords, API keys and SSH logins in plain text to […]
Original post on mastodon.social
mastodon.social
November 9, 2026 at 5:52 AM
Claude Code's Don't Show Again Option Leaks Secrets to GitHub, Apiiro Finds 2,539

Claude Code's "Don't show again" writes the allowed command, passwords included, into .claude/settings.local.json.
November 9, 2026 at 3:43 AM
TokenEconomizer: Microsoft's Free Plugin That Cut Claude Code's Cost | NeoTechPark #zenn
https://zenn.dev/neotechpark/articles/6193867acb6073
TokenEconomizer: Microsoft's Free Plugin That Cut Claude Code's Cost
zenn.dev
November 9, 2026 at 3:03 AM
Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files https://apiiro.com/blog/coding-agents-leaking-secrets-github-dont-ask-again

comments #apiiro.com
November 8, 2026 at 10:00 AM
Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files [Discussion]
Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files
Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files
apiiro.com
November 8, 2026 at 3:52 AM
May I submit, on my generation and area code's behalf:

youtu.be/yTLn6fN2xNs
Afroman - Mississippi (OFFICIAL AUDIO)
YouTube video by ogafroman
youtu.be
November 5, 2026 at 8:25 PM
Claude Code's "Don't Ask Again" Is a Security Nightmare.. - YouTube www.youtube.com/watch?v=_BCQ...
Claude Code's "Don't Ask Again" Is a Security Nightmare..
YouTube video by SavvyNik
www.youtube.com
November 8, 2026 at 9:07 AM
Claude Code’s game refusal feels broad enough to be a problem
https://papoo.work/doc/9ac8341a10875c9e
#claudenews #anthropic #claude #games
Claude Code’s game refusal feels broad enough to be a problem
papoo.work
November 8, 2026 at 4:46 PM
Claude Code’s game refusal feels broad enough to be a problem
https://papoo.work/doc/9ac8341a10875c9e
#claudenews #anthropic #claude #games
Claude Code’s game refusal feels broad enough to be a problem
papoo.work
November 8, 2026 at 4:39 PM
Claude Code’s game refusal feels broad enough to be a problem
https://papoo.work/doc/9ac8341a10875c9e
#claudenews #anthropic #claude #games
Claude Code’s game refusal feels broad enough to be a problem
papoo.work
November 8, 2026 at 3:08 PM
Claude Code’s game refusal feels broad enough to be a problem
https://papoo.work/doc/9ac8341a10875c9e
#claudenews #anthropic #claude #games
Claude Code’s game refusal feels broad enough to be a problem
papoo.work
November 8, 2026 at 2:00 PM
T3 Code's impact, visualized
RT @_mwallner: AI fundamentally changed, how I work the last 12 months. T3 Code turned me from a $20/mo Claude user into a $200/mo one.

@theo isn’t promoting Anthropic. He’s doing something worse: making it impossible not to subscribe them.

Genuinely the biggest workflow shift of my year.
November 6, 2026 at 12:30 PM