Claude Code Feature Leaks Developer Secrets to GitHub

Anthropic's Claude Code assistant leaked thousands of developer secrets when its friction-reducing 'Yes, and don't ask again' permission option stored unredacted shell commands containing live credentials in local configuration files.

Christopher Ort
By Christopher Ort · 4 min read
Share
Abstract illustration of AI coding agent exposing credentials in configuration files on GitHub
Illustration: i10X
On this page
  1. Quick Take
  2. What happened
  3. Why it matters now
  4. Who is most affected
  5. About the analysis
  6. i10x Perspective

Anthropic’s push for friction-free AI development has created a serious supply chain vulnerability. A convenience feature in its new Claude Code assistant leaked thousands of developer secrets onto public GitHub repositories. Security researchers found that a simple “don’t ask again” prompt stored plaintext passwords, AWS keys, and SSH logins in local configuration files, exposing the collision between autonomous AI agents and standard enterprise security controls.

i10X Quick Take

Quick Take

  1. The incident: Claude Code’s “Yes, and don’t ask again” permission feature saved full, unredacted shell commands containing live credentials directly to a local .claude/settings.local.json file.
  2. The exposure: Research by Apiiro found over 2,500 secrets—including database passwords, AWS access keys, and Supabase service-role keys—exposed across nearly 2,000 public GitHub repositories.
  3. The scanner blindspot: Standard enterprise secret-scanning tools reportedly missed hundreds of these files, leaving deep vulnerabilities in git histories and repository forks.
  4. The AI infra reality: The race to build fully autonomous, frictionless AI coding agents is fundamentally breaking traditional developer security protocols.

What happened

When developers use Anthropic’s Claude Code, the terminal assistant occasionally prompts for permission to execute shell commands. To reduce friction in the development workflow, users can select a “Yes, and don’t ask again” option. Security researchers at Apiiro revealed that clicking this option saves the exact literal command string in plaintext inside a .claude/settings.local.json file. If a developer embedded an API key, database password, or SSH login into that specific shell command, the secret was written directly into the local configuration.

Because this file is stored locally within project directories, developers unknowingly committed it to their public source control. Apiiro’s scans across more than 103,000 public GitHub repositories uncovered 1,122 active configuration files containing at least 1,379 distinct secrets. When researchers expanded the scope to include older file versions, agent logs, and related git artifacts, the exposure ballooned to over 2,500 leaked credentials tied to at least 63 different organizations.

Complicating the cleanup, simply deleting the .claude/settings.local.json file or adding it to a global .gitignore does not erase the threat. Credentials remain active in commit histories, cached views, and repository forks. Security experts stress that exposed developers must immediately rotate their database passwords, SSH keys, and cloud tokens before attempting to purge the files from their git tracking.

Why it matters now

This incident exposes a fundamental tension in the current AI infrastructure race: the battle between agentic autonomy and enterprise security. Companies like Anthropic, OpenAI, and GitHub are aggressively pushing coding assistants that operate with increasing independence. But eliminating friction-like repetitive permission prompts-often means overriding the very speed bumps that prevent catastrophic security breaches.

For the broader AI ecosystem, this leak is a wake-up call regarding the new attack surfaces created by LLM-powered development tools. The industry is no longer just securing code written by humans; it must now secure the configuration files, agent transcripts, and memory states generated by the AI assistants themselves. The fact that major secret-scanning tools missed hundreds of these exposed Claude Code files indicates that traditional DevSecOps infrastructure has not yet adapted to the bespoke artifacts generated by local AI agents.

As AI models move from simple code autocomplete to orchestrating cloud infrastructure and database migrations natively from the terminal, the blast radius of a compromised local settings file scales exponentially. Enterprise CTOs and DevSecOps teams are now forced to build fresh governance models for AI tooling, treating every AI-assistant configuration file as a high-risk vector that requires distinct scanner tuning and strict repository-level ignore rules.

Who is most affected

The immediate fallout impacts developers, startups, and open-source maintainers who actively beta-tested or deployed Claude Code in public GitHub environments. However, the downstream risk hits DevSecOps and cloud infrastructure teams who must now audit git histories for leaked tokens that automated scanners may have missed.

StakeholderImpactWhy
Claude Code UsersHigh risk of hijacked accounts or infrastructure.Plaintext API keys, AWS tokens, and database passwords were inadvertently committed to public repositories via unredacted shell commands.
Enterprise DevSecOpsBlindspots in secret detection and compliance.Legacy secret-scanning tools failed to identify AI-generated .claude/ configuration files as sensitive targets, leaving active secrets exposed.
Anthropic & AI VendorsPressure to redesign permission logic.The incident forces AI companies to rethink how local agents store state and manage context without caching sensitive user data in plaintext.

About the analysis

Researched and written with AI assistance under the editorial responsibility of the i10X News team. The title image is an AI-generated illustration. Read our AI Use Policy. Spotted an error? Request a correction.

This is an independent, research-based i10x analysis intended for DevSecOps teams, CTOs, and AI infrastructure builders navigating the security implications of autonomous coding agents.

i10x Perspective

The Claude Code leak is not just an oversight; it is a structural growing pain in the evolution from AI copilots to autonomous AI agents. As models gain the ability to execute complex terminal commands, the very mechanics meant to keep them seamlessly integrated are inadvertently creating highly concentrated, plain-text vulnerabilities. Until AI infrastructure can securely abstract credential management away from local prompt histories and agent memory, the push for “frictionless” AI development will remain a massive liability for enterprise deployment.

Christopher Ort

Christopher Ort

Christopher Ort handles SEO, AI agent workflows and PR & partnerships at i10x.ai, the all-in-one AI workspace built by i10X Global Pte. Ltd. in Singapore. He is a graduate of Friedrich-Alexander-Universität Erlangen-Nürnberg (FAU). He is the author of “The Style Penalty”, a study published on SSRN that analyses 1,576 evaluation decisions by four frontier AI models to show how AI-written CVs fare in automated hiring screens; the research has been covered by heise online and t3n.

Timeline

What happened before

  1. Release

    Claude Haiku 5.5

    1M context · $0.1 / $0.5 per 1M tokens

    support.claude.com (source, opens in a new tab)
  2. Release

    Claude Sonnet 5.5

    1M context · $2 / $10 per 1M tokens

    support.claude.com (source, opens in a new tab)
  3. Release

    Claude Opus 5.5

    1M context · $4 / $20 per 1M tokens

    First model of the Claude 5.5 family; performs at the level of Claude Fable 5.1 on most work and costs 40% less to run than Opus 5.

    anthropic.com (source, opens in a new tab)
  4. Release

    Claude Fable 5.1 & Mythos 5.1

    1M context · $10 / $50 per 1M tokens

    Anthropic's most advanced models for coding and knowledge work. Price/context shown for Claude Fable 5.1 (models overview).

    support.claude.com (source, opens in a new tab)
  5. Release

    Claude Opus 5

    1M context · $5 / $25 per 1M tokens

    support.claude.com (source, opens in a new tab)
Full Claude timeline ›

Editor's picks

  1. BLA (Blind LLM Agents) vs. REA: Open-Source Tool Tries to Blind AI Reverse-Engineering Agents
  2. Coinbase CEO Brian Armstrong’s AI Agent Setup: A Chief-of-Staff Agent, Always-On Leads and One Review Queue
  3. OpenAI’s Navier–Stokes Proof: What the Lean Verification Does — and Doesn’t — Prove
  4. Gemini Krypton Leak: What’s Known About Google’s Rumored Checkpoint Said to Beat Gemini 4 Carbon
  5. Nous Research’s Hermes Agent Wins Over AI Builders: What the Open-Source Agent Does — and Where It Breaks