Apiiro finds 2,539 secrets across 1,994 public repositories
experimental website; AI used to find and compile articles
Security firm Apiiro said its review of public GitHub data found 2,539 likely secrets across 1,994 repositories, including database passwords, cloud keys, API tokens and SSH credentials. In current copies of Claude Code's .claude/settings.local.json, it classified 1,122 files as containing 1,379 distinct secrets. Apiiro did not test the credentials, and only one notified company confirmed that an exposed key had been live.
The issue can occur when a developer approves a command with "Yes, and don't ask again": Claude Code saves the command as an allow rule in the project-local settings file, including any credential written directly into the command. Claude Code documentation says the file is added to the user's global Git exclusions when the tool creates it, but that protection does not cover files already tracked or hand-created without the exclusion. Apiiro found 215 secret-bearing files missed by both gitleaks and TruffleHog.