What matters in AI.

Subscribe

Claude Code saves secrets from 63 organizations in public files

Apiiro found 1,122 secrets in public copies of one Claude Code file, and GitGuardian found 31,088 on GitHub.

Apiiro, a security company for AI agents, says that Claude Code, the coding tool of Anthropic, keeps secrets in a local settings file. Apiiro found 1,122 secrets in these files on public code sites, and 1,160 more in code history and chat records. It says that 63 organizations are affected, with cloud keys, production passwords and tokens.

How it works

A developer approves a shell command and picks the selection that stops more prompts for it. The tool then saves the full command as a permanent rule. If the command has a password or token, the file has it too.

Apiiro says that on some occasions Claude Code, and not the developer, committed the file.

The numbers

GitGuardian, a different security company, says that it found 31,088 secrets in the same file on public GitHub. It says that 5,343 of them worked when it found them. It also found 613 secrets in Docker Hub images.

What is not known

Apiiro says that gitleaks and TruffleHog, 2 secret scanners, did not flag all of the secrets. The secrets are in shell commands. The source gives no reply from Anthropic.

Insight: Agent files hold the keys and the proof

Apiiro says the file shows the systems that a developer can use and the passwords for them, at the same path in each project. In October 2026, a hacker left Claude Code session records open, and CrowdStrike used them to connect the attack to bank breaches. One agent record helps the attacker who finds it and the team that defends, and the first to find it wins. Agent files are sensitive data.

Sources

  1. Claude Code Has Been Leaking Secrets Through Its "Don't Ask Again" Featureinfoq.com
AI MATTER · NEWS · AI MATTER · NEWS ·22 NOV2026

Posted

Tags

Learn the terms in this story

Guides for this story

More in Security

All Security news