AI Weekly Malaysia

Back to items Summaries

Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files

ID
44239
Status
summarized
Published
08 Nov 2026, 4:45 AM
Fetched
08 Nov 2026, 1:17 PM
Provider
Hacker News
Category
dev-community
Original URL
https://apiiro.com/blog/coding-agents-leaking-secrets-github-dont-ask-again
Source URL
https://hnrss.org/best

Summary

Score
8.5
Created
08 Nov 2026, 1:17 PM
Tags
Audience
developersvibe_codersai_agent_userssaas_startup_founders

What happened

Apiiro found 2,539 real secrets across 1,994 public GitHub repositories, including a database vendor's admin-level cloud key, a production Azure Postgres password, a Square production token, and a medical-records database owner password; 63 organizations were affected. The leak path is Claude Code's 'Yes, and don't ask again': it saves the exact approved command, secret included, into .claude/settings.local.json, and 1,122 of 104,185 public copies of that file held a real secret, with 1,160 more found in git history.

Why it matters

If you use Claude Code or another agent that persists approved commands, treat .claude/settings.local.json as a secret-bearing file: add it to .gitignore, scan repos and git history for it, and rotate any cloud, database, API, or SSH credentials that ever appeared in an approved command. The report's 63 affected organizations and one confirmed live key make this a concrete cleanup task, not a theoretical warning.

Discussion angle

What should coding agents do by default when an approved command contains a credential: redact it before persisting, refuse to save 'don't ask again', or require an explicit secret-scanning step before commit?

Top