Claude Code can leak your passwords to public GitHub
Claude Code's Don't Ask Again button can put your passwords on public GitHub.
Security company Apiiro found that when you pick "Yes, and don't ask again" in Claude Code, it can save the whole command, including any password inside it, in a project settings file (.claude/settings.local.json). Git does not skip that file by default, so it can be uploaded with your code. AI Weekly reported this from The Hacker News. The original headline says 2,539 secrets leaked this way.
215 of those secrets got past both TruffleHog and GitHub Secret Scanning. Another 734 were deleted from the current files but could still be read in older versions. They included 379 database passwords, 43 SSH logins and 23 AWS keys.
What to do: open your Claude settings file, delete any password in it, then change that password.
Source: AI Weekly · 2026-11-08