A security vulnerability has been discovered in Claude Code, where passwords and sensitive tokens can be inadvertently saved in the `.claude/settings.local.json` file. This file, intended to remain local, was found to have over 100,000 public copies on GitHub, with a significant number containing leaked credentials. The issue arises when users approve commands containing sensitive information, which Claude Code then saves as an allow rule. Anthropic has stated that the file is typically gitignored by default, suggesting these instances involved manual creation or checking in of the file. AI
IMPACT Exposes a security risk for developers using AI coding assistants, requiring immediate credential rotation and configuration review.
RANK_REASON Security vulnerability report about a specific tool's configuration file.
Read on dev.to — Claude Code tag →
- Anthropic
- Apiiro
- AWS
- Boris Cherny
- Claude Code
- .claude/settings.local.json
- GBHackers
- GitHub
- GitLab
- Gitleaks
- iTnews
- The Hacker News
- trufflehog
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →