INSPECTING ARCHIVED INTELLIGENCE (OUTDATED VERSION).

Claude Code exposes passwords and keys in 1,122 GitHub files

| 2026-11-07 06:44 LOW LOW DATA BREACH
Executive Summary
AI-generated
On November 7, 2026, a software security company Apiiro discovered that at least one secret was stored in over 1,122 public copies of the .claude/[IOC HIDDEN • LOGIN REQUIRED] file on GitHub. The affected files are part of Anthropic's AI coding assistant Claude Code and contain sensitive information such as passwords and API keys typed by users into commands they approved. These secrets were saved in plain text when a user selected "Yes, and don't ask again" option, which allows the command to run without prompting for credentials. The attack works because older versions of the file remain in git history and forks of the repository, making it difficult to remove all instances of leaked data. Currently, Apiiro has notified some affected organizations about their exposed secrets, but no further information is available on how many or which specific individuals have accessed these sensitive files.
Technical Mitigations AI-generated
• Use a tool like GitGuardian to detect and block commits that include the .claude/<a href="/auth/login?next=/detail/52a4taEBo0ihlvYpfosd" class="ioc-censored-pill text-decoration-none" title="Protected IoC: Sign in to view" data-bs-toggle="tooltip"><span class="badge bg-black text-warning border border-warning border-opacity-75 font-monospace ioc-lock-tag align-middle"><i class="bi bi-lock-fill me-1"></i>[IOC HIDDEN &bull; LOGIN REQUIRED]</span></a> file in the repository's commit history. • Block searches for the string "allow" followed by any pattern (e.g., npm test *) in the .claude/<a href="/auth/login?next=/detail/52a4taEBo0ihlvYpfosd" class="ioc-censored-pill text-decoration-none" title="Protected IoC: Sign in to view" data-bs-toggle="tooltip"><span class="badge bg-black text-warning border border-warning border-opacity-75 font-monospace ioc-lock-tag align-middle"><i class="bi bi-lock-fill me-1"></i>[IOC HIDDEN &bull; LOGIN REQUIRED]</span></a> file, as this is how Claude Code saves saved commands with secrets.
Technical Observables 2 IoCs Login Required
Indicators of Compromise (IoCs) Protected

Raw threat telemetry, malicious IP addresses, file hashes, and direct VirusTotal correlation are restricted to authenticated users.

files 2
Intelligence Metadata
Actors / Malware / CVEs / Campaigns
Target & Sectors
Global Scope technologytechnology
Incident Timeline
‎September 2025
Shai-Hulud worm ran the TruffleHog secret scanner over infected computers, flagging more than half of 1,122 public files on GitHub as secrets.
malware Shai-Hulud
organisation TruffleHog
infrastructure Cursor
data_breach 1,122 files
‎2026/11/07
Others include 43 SSH logins for public servers, 42 tokens for GitHub, GitLab and npm, and 23 AWS keys.
organisation Apiiro Found
organisation GitHub
organisation GitLab
organisation AWS
organisation Rotate
organisation Docker
data_breach 379 database passwords
victims 63 organizations
Tactical Metrics
Metrics
infrastructure
‎Cursor
Affected Product
Metrics
data_breach
379
Database Passwords
Metrics
victims
63
Organizations
Metrics
data_breach
1,122
Files