Sign inGet started
All news
Agent Skills Directory & Benchmarking Platform

Your Coding Agent's 'Don't Ask Again' Button Leaked 2,539 Secrets. Here's What to Check Today

November 25, 2026

A convenience feature in Claude Code turned into a mass credential leak. Here's how it happened, what to check on your repos, and why agent skills need the same scrutiny.

Your Coding Agent's 'Don't Ask Again' Button Leaked 2,539 Secrets. Here's What to Check Today

TL;DR: A Claude Code convenience feature wrote live credentials into a settings file that ended up in public GitHub repos, exposing thousands of secrets and highlighting a verification gap in how teams adopt agent tooling.

The button seemed harmless. You're running Claude Code, it asks permission to run a command with a database password in it, and you click 'Yes, and don't ask again' so it stops nagging. That click wrote the literal command, including the password, into a settings file. And in thousands of cases, that file ended up in a public GitHub repository.

Apiiro's security team scanned more than 104,000 public copies of .claude/settings.local.json in early November. They found 1,122 files containing live-format secrets. Expanding the search to git history and shared settings turned up 2,539 distinct secrets across 1,994 repositories and 63 organizations. Over a third were direct database credentials, including production passwords and Supabase service-role keys. The rest included SSH root logins, AWS keys, and GitHub or npm tokens.

This isn't a story about a model leaking secrets. It's a story about an agent's local state files being treated as safe to commit. And it's a warning for any team adopting coding agents: the convenience features and the skills you bolt onto them are part of your attack surface.

How a Convenience Became a Credential Leak

Claude Code's approval flow is designed to reduce friction. When you approve a command and choose 'don't ask again,' the tool adds that command to an allowlist. The problem is that the allowlist is a plain file, .claude/settings.local.json, and it stores the command exactly as you approved it. If the command included an inline secret like PGPASSWORD=, sshpass -p, or a full connection URI, that secret is now sitting in the file.

Claude Code does add the file to your global git exclude. But that safeguard fails in common scenarios. If you run git init after the file exists, the global exclude doesn't apply. If you clone the repo to another machine, the file can be committed. If you commit without a repo-level .gitignore rule, the file goes public. Standard regex secret scanners also miss these inline-flag formats, so the usual pre-commit hooks don't catch them.

Anthropic's Claude Code lead Boris Cherny acknowledged the issue on Hacker News. Built-in secret scanning and auto-mode mitigations are reportedly in progress. That's a good step, but it doesn't undo the exposures that already happened. If your team uses Claude Code, you need to check your repos now.

The Second Problem: Your Agent Trusts Fake Data

The same week the Apiiro findings circulated, a separate red-team test on dev.to showed another weakness. Five models were tested with prompt injections. All three 'strong' models resisted imperative attacks like 'ignore your instructions.' But all three were hijacked within five attempts by a plain comparison table. The table looked like ordinary data, for example a fabricated 5.0% versus 4.0% conversion rate, and the models treated it as fact.

This matters because guardrails are calibrated for command-style injections. They aren't calibrated for plausible-looking fake data. If your agent reads web content, third-party documents, or shared files, an attacker doesn't need to shout instructions. They can just put a convincing table in front of the model. The model trusts it, and the next action it takes is based on poisoned context.

For developers and prompt engineers, the lesson is that prompt injection is no longer the only vector. Data poisoning is a distinct attack, and it bypasses defenses that only look for imperative language.

What to Check on Your Repos Today

Start with a simple search. Look for .claude/settings.local.json in your working trees and in your git history. If you find it, check whether it contains inline secrets. Then check your .gitignore files at the repo level, not just your global exclude. If you find exposed credentials, rotate them immediately. Don't wait for a vendor patch.

For ongoing protection, add commit gates. Tools like gitleaks v8.30, codex-security, and Claude-BugHunter can catch secrets before they reach a remote. Use OS-level sandboxing for agent processes, and consider PreToolUse hooks that inspect commands before they run. The AgDex guide that synthesized these findings also includes an emergency credential-rotation playbook, which is worth bookmarking.

The broader point is that agent configuration files are code. Treat them with the same review and hygiene you apply to source files.

The Verification Gap: Settings, Plugins, and Skills

The Claude Code leak is about configuration artifacts. But there's a larger verification gap in how teams adopt agent tooling. Settings files, plugins, and agent skills all enter your workflow with little or no audit. Agent skills are especially relevant. These are SKILL.md instruction packages for Claude Code, Codex, Cursor, Gemini CLI, and chat-app agents. Published research has found that roughly 26% of skills carry at least one vulnerability.

SkillzBench exists to close that gap. It's a free, independent directory of agent skills plus a free MCP tool that connects any agent to the skills you choose. The platform continuously crawls and dedupes skills from GitHub. Every version is pinned to a commit SHA, validated, license-checked, security-scanned, and quality-judged. Each skill is also benchmarked in a sandbox with the same model, with and without the skill, and the Lift is published in percentage points. A trust score from 0 to 100 summarizes security, quality, license, maintenance, and community signals. Lift is always shown separately from ratings, and money never touches scores.

The free MCP connector plus per-agent loadouts let you toggle skills and tools per agent. Each agent only sees what you chose. Everything on SkillzBench is free: the directory, the MCP connector, benchmarks, and alerts. The platform earns revenue from advertising in and around its blog articles, never by charging users, and ad money never influences scores or listings. For current numbers and verified results, visit skillzbench.com.

A Zero-Trust Habit for Agent Adoption

The pattern in both incidents is the same: convenience features outpace security defaults. A button that reduces friction can silently create exposure. A model that resists obvious attacks can still be fooled by a table. You can't assume the tooling has your back by default.

A zero-trust habit for agent adoption means verifying what you attach to your agent. Review settings files before you commit. Scan skills before you load them. Use tools that pin versions and publish independent benchmarks. SkillzBench's free directory and MCP connector are one way to do that. Browse the skills, check the trust scores and Lift results, and equip only what you need. You can test skills in a sandbox and see how they perform before they touch your workflow.

The 2,539 secrets are a warning. The next leak might come from a skill you didn't audit. The fix is to make verification part of your routine, not an afterthought.

Bottom line

The Claude Code settings leak is a reminder that agent tooling is still maturing. Convenience features can create exposure, and the skills you add to your agent are part of your attack surface. Check your repos for .claude/settings.local.json, rotate any exposed credentials, and add commit gates. Then extend that same scrutiny to the skills you load. SkillzBench's free directory and MCP connector give you a way to scan, benchmark, and control which skills each agent can see. Everything is free at skillzbench.com. Start with a search, then make verification a habit.

Key takeaways

  • Apiiro found 2,539 distinct secrets across 1,994 public repositories and 63 organizations, many traced to a single Claude Code settings file.
  • The 'Yes, and don't ask again' approval flow stored inline secrets in .claude/settings.local.json, and a global git exclude failed when repos were initialized later or cloned elsewhere.
  • Anthropic acknowledged the issue; built-in secret scanning and mitigations are in progress.
  • Red-team tests show data poisoning (fake tables) can hijack strong models even when they resist imperative prompt injections.
  • SkillzBench's free directory and MCP connector let you scan, version-pin, and control which agent skills each agent can see, closing part of the verification gap.