DigestAI news desk

Cut through the AI noise.

Generative AI & Modelsupdated 1 min read

Claude Code settings files leak secrets on public GitHub repos

AI security researchers at Apiiro have identified a significant security flaw in Anthropic's Claude Code. The tool stores user approvals for automated shell commands in a local file named .claude/settings.local.json. When users select "Yes, and don't ask again" for a command, the full command text, including any embedded sensitive data like API tokens or database passwords, is saved to this file.

4 sources HN 5

Key points

  • Apiiro found over 100,000 Claude Code settings files uploaded to public GitHub repositories.
  • About 1,100 files from 63 organizations contained secrets like API tokens and database passwords.
  • The global .gitignore setting does not prevent accidental commits at the repository level.

Although Anthropic's documentation states that this file should be added to the global .gitignore list to prevent public sharing, this protection does not apply at the repository level. Consequently, if a developer clones a repository to another machine or converts a folder into a new repository, the settings file can be accidentally committed and pushed to public GitHub instances. Apiiro notes that Claude Code often commits these changes automatically without explicit user input for each commit.

The researchers found over 100,000 instances of this local settings file uploaded to public GitHub repositories. Of these, approximately 1,100 files from 63 different organizations contained active secrets, including private keys and root logins. Even after the original files are removed, the sensitive data may persist in forks of the affected projects, posing a continued risk to the involved organizations.

The story so far

5 episodes →
  1. Claude Code settings files leak secrets on public GitHub reposthis story
Full story from Ars Technica AI · by Kyle OrlandOpen source ↗

Claude Code is accidentally exposing secrets all over GitHub

Ars Technica AI · 9 November 2026

Loading the full article…

This text was published by Ars Technica AI and written by Kyle Orland. It is reproduced here with attribution so you can read it in full; the rights remain with the publisher. Read it at the source ↗

Coverage and discussion

4sources
Topics · follow one to build your own front page

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.

Comments

via GitHub Discussions

More in Generative AI & Models

All →

Related stories