1122 public GitHub files leak secrets via Claude Code; auto-gitignore claim doesn't hold

PawelHuryn · x · 2026-11-08

An apiiro report found 1,122 public GitHub files exposing passwords via Claude Code's "Don't Ask Again" settings. Anthropic claims .claude/settings.local.json is auto-gitignored and the leaked files were "manually created and checked in."

Pawel Huryn tested this: 5 of his repos had the file written by Claude Code (March–August), none were ignored, and 2 were already committed. The catch: the ignore lives in your global git config, added only when Claude Code writes the file—older versions never did it, so existing files stay unprotected until rewritten.

Fixes:

Related event: Claude Code 'Don't Ask Again' Leaks Secrets in 1122 Public GitHub Files(5 posts)→

Original post →

More from coding & agent

coding & agent channel →