← All work
Research / Security / AI / Coding agents

Coding Agents Copy Your Secrets to a Hidden File. Thousands Are on GitHub

Research with Matan Giladi into secrets saved in coding-agent permission files, git history, and transcripts: 2,539 distinct secrets across 1,994 public GitHub repositories.

Open the original ↗Original Apiiro cover showing Claude Code permission commands carrying secrets from a laptop into a public repository

When a permission rule keeps the secret

Coauthored with Matan Giladi. The Apiiro investigation examines how approving an exact shell command in Claude Code can retain its credentials in .claude/settings.local.json, and how those files reach public repositories.

The published census found 2,539 distinct secrets across 1,994 public GitHub repositories, including historical files, shared settings, and agent transcripts. These are findings from the article’s dated study, rather than a live count.

The article explains the collection method, scanner blind spots, prior work, disclosure, and cleanup guidance. Removing a file alone does not revoke a credential or erase its copies in git history, forks, and clones.

Related work.