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 • 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 • 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.
Click on any entity below to view its context and source!
malware
Shai-Hulud
In September 2025, the
Shai-Hulud worm
ran the TruffleHog secret scanner over infected computers, and the scanner flagged more than half of the files as secret.
organisation
TruffleHog
In September 2025, the
Shai-Hulud worm
ran the TruffleHog secret scanner over infected computers, and the scanner flagged more than half of the files as secret.
infrastructure
Cursor
For security teams, the researchers recommend:
Treat agent folders such as .claude/, .cursor/, .gemini/ and .specstory/, and agent memory files, as holding secrets, like .env files, on laptops as well as in repositories.
data_breach
1,122 files
Of the 1,122 files with a secret, gitleaks flagged 564 and TruffleHog 643, and neither flagged 215.
2026/11/07
Others include 43 SSH logins for public servers, 42 tokens for GitHub, GitLab and npm, and 23 AWS keys.
Click on any entity below to view its context and source!
organisation
Apiiro Found
What Apiiro Found
Apiiro's search of public GitHub found 104,185 copies of the file in 103,617 repositories, its
research write-up
shows.
organisation
GitHub
Others include 43 SSH logins for public servers, 42 tokens for GitHub, GitLab and npm, and 23 AWS keys.
organisation
GitLab
Others include 43 SSH logins for public servers, 42 tokens for GitHub, GitLab and npm, and 23 AWS keys.
organisation
AWS
Others include 43 SSH logins for public servers, 42 tokens for GitHub, GitLab and npm, and 23 AWS keys.
organisation
Rotate
Rotate every password, token and key the files have ever held, before cleaning up.
organisation
Docker
The file is plain JSON in the project folder, and it can also be left inside an npm package, a Docker image, a zip archive, or a synced folder.
data_breach
379 database passwords
More than a third of the secrets open a database directly, including 379 database passwords.
victims
63 organizations
Among the owners of these files are 63 organizations, mostly software companies of all sizes.
Tactical Metrics
Metrics
infrastructure
Cursor
Affected Product
Click for context!
For security teams, the researchers recommend:
Treat agent folders such as .claude/, .cursor/, .gemini/ and .specstory/, and agent memory files, as holding secrets, like .env files, on laptops as well as in repositories.
Metrics
data_breach
379
Database Passwords
More than a third of the secrets open a database directly, including 379 database passwords.
Metrics
victims
63
Organizations
Among the owners of these files are 63 organizations, mostly software companies of all sizes.
Metrics
data_breach
1,122
Files
Of the 1,122 files with a secret, gitleaks flagged 564 and TruffleHog 643, and neither flagged 215.
Intelligence Sources
The Hacker News
2026-11-07
Unpublish from Social Media?
Are you sure you want to delete this podcast video from all synchronized social networks (YouTube, Facebook, Threads)?
Important:
Due to Meta API restrictions, Instagram Reels cannot be deleted automatically via API by third-party apps.
View Profile to Delete Manually
View Profile to Delete Manually
Tactical Intelligence
Report Intelligence Issue
Podcast Options
Generate
Incident Version History
CURRENT VERSION
Last Updated: 2026-11-07T11:31
Comprehensive Tactical Telemetry
Highly Correlated Entities
7x
organisation
Identified Entity
Apiiro Found
entity
5x
timeline
Temporal Reference
August 11, 2025
date
5x
general metric
Repositories
103,617
repositories
2x
general metric
Copies
76,011
copies
2x
general metric
Trufflehog
643
trufflehog
Contextual Telemetry
Context Block
21 METRICS
target region
Target Country
United States
country
industry
Targeted Sector
Technology
sector
general metric
Public Copies
1,122
public copies
infrastructure
Affected Product
Cursor
software
general metric
Ssh Logins
43
ssh logins
general metric
Tokens
42
tokens
general metric
Aws Keys
23
aws keys
tactic
MITRE ATT&CK Technique
T1588.001 - Malware
technique
malware
Malware Payload
Shai-Hulud
tool
general metric
Opus
6
opus
general metric
Fable
5
fable
general metric
%
1
%
general metric
Different Secrets
1,379
different secrets
data breach
Database Passwords
379
database passwords
victims
Organizations
63
organizations
general metric
More Secrets
734
more secrets
general metric
Forks
211
forks
general metric
Secrets
2,539
secrets
general metric
Coding Agents
16
coding agents
data breach
Files
1,122
files
general metric
Gitleaks
564
gitleaks
Click on any entity below to view its context in the main text!
Selective Unpublish
Select the networks you want to remove this post from. The system will try to delete the real post through the API and clean the database so you can publish it again.
By navigating this website, you accept the use of strictly necessary technical cookies for session security and basic platform functionality. We do not use tracking or advertising cookies. Read our Privacy Policy.
Generating report…
0s