Claude Code leaked thousands of passwords on GitHub. Is your product one of them?
If your product was built or is maintained with AI coding tools, there's a story this month you should know about, even if you've never opened a terminal.
What happened
In November, security researchers at Apiiro found that Claude Code, one of the most popular AI coding assistants, had saved real passwords and keys into files that ended up on public GitHub. They counted 2,539 secrets across 1,994 public repositories, including database passwords, cloud keys and server logins. A separate scan by GitGuardian reported a much higher count.
Nobody hacked Anthropic. The leak came from a convenience button.
How a convenience button leaks a password
Claude Code asks permission before running commands. One of the answers is "Yes, and don't ask again." Pick it, and the tool remembers the exact command in a small settings file inside the project.
If that command contained a password (say, a developer pasted a database login to fix something quickly), the password is now sitting in plain text in that file. If the project is pushed to a public GitHub repository, anyone can read it. Researchers found more than a third of the leaked secrets opened a database directly.
The tool tries to keep the file out of GitHub, but only on the developer's own computer. A new laptop, a contractor's machine or a teammate's clone doesn't get that protection.
Why this matters if you're not technical
You don't need to understand the file to own the risk. A leaked database password means customer data. A leaked cloud key means someone else running up your bill. And the people most exposed are fast-moving teams: a solo contractor, an agency moving quickly, or a founder building with AI tools on weekends.
AI tools make your team faster. They don't make anyone responsible for what those tools leave behind.
Five questions to ask your team this week
- Do we use Claude Code, Cursor or similar tools on our product? Most teams do now. That's fine.
- Is any of our code public on GitHub? Including old experiments, forks and contractors' personal accounts.
- Have we searched for
.claude/settings.local.jsonin our repositories, including history? Deleting the file today doesn't remove it from past versions. - If we found a password, did we change it? Rotating the password is the fix. Hiding the file isn't.
- Where do our passwords live? The answer should be a secrets manager, not someone's chat history or command line.
If the answers are "not sure," that's the real finding.
The bigger lesson
AI coding tools are now part of how most products get built, and that's a good thing. But every shortcut a tool offers is a decision someone should be accountable for. Growing products need someone watching the whole system: code, access, keys and the tools touching all three.
That's the work we do at Input Logic. We take ongoing responsibility for digital products, including the unglamorous parts like this. If you'd like a second set of eyes on how your product is built and who has access to what, let's talk.
Sources: The Hacker News, Cybernews, Privacy Guides