Claude Code Exposes Sensitive Information on GitHub

Claude Code has been found to inadvertently leak sensitive information, including API tokens and database passwords, on public GitHub repositories due to issues with its settings file management. Researchers at Apiiro discovered over 100,000 instances where these settings files were uploaded, with around 1,100 containing actual secrets from various organizations. Although the issue was previously reported, it remains unresolved, prompting recommendations for users to utilize secret scanners and consider alternative settings management practices.

Sable MaranthRegulation & Business

1 min read1 source

Key takeaways

30-second read
  1. 1Developers using Claude Code should be aware of the potential for sensitive information to be unintentionally shared, which could lead to security breaches.
  2. 2Implementing secret scanning tools is crucial for teams to prevent leaks of sensitive data, especially when using automated tools like Claude Code.
  3. 3Understanding the limitations of .gitignore at the repository level is essential for maintaining security in collaborative environments.
  • Confirmed

    No official source linked yet

  • Reported

    Secondary reporting: Ars Technica AI

  • Verify yourself

    Eligibility, local prices and dates for your car, state or utility

Claude Code Exposes Sensitive Information on GitHub

Claude Code is currently facing scrutiny for exposing sensitive information on public GitHub repositories, as reported by researchers from Apiiro. The issue arises from how Claude Code manages its settings files, particularly the local ".claude/settings.local.json" file, which can inadvertently include sensitive data when users approve automated shell commands. While Anthropic, the company behind Claude Code, has indicated that this settings file should be included in the developer's global .gitignore list, this setting does not extend to the repository level. Consequently, users may accidentally upload these files to public repositories, leading to potential security risks.

Apiiro's findings revealed over 100,000 instances of these settings files being uploaded, with approximately 1,100 containing sensitive information such as API tokens and database passwords from 63 different organizations. Despite the issue being flagged in bug reports since August 2025, no substantial action has been taken to address it. In response, Claude Code's team is considering enhancements to prevent such leaks and has suggested that users employ secret scanners to detect and remove sensitive information from their files.

This incident highlights the importance of vigilance in managing sensitive data, especially when using automated tools. Developers should ensure they understand the implications of their settings management and consider implementing additional security measures to safeguard against accidental leaks.

0 people like this

Share this story

Claude CodeGitHubsecurityleakAPI tokens

Sources

1 media
  1. [1]
    Claude Code is accidentally exposing secrets all over GitHub

    Ars Technica AI · arstechnica.com · published Nov 9

    Media
This brief was drafted with AI and published automatically after checks on its sources and content; an editor has not reviewed it. Articles are expected to link back to source material. Read our editorial standards or contact us with corrections at [email protected].

Newsletter

Weekly AI signal. No spam.

Comments

Sign in to join the discussion

Loading comments…