thehackernews.com·7 november 2026

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

Image for the article: Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub
Image via thehackernews.com

Developers using Anthropic's Claude Code AI assistant risked exposing passwords and API keys in public GitHub repositories. The assistant saves approved commands, including secrets, in a project settings file when users select 'Yes, and don't ask again'. Security firm Apiiro found 1,122 public copies of this file containing at least one secret, with some still active. The researchers advise rotating all affected credentials and removing the file from git history to prevent further leaks.