A security analysis by Apiiro has uncovered a significant vulnerability in Claude Code, where local settings files can inadvertently expose sensitive credentials. The issue arises when users grant Claude Code permission to run shell commands, and these commands contain secrets like database passwords or API keys. These secrets are then stored in plain text within the `.claude/settings.local.json` file, which can be accidentally committed to version control, even if Claude Code attempts to add the file to a `.gitignore`. Apiiro's scan found over 2,500 secrets across nearly 2,000 repositories, highlighting the risk of durable configuration storing ephemeral secrets. AI
IMPACT Highlights risks of credential exposure in AI-powered developer tools and the need for secure configuration practices.
RANK_REASON Security vulnerability discovered in a developer tool.
Read on dev.to — Claude Code tag →
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →