Skip to content

Claude Code Has Been Leaking Secrets through its "Don't Ask Again" Feature

8.1 relevance
Score Breakdown
technical depth
8
novelty
8
actionability
9
community
7
strategic
7
personal
9

Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.

Security vulnerability in Claude Code, highly actionable for developers using AI coding tools.

AI/ML infoq.com
Claude Code Has Been Leaking Secrets through its "Don't Ask Again" Feature
Summary

Claude Code's "Don't Ask Again" feature leaks secrets by storing approved shell commands—including embedded credentials—in `.claude/settings.local.json` files that often end up in public repos. Apiiro found 1,122 secrets in these files and 1,160 more in git history across 63 organizations, while GitGuardian later discovered 31,088 secrets on public GitHub (5,343 still valid) plus 613 in Docker Hub images. Standard scanners like gitleaks and TruffleHog miss these because secrets are embedded inside command strings, and the file is added only to the developer's global gitignore—not the repo's—so it doesn't travel with the project.

Author

Sergio De Simone

More from Sergio De Simone →