Vibitely Daily

Monday, 23 November 2026, story 1 of 7

Apiiro: Claude Code approvals leak secrets into public repos

Saved command approvals embed passwords and tokens; GitGuardian says 5,343 secrets on public GitHub were still valid when detected.

Illustration: A row of identical padlocked boxes on a shelf, one of them with its lid slightly open and small keys spilling out onto the surface below.

What happened

Security firm Apiiro says Claude Code has exposed secrets in public repositories through its "Don't Ask Again" option, InfoQ reports. Approving a shell command that way saves it as a permanent rule in .claude/settings.local.json, and the command can contain credentials, passwords or API tokens. Apiiro found 1,122 secrets in those files and 1,160 more in git history, the shared settings.json and chat transcripts stored in repos. It counts 63 affected organizations.

GitGuardian separately found 31,088 secrets in the file on public GitHub, 5,343 of them still valid when detected, plus 613 in Docker Hub images. The report describes no fix to the tool itself.

What it means

Treat this as a credential audit, not a bug to wait out. The file is created per project, so exposure depends on each repo's history. Claude Code adds it only to the developer's global git ignore, which does not help in a folder that becomes a repo later, a clone on another machine or a file already committed. Apiiro says Claude Code itself sometimes committed the file.

Removing the file from a repo does not undo exposure, which is why Apiiro stresses rotating every credential it held. A clean scan is also weak evidence: gitleaks and TruffleHog missed some secrets because they sat inside shell commands. Apiiro says the same pattern appears in transcripts, memory files and handoff notes. With no tool-side fix described, the burden likely stays with developers for now.

What to do: Search your repos and their history for .claude/settings.local.json, untrack and ignore it, rotate every credential it held, and move secrets into environment variables.

Source

Filed under Safety and security. Published .

"What it means" is analysis, not reporting. Found an error? Write to daily@vibitely.com.