Claude Code Has Been Leaking Secrets Through Its “Don’t Ask Again” Feature
Researchers found credentials exposed in Claude Code permission settings and related agent artifacts in public repositories. Approving a shell command permanently can save the whole command—including embedded credentials—as a permission rule; local ignore rules do not protect every way a file can enter a repository.
Apiiro reports 1,122 secrets in local settings files and another 1,160 across Git history, shared settings and transcripts. Treat those as the researchers’ findings, not a count of confirmed active credentials.