Live intelligence

Latest AI updates

3 updates
Research

Claude Code settings files found leaking secrets on GitHub

Security researchers at Apiiro found thousands of secrets, including database passwords, API tokens, and root logins, in Claude Code settings files embedded in public GitHub repositories. The exposure stems from Claude Code storing approved shell commands in the local .claude/settings.local.json file, sometimes including sensitive information written directly into the command. Anthropic's documentation says this settings file is added to the global .gitignore list, which usually prevents public sharing.

Claude CodeAI securityGitHub
Industry

Claude Code Leaking Secrets Across Nearly Two Thousand Public GitHub Repositories

Apiiro discovered that Claude Code, an AI coding tool, is leaking secrets in 1,994 public GitHub repositories through a settings.local.json exposure. The leak stems from a configuration file that may contain sensitive information, posing a security risk to developers and organizations. This highlights a significant vulnerability in AI-assisted development workflows.

AI securityClaude CodeGitHub
Products Editor selected

Claude Code approval setting reportedly exposed secrets in 1,122 public GitHub files

Apiiro found that Claude Code's "don't ask again" option saved approved commands, including credentials, to a local settings file. The firm counted 2,539 secrets across 1,994 public repositories, with passwords reportedly exposed in 1,122 public GitHub files.

Why it matters: The finding highlights a concrete credential-leak risk for developers using AI coding agents and committing local configuration files.

Claude CodeGitHubsoftware supply chain security