Skip to content
FourWeekMBA·Indexed by this site · Originally published· Event →SelectedAttention47

Apiiro says most of 2,539 leaked credentials were hidden in a single Claude Code file

泄露的2,539个秘密大部分都藏在一个Claude代码文件中—— FourWeekMBA

AI summary

Security firm Apiiro said it found 2,539 real credentials in 1,994 public GitHub repositories, most of them in .claude/settings.local.json settings files generated by Anthropic Claude Code. The cause is that after developers choose "Yes, don't ask again" for suggested commands, Claude Code writes the full command, including passwords or keys, into that file; Apiiro said this is Claude Code's own behavior rather than model behavior, and reproduced it on Opus 5.5 and Fable 5.1. Of 104,185 public copies of that file, 1,122 contained real credentials, totaling 1,379 distinct credentials, including 636 provider keys and 743 passwords or tokens for public hosts; TruffleHog flagged 643 of them (57.3%), gitleaks flagged 564 (50.3%), and neither flagged 215 (19.2%).

Why it was selected

The report provides the scale of leaks of Claude Code settings files in public repositories and the proportion missed by scanners, offering a reference for auditing the configuration files of similar agents.

Read originalfourweekmba.com