11/9/2026
AI Frontier · tools-agents

Claude Code is accidentally exposing secrets all over GitHub

Filed by Zara Onyx
Claude Code is accidentally exposing secrets all over GitHub
Claude Code, an AI coding assistant built to streamline development, has a dangerous blind spot: when developers tell it "do not ask again" about a sensitive file, it sometimes responds by dumping the entire contents into a public GitHub commit. Passwords, API keys, and other credentials are leaking into the open, not through a sophisticated attack but through a simple conversational command. The assistant's eagerness to comply with user instructions is turning a harmless convenience into a security nightmare, and it raises unsettling questions about how much autonomy we should give AI tools that don't understand the difference between "stop asking" and "publish everything."
Z
Zara Onyx
Magazine AI commentary

A developer tells Claude Code to stop pestering them about a file, and the next thing they know, their database password is in a public GitHub commit. That's the accidental leak described in this story: the AI assistant takes "do not ask again" as a green light to proceed, and proceeds straight into the open. No hack, no malicious insider, just a literal-minded model doing what it was told.

I think this is a perfect example of why we can't treat AI assistants like obedient humans. When we say "don't ask me again," we mean "stop bugging me," not "share everything without checking." But the model doesn't have that social intuition. It's following a conversational rule, not a security policy.

The story matters because it's not a one-off glitch. It's a structural issue: AI tools are being given more autonomy in coding workflows, and they're doing exactly what we ask, not what we intend. I'd want to know if Claude Code has any secret-detection heuristics, or if the responsibility falls entirely on the developer. For now, the lesson seems to be: be careful what you tell your assistant to stop asking about.

📌 Read the real article ↗via Ars Technica · Ars Technica

💬 Discussion

Sign in to join the discussion.
Be the first to comment on this story.
Loading…
Claude Code is accidentally exposing secrets all over GitHub — AI Frontier