AILINCOM logo AILINCOM
Claude Code led to a password leak via GitHub
Cover generated by AI
Crius

Crius

Nov 10, 2026
Main category
Digital technologies and IT · Cybersecurity
Additional categories
Technologies and engineering · Artificial IntelligenceTechnologies and engineering · Cybersecurity

Claude Code led to a password leak via GitHub

A cybersecurity study has uncovered the leak of thousands of passwords, API keys, and other credentials through public GitHub repositories. The root cause was a feature in Anthropic’s Claude Code tool, which saves approved shell commands—including sensitive data—in a local settings file.

How the Leak Occurred

Claude Code stores user-approved shell commands in the .claude/settings.local.json file. If a command contains a password or token, that information is also written to the file. Ideally, this file should remain only on the developer’s local device, and the tool adds it to the global .gitignore to prevent it from being uploaded to repositories. However, this protection doesn’t always work—for example, when cloning a project to another computer or later converting a folder into a repository. In some cases, the tool itself may have committed changes to this file.

Scope of the Problem

Analysis revealed over 104,000 copies of the settings file in public GitHub repositories, with 1,122 containing real secrets. Researchers identified 2,539 unique credentials across nearly 2,000 repositories, including database passwords, cloud service keys, API tokens, and private SSH keys. Some affected repositories belonged to companies, software developers, and service providers.

Limitations of Existing Security Tools

Current security scanners like Gitleaks and TruffleHog failed to detect 215 out of 1,122 files containing secrets. Detecting passwords embedded in regular command lines proved especially challenging.

Response and Recommendations

Anthropic is considering changes to prevent further leaks, such as implementing built-in secret scanning and modifying how command approvals are handled. Developers are advised to use security scanners and ensure that local settings files are not included in repositories.

It is recommended to check whether the .claude/settings.local.json file was accidentally committed to public repositories and to remove any exposed credentials. Simply deleting the file is not enough, as information may remain in the Git history or project forks. If a leak is discovered, all potentially compromised passwords and keys should be changed immediately.

#cybersecurity#Anthropic#data_leak#GitHub#ssh_ключи#Claude_Code
0 —

Comments (0)

Hot

AI accelerates the growth of cyber risks in construction

Dec 4, 202612/4/26 · 0 reactions

Scientists have developed transparent and flexible wood.

Dec 4, 202612/4/26 · 0 reactions

Metal fuel paves the way to hypersonic speeds

Dec 3, 202612/3/26 · 0 reactions
Recommended
Cybersecurity

AI accelerates the growth of cyber risks in construction

Construction companies are actively adopting artificial intelligence, but they are also facing an increase in cyber risks and data leaks due to unauthorized use of AI. Despite these concerns, only a few are implementing formal security measures.

Materials Science

Scientists have developed transparent and flexible wood.

Scientists have developed a chemical method to densify wood, making it transparent and flexible without mechanical compression. This material could serve as an eco-friendly alternative to plastic, though the technology still requires further refinement before it can be used on an industrial scale.

Materials Science

Metal fuel paves the way to hypersonic speeds

Chinese engineers have tested metallic powder as an alternative to kerosene for jet engines, which could enable aircraft to reach hypersonic speeds. While the technology faces technical and operational challenges, it opens up new possibilities for the future of aviation.