Claude Code Security Flaw Leaks Sensitive Data to GitHub
AI security researchers have discovered thousands of sensitive credentials exposed on public GitHub repositories due to a flaw in Anthropic's Claude Code settings management.
💻TechPhoto: Ars Technica
Key points
- Apiiro discovered over 100,000 Claude Code local settings files exposed on public GitHub.
- Around 1,100 files across 63 organizations contained database passwords and API tokens.
- Anthropic representatives stated the team is investigating ways to prevent accidental check-ins.
A design oversight in Anthropic's AI coding assistant, Claude Code, has inadvertently exposed sensitive credentials—including database passwords, API tokens, and root logins—across public GitHub repositories. According to findings from AI security firm Apiiro, more than 100,000 local settings files generated by the tool have been uploaded to public repositories, with approximately 1,100 files containing active secrets from 63 distinct organizations.
The vulnerability originates from how Claude Code records automated shell command approvals. When developers select the option to execute and remember a command, the tool writes the specific command string into a local configuration file named .claude/settings.local.json. Although Anthropic's documentation specifies that this file belongs in a global .gitignore list, the protection fails at the repository level. In many instances, Claude Code itself automatically commits changes to the settings file without explicit user intervention, leading to accidental public exposure when projects are cloned or converted into repositories.
Security reports flagging this risk date back to August 2025, though previous bug reports were closed automatically after 60 days of inactivity. Responding to the recent findings on Hacker News, Claude Code team member Boris Cherny stated that developers are investigating preventative measures and suggested utilizing secret scanners or switching to the tool's auto mode. However, Apiiro noted that popular scanning tools like gitleaks and TruffleHog failed to flag a significant portion of the exposed credentials.
Source Ars Technica — arstechnica.com/ai/2026/11/claude-code-settings-files-expose-thousands-… ↗
Read next
Japan Tobacco Shares Rise Amid Potential Imperial Brands Takeover Bid
Japan Tobacco shares rose following reports of a potential partnership to acquire British cigarette maker Imperial Brands, which is also being eyed by Altria.
🏛️PoliticsPhilippine digital activists scrutinize 2027 national budget for corruption
A growing movement of Filipino influencers and tech professionals is utilizing digital tools to audit government spending and identify potential red flags in the 2027 nat…
Argentina Bans Central Bank From Printing Money to Fund Government
Argentina's Congress has passed legislation prohibiting the central bank from financing government spending, marking a major shift in the nation's fiscal policy.
🏛️PoliticsDOJ Reportedly Lacked Access to Rubio Memo in Nvidia CEO Investigation
The U.S. Department of Justice reportedly never received a key intelligence memo that triggered the brief ouster of Nvidia CEO Jensen Huang. The revelation adds complexit…
🏛️PoliticsNew Book Alleges Financial Ties Between Jared Kushner and Gulf States
A new book by journalist Matthew Cole alleges that Jared Kushner received $2 billion in funding from Saudi and Emirati sources during his time as a Trump administration o…
EU Budget Summit Concludes Early as Key Appointments Announced
European leaders have wrapped up budget discussions prematurely, while Pablo Hernández de Cos is tapped to lead the European Central Bank.