Skip to content
  • Home
  • Cyber Map
  • About Us – Contact
  • Disclaimer
  • Terms and Rules
  • Privacy Policy
Cyber Web Spider Blog – News

Cyber Web Spider Blog – News

Globe Threat Map provides a real-time, interactive 3D visualization of global cyber threats. Monitor DDoS attacks, malware, and hacking attempts with geo-located arcs on a rotating globe. Stay informed with live logs and archive stats.

  • Home
  • Cyber Map
  • Cyber Security News
  • Security Week News
  • The Hacker News
  • How To?
  • Toggle search form
Claude Code Option Exposes Sensitive Data on GitHub

Claude Code Option Exposes Sensitive Data on GitHub

Posted on November 7, 2026 By CWS

A recent discovery by Apiiro researchers reveals a significant security risk associated with Claude Code’s “Yes, and don’t ask again” option. This feature can inadvertently store passwords and API keys within project settings, which may later become public when pushed to GitHub repositories.

Research Findings Highlight Exposure

Apiiro’s investigation uncovered 2,539 unique secrets across 1,994 public repositories, emphasizing how a simple user approval can transform sensitive credentials into publicly accessible data. This breach affected 63 organizations, predominantly in the software sector. Among the exposed credentials were a cloud key for a database vendor, a production Azure PostgreSQL password, a Square production token, and a medical records database owner password. One enterprise confirmed the live status of its compromised key.

The vulnerability emerges during standard development tasks. A developer might request Claude Code to execute a database check, test an API, or resolve a login issue. Claude Code then formulates a shell command containing a credential from a configuration file, seeking permission before proceeding. Opting for “Yes, and don’t ask again” saves this command, with its secrets, in .claude/settings.local.json, allowing future executions without further prompts. The threat arises when this local file is committed to GitHub.

Mechanisms and Limitations of Claude Code

Claude Code attempts to mitigate this risk by adding an exclusion to the developer’s global Git ignore file upon first writing the file in a Git repository. However, this protection doesn’t accompany the project, cover pre-existing files, or secure folders later converted into repositories.

Apiiro’s analysis of 104,185 public copies of .claude/settings.local.json files revealed 1,122 containing real secrets, totaling 1,379 distinct credentials. Through earlier commits, shared settings, and agent transcripts, the total increased to 2,539. This data was collected from November 1-3, 2026.

Mitigation Strategies and Recommendations

Apiiro’s findings indicate databases account for a significant portion of exposed access, with 379 database passwords and 122 Supabase service-role keys among the discoveries. Additional exposed credentials include cloud access keys, private keys, package-registry tokens, and 43 SSH logins, some with root passwords.

Standard scanning tools like Gitleaks and TruffleHog failed to detect all vulnerabilities. Of the affected local settings files, Gitleaks flagged 564, while TruffleHog flagged 643, leaving 215 files undetected. Passwords embedded in formats like PGPASSWORD=, sshpass -p, or within request headers often escape detection.

To mitigate these risks, developers should thoroughly search their files and Git history for .claude/settings.local.json and inspect shared .claude/settings.json files. An examination of allow rules for passwords, tokens, connection strings, and authorization headers is recommended. Apiiro also noted the presence of secrets in saved agent conversations, memory files, and deployment notes.

Immediate actions include rotating exposed credentials before file removal or history rewriting. Developers should untrack local settings using git rm –cached .claude/settings.local.json and add the path to the repository’s .gitignore. Utilizing secret-manager references instead of literal passwords in commands is advised. Security teams should scan agent folders and history for command-embedded passwords and recognizable API keys.

Cyber Security News Tags:API keys, Claude Code, cloud security, Cybersecurity, data breaches, data security, developer tools, GitHub exposure, GitHub repositories, password leaks, security risk, software development

Post navigation

Previous Post: Security Flaws in Claude Code Expose Secrets on GitHub
Next Post: SonicWall Addresses Vulnerability Affecting VPN Security

Related Posts

Sophisticated NPM Attack Exploits Google Calendar C2 For Sophisticated Communication Sophisticated NPM Attack Exploits Google Calendar C2 For Sophisticated Communication Cyber Security News
TA829 Hackers Employs New TTPs and Upgraded RomCom Backdoor to Evade Detections TA829 Hackers Employs New TTPs and Upgraded RomCom Backdoor to Evade Detections Cyber Security News
Leading Authorization Tools of 2026: Top 10 Revealed Leading Authorization Tools of 2026: Top 10 Revealed Cyber Security News
Optimizing URL Phishing Triage with Browser Insights Optimizing URL Phishing Triage with Browser Insights Cyber Security News
Ubiquiti UniFi Door Access App Vulnerability Exposes API Management Without Authentication Ubiquiti UniFi Door Access App Vulnerability Exposes API Management Without Authentication Cyber Security News
Red Hat Data Breach – Threat Actors Claim Breach of 28K Private GitHub Repositories Red Hat Data Breach – Threat Actors Claim Breach of 28K Private GitHub Repositories Cyber Security News

Categories

  • Cyber Security News
  • How To?
  • Security Week News
  • The Hacker News

Recent Posts

  • SonicWall Addresses Vulnerability Affecting VPN Security
  • Claude Code Option Exposes Sensitive Data on GitHub
  • Security Flaws in Claude Code Expose Secrets on GitHub
  • Free Tool Released to Combat PHP and Node.js Vulnerabilities
  • ARTEX AI Agent Breach Reveals WorkOS Customer Data

Pages

  • About Us – Contact
  • Disclaimer
  • Privacy Policy
  • Terms and Rules

Archives

  • November 2026
  • October 2026
  • September 2026
  • August 2026
  • July 2026
  • June 2026
  • May 2026
  • April 2026
  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025

Recent Posts

  • SonicWall Addresses Vulnerability Affecting VPN Security
  • Claude Code Option Exposes Sensitive Data on GitHub
  • Security Flaws in Claude Code Expose Secrets on GitHub
  • Free Tool Released to Combat PHP and Node.js Vulnerabilities
  • ARTEX AI Agent Breach Reveals WorkOS Customer Data

Pages

  • About Us – Contact
  • Disclaimer
  • Privacy Policy
  • Terms and Rules

Categories

  • Cyber Security News
  • How To?
  • Security Week News
  • The Hacker News

Copyright © 2026 Cyber Web Spider Blog – News.

Powered by PressBook Masonry Dark