Apiiro finds 1,122 public GitHub repos leaking secrets via Claude Code settings file
Security firm Apiiro found that Claude Code's local project settings file, .claude/settings.local.json, can store approved commands verbatim—including passwords and API keys—when users choose 'don't ask again.' Scanning GitHub, researchers located 104,185 copies of the file across 103,617 repositories, with 1,122 copies containing at least 1,379 exposed secrets, including 379 database passwords. One notified company confirmed its leaked key was still active.
GoKawiil's interpretation of the reporting above, not reported fact.
The file's secrets persist in git history and forks even after deletion, meaning simple cleanup is insufficient; Apiiro recommends rotating all exposed credentials first. Claude Code's protective git-exclude mechanism only works locally and doesn't stop the file from being committed, and researchers note Claude itself appears to have committed the file as co-author in over half the traced cases—suggesting the AI tool's default behavior may be contributing to accidental credential exposure at scale.
- 1,122 of 104,185 public copies of Claude Code's settings file contain at least one secret, totaling 1,379 secrets.
- More than a third of exposed secrets grant direct database access, including 379 database passwords.
- Deleting the file doesn't remove leaked secrets from git history or forks, so Apiiro advises rotating credentials before cleanup.
Yubico YubiKey 5C NFC — Hardware-backed credentials are a strong defense against exactly this kind of secret-leak disaster—if your keys and logins are tied to a physical security key instead of static strings in a config file, a leaked API token can't be used to impersonate you. Pair this with proper secret rotation habits after incidents like the Claude Code settings leak to drastically cut your exposure. It's a small, durable device that plugs into your security workflow for years.
See Yubico YubiKey 5C NFC on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.Source: it.slashdot.org — Posted, 2026-11-08
Published there as: “Claude Code's 'Don't Ask Again' File Exposes Passwords and Keys in 1,122 Public Copies on GitHub”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.