What matters in AI.

Subscribe

Anthropic fixes a Claude Code habit that leaked 2,539 secrets

Apiiro found 2,539 passwords and keys in 1,994 public code projects. Anthropic changed Claude Code in mid-November to stop the habit.

Apiiro, a security company, studied a file that the coding tool Claude Code makes. The file keeps each command that a developer approved for use with no more questions. Of 104,185 public copies of the file on GitHub, 1,122 held a secret. With code history and chat records, the count is 2,539 secrets in 1,994 projects. One company confirmed that its key was live.

How it works

A developer picks a selection in Claude Code that stops more questions for a command. The tool then saves the full command in a project file. If the command has a password, the file keeps it. Apiiro says the tool frequently committed the file itself.

The numbers

  • The file stayed public for a median of 217 days.
  • Two secret scanners missed about one in five of the 1,122 secrets.
  • GitGuardian, a different security company, counted 5,343 secrets that were in use when found.
  • Monthly leaks fell more than 90 percent from the April peak.

What is not fixed

The mid-November update keeps a rule that seems to hold a secret for the session only. It covers one tool. Copies in git history and in forks stay public.

Insight: A leaked key is live before anyone finds the file

Apiiro says an exposed file stayed public for a median of 217 days. Microsoft says that since August 2026 attackers use an agent tool. In one example it went from a public GitHub scan to data theft from Azure Key Vault in 5 minutes. This reads as a race that the defender loses, because a leaked key works until a person cancels it. Cancel the key. Removal of the file is not sufficient.

Sources

  1. 'Don't ask again': the AI coding-agent habit that leaked developers' passwords, and the fix that followedSecurityBrief Asia
  2. 'Don't ask again': the AI coding-agent habit that leaked developers' passwords, and the fix that followedSecurityBrief Australia
AI MATTER · NEWS · AI MATTER · NEWS ·24 NOV2026

Posted

Tags

More in Security

All Security news