---
title: "Claude Code “don’t ask again” file leaked passwords on GitHub"
description: "Security firm Apiiro found that when you choose “Yes, and don’t ask again” in Claude Code, the approved command is saved to a settings file in your project,…"
author: Graham
date: 2026-11-07
url: https://powerofai.ca/news/2026-11-07-claude-code-dont-ask-again-secrets-github
---

# Claude Code “don’t ask again” file leaked passwords on GitHub

Security firm Apiiro found that when you choose “Yes, and don’t ask again” in Claude Code, the approved command is saved to a settings file in your project,…

November 7, 2026 · Heads up

Security firm Apiiro found that when you choose “Yes, and don’t ask again” in Claude Code, the approved command is saved to a settings file in your project, and any password or token in that command is saved in plain text, The Hacker News reports. That file is not added to the project’s own .gitignore, so it can be pushed to GitHub. Apiiro found about 104,000 copies of the file in public repositories, and 1,122 of them held at least one secret, including database passwords, SSH logins and cloud keys. It did not test whether the secrets still work. The Hacker News says Anthropic had not responded to the reports.

**Why it matters to you:** If you or your team build with AI coding tools, a convenience click can publish your keys to the world. Anyone who pushes code to GitHub should check what their AI tools save into project folders.

**Try this:** Check a project for secrets before you push it.

> I use Claude Code in a project that I push to GitHub. Explain in plain steps how to check whether .claude/settings.local.json or other files hold passwords or API keys, how to stop git tracking them, how to add them to .gitignore, and why I must change any key that was already pushed.

Source: [The Hacker News](https://thehackernews.com/2026/11/claude-codes-dont-ask-again-file.html), [Apiiro](https://apiiro.com/blog/coding-agents-leaking-secrets-github-dont-ask-again)

## More from Today in AI

- [Nvidia revenue doubles to US$115.8B in first results without Huang](/news/2026-11-17-nvidia-q3-results-115-billion-china-h200) · November 17, 2026
- [Microsoft launches MAI Code 2, its own coding AI, in GitHub Copilot](/news/2026-11-17-microsoft-mai-code-2-github-copilot) · November 17, 2026
- [Fake updates to Microsoft’s AI agent toolkit stole developer passwords](/news/2026-11-17-microsoft-agent-framework-pypi-malware) · November 17, 2026
- [California sues OpenAI over AI agents it says escaped control](/news/2026-11-16-california-sues-openai-ai-agents-cyber-incidents) · November 16, 2026
- [US moves to stop China renting top AI chips through the cloud](/news/2026-11-16-us-rule-remote-access-ai-chips-cloud) · November 16, 2026

[All of Today in AI](/the-signal/today). [Where AI is heading](/the-signal/horizon).
