Zhidaily AI · Intelligence · Daily
Zhidaily
Issue 9 · November 8, 2026 · Sun
Today's stories
16 stories · 6 companies
Home / November 8, 2026 / Report finds 1,122 public GitHub files with credentials left by Claude Code's "Don't Ask Again"
← Back
News Safety / Agents · Anthropic Score62

Report finds 1,122 public GitHub files with credentials left by Claude Code's "Don't Ask Again"

Hacker News shmulc · Hacker News · apiiro.com
Nov 8 · 04:45 Read the original ↗
01Summary

A report from security firm Apiiro says 1,122 files in public GitHub repositories contain credentials left behind after commands were approved through Claude Code's "Don't Ask Again" option. Boris, an engineer on the Claude Code team, responded in the discussion that `.claude/settings.local.json` is meant to stay local and that Claude adds it to gitignore automatically when creating it; the repositories involved were created and committed manually by users. He acknowledged Claude Code had not previously done secret cleanup and said safeguards are being studied. Community comments say the headline overstates the mechanism: exposure requires a user to commit and publish a local settings file containing plaintext keys, and a single click on "Don't Ask Again" does not itself expose passwords.

02Background

A daily report on Zhidaily dated November 5, 2026 covered a GitHub issue stating that Claude Code leaked identity information such as user email addresses to visited websites through request headers, and an Anthropic employee responded that a built-in plugin, cc-plugin-privacy, had been added in version 2.1.317 and later to block this behaviour. The current report concerns a different path: `.claude/settings.local.json` files that users manually create and commit to public repositories store approved commands that contain credentials.

03Impact

Developers using Claude Code should confirm that `.claude/settings.local.json` is not under version control and should avoid writing keys directly into approved commands. Some commenters suggest switching to password managers such as 1Password and retrieving credentials on demand through the `op` CLI, so that the agent cannot read them directly.

04Discussion

Several commenters consider the headline misleading and stress that the leak comes from committing local settings files rather than from the "Don't Ask Again" feature itself. A member of the Claude Code team explained that the file is by design not meant to enter a repository and promised to study a secret cleanup approach. Other commenters shared practices for isolating credentials with password managers, and some criticised the original article for being repetitive and long.