Claude Code's "don't ask again" option leaked 2,539 developer secrets to public GitHub repos, Apiiro finds
Approved commands, passwords and tokens included, were saved to a project settings file that developers committed; Anthropic says it is looking at fixes.
8 Nov 2026 ยท Cybersecurity
A convenience option in Anthropic's Claude Code has exposed thousands of developer secrets on public GitHub, security firm Apiiro reports. Claude Code asks before running most shell commands. When a user picks "Yes, and don't ask again", the exact command is saved as an allow rule in .claude/settings.local.json inside the project folder, including any password or token typed into it, and that file is often committed with the rest of the code.
Cybersecurity AI Weekly covers stories like this, every Monday. Free.
Apiiro found 2,539 real secrets in 1,994 public repositories, including database passwords, cloud keys, API tokens and SSH root logins. Most belong to individual developers, but 63 organisations are affected, among them a database vendor's own admin-level cloud key and the owner password of a medical-records database. One organisation confirmed its key had been live. Apiiro says the behaviour is a property of Claude Code, not of the underlying model.
Boris Cherny, head of Claude Code at Anthropic, said on Hacker News that "historically Claude Code has not done secret scrubbing" and that the team is "looking into what we can do to prevent this", including making auto mode catch such commands and building in basic secret scanning, iTnews reports. Apiiro advises developers to search for the settings files, check git history and rotate any exposed secrets first.
Where this comes from
apiiro.com Apiiro: Secure your agentic development itnews.com.au "Don't ask again" in Anthropic's Claude Code leaks developer secretsIn this story
More from Cybersecurity
Dec 4 US Air Force adds up to $2 million for Base Operations' AI counter-drone analytics Dec 4 UK tech committee chair calls for AI model testing before release over threat to encryption Dec 4 Alibaba Cloud's command-line tool told AI agents to hand over local data, and the company says it will stop Dec 4 UK bank regulator says frontier AI may threaten banking encryption sooner than quantum computers Dec 4 Perplexity says it stopped an autonomous AI agent that attacked it for two weeksIndustry analysis
2025 Global Business Services Agenda: Gen AI Takes Center Stage
This industry analysis by The Hackett Group explores the transformative impact of generative artificial intelligence (Gen AI) on global business services (GBS) in 2025. The study highlights the shift from exploration to acceleration of Gen AI initiatives, with 89% of executives advancing these projects to improve customer satisfaction, innovate products, and reduce costs. The report also discusses the challenges and strategies for successful Gen AI adoption, emphasizing the need for a technology-enabled operating model and the importance of reskilling the workforce.
Read moreYou may also like
Bitdefender finds GitHub malware that tells AI coding agents to run a credential stealer 23 Nov 2026 Anthropic says Claude writes and reviews about 90% of Claude Code team's code 21 Nov 2026 CloudSEK says AI-assisted React2Keys campaign stole over 50,000 AI, cloud and payment keys 30 Nov 2026 Cursor says key exposed by Fireworks AI led to its breach and the malicious Claude Code extension 15 Nov 2026 Claude Dispatch flaw can let browser extensions run system commands 5 Nov 2026 Researcher says a 2025 jailbreak still worked on Claude, and Anthropic did not reply 4 Dec 2026Daily AI Brief: the AI news that matters, in your inbox.