Apiiro Finds Thousands of Secrets Exposed in Public GitHub Repositories

· Original article ↗

Summary

Apiiro found 2,539 credentials across nearly 2,000 public GitHub repositories and linked some exposures to Claude Code saving approved commands with secrets in a project settings file. Anthropic says it is exploring safeguards.

Key points

  • Apiiro reported finding 2,539 credentials across nearly 2,000 public GitHub repositories, including database passwords, cloud keys, API tokens and SSH root logins.
  • In the Claude Code case, choosing “Yes, and don't ask again” can save a command containing a secret in .claude/settings.local.json.
  • Apiiro examined 104,185 publicly accessible copies of that file and found 1,122 containing real secrets.
  • The file’s Git ignore protection is stored in a developer’s global settings, not the project’s .gitignore, so it does not travel with the repository.
  • In 539 of 1,105 investigated repositories containing real secrets, Apiiro found a commit co-authored by Claude Code that modified the affected settings file.
  • Anthropic said it was exploring options such as secrets scanning and changes to auto mode; Apiiro recommends rotating exposed credentials and scanning agent files and repository history.

Article Details

Event Type
Apiiro-reported exposure of credentials in public GitHub repositories, linked in part to Claude Code saving secrets in project configuration files that can be committed.
Impact
Apiiro reported finding 2,539 credentials across nearly 2,000 public repositories. In its examination of 104,185 publicly accessible copies of .claude/settings.local.json, it found 1,122 files containing real secrets and identified 1,379 distinct secrets. The exposed information reportedly included passwords, cloud keys, API tokens, and SSH root logins.

People

Vendors

Products

Related Articles