Anthropic weighs Claude Code changes after Apiiro finds exposed secrets on GitHub
Reported by letsdatascience, iTWire, Cyber Security News and 6 more outlets9 sources ↓
Apiiro researchers found 2,539 distinct secrets across 1,994 public GitHub repositories, linked to Claude Code’s saved command approvals. Anthropic says it is evaluating changes; no fix had been released as of Tech Times’ report.
Key points
- Apiiro found 2,539 distinct secrets across 1,994 public repositories
- Claude Code can save approved shell commands, including credentials, in local settings
- Anthropic is considering secret scanning and changes to command-permission storage
- Apiiro says Gitleaks and TruffleHog missed 215 affected files
- Apiiro did not test the credentials; one company confirmed its exposed key had been live
Sources
- letsdatascienceRead ↗Apiiro finds Claude Code approvals leaking 2,539 secrets on GitHub
- iTWireRead ↗Claude Code approval files found exposing company secrets on GitHub, says Apirro researchers
- Cyber Security NewsRead ↗Claude Code’s “Yes, and Don’t Ask Again” Option Can Leak Passwords and API Keys to GitHub
- news.lavx.huRead ↗Claude Code's 'Don't Ask Again' Setting Exposes Secrets in Public GitHub Repositories
- cyberpressRead ↗Claude Code’s “Yes, and Don’t Ask Again” Feature Exposes Passwords and API Keys on GitHub
Details
The issue involves Claude Code’s “Yes, and don’t ask again” option. Apiiro researchers say it can save the full approved shell command in .claude/settings.local.json, including any password or token in the command. If developers commit that file, the credentials can become public.
Apiiro examined 104,185 public copies of the settings file and identified 1,122 containing 1,379 distinct secrets. Its broader count, which included Git history and other agent-related files, was 2,539 secrets across 1,994 repositories. Cyber Security News reports that Apiiro identified 63 affected organizations.
Claude Code adds the local settings file to the developer’s global Git ignore list when it creates the file inside a repository. That exclusion does not travel with the project and does not protect files already tracked. Tech Times reports that Anthropic’s Claude Code lead Boris Cherny told Apiiro the company is evaluating built-in secret scanning and changes to how command permissions are stored; the report said no formal patch had been released.
Apiiro did not test the credentials, so the findings do not establish that all were still usable or accessed by others. iTWire reports that one company confirmed an exposed key had been live. Cyber Security News says Gitleaks and TruffleHog together missed 215 of the affected files.
Written from coverage as of
Images
- iTWire
- cyberpress
- Tech Times
- cyberpress
Stocks in this story
Change since open: 20 Nov to 21 Nov 2026
Last refresh