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
Security Flaws in Claude Code Expose Secrets on GitHub

Security Flaws in Claude Code Expose Secrets on GitHub

Posted on November 7, 2026 By CWS

In a recent disclosure, sensitive data including passwords and API keys have been found in public GitHub repositories due to a vulnerability in Claude Code, an AI coding assistant by Anthropic. These secrets were unintentionally saved in project files, posing a significant security risk.

Vulnerability Details

When developers used the ‘Yes, and don’t ask again’ option in Claude Code, commands containing sensitive data were stored in the .claude/settings.local.json file. Apiiro, a software security firm, revealed that 1,122 public copies of this file contain at least one secret. Though it’s unclear if these credentials are still active, one company confirmed a live key was exposed.

The file persists in the project’s git history and forks, even if removed from the main directory. To mitigate risk, it is crucial to rotate all affected passwords and keys, then thoroughly clean the repository history.

How Secrets Get Exposed

Claude Code prompts for approval before executing shell commands. If a user opts not to be asked again, the exact command, including any secrets, is saved. This behavior was confirmed with the latest models, Opus 5.5 and Fable 5.1. Despite attempts to exclude the file from git, its presence in committed repositories remains a critical issue.

Apiiro’s investigation found over 100,000 copies of the settings file, with a fraction containing secrets such as database credentials, SSH logins, and API tokens. These files remained on GitHub for extended periods, highlighting the need for improved security measures.

Recommendations for Developers and Security Teams

Developers are urged to search for these files across their GitHub repositories and rotate any exposed credentials. They should also stop tracking these files in git and use variables from a secrets manager to avoid saving secrets in commands.

Security teams should treat directories like .claude/ as containing secrets and integrate them into pre-commit and CI secret scanning processes. Special attention should be given to credentials linked to public servers due to their heightened risk.

Previous Concerns and Future Implications

Concerns over this issue are not new, as similar reports have been filed previously, but were closed without resolution. The ongoing exposure of sensitive data underscores the need for proactive security practices in software development.

Moving forward, developers and organizations must remain vigilant, employing robust security protocols to safeguard sensitive information and prevent unauthorized access.

The Hacker News Tags:Anthropic, API keys, Claude Code, Cybersecurity, data breach, developer tools, GitHub, Passwords, Security, software development

Post navigation

Previous Post: Free Tool Released to Combat PHP and Node.js Vulnerabilities
Next Post: Claude Code Option Exposes Sensitive Data on GitHub

Related Posts

LastPass Warns of Fake Repositories Infecting macOS with Atomic Infostealer LastPass Warns of Fake Repositories Infecting macOS with Atomic Infostealer The Hacker News
Hirudo Trojan Targets Banking Apps with New Tactics Hirudo Trojan Targets Banking Apps with New Tactics The Hacker News
Malicious Code Detected in Node-IPC Package Versions Malicious Code Detected in Node-IPC Package Versions The Hacker News
AI Revolutionizes Security Operations by 2026 AI Revolutionizes Security Operations by 2026 The Hacker News
New Flaws and AI Threats Shape Cybersecurity Landscape New Flaws and AI Threats Shape Cybersecurity Landscape The Hacker News
Passkey Phishing Exploits Target Microsoft Cloud Accounts Passkey Phishing Exploits Target Microsoft Cloud Accounts The Hacker 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