Security firm Apiiro reports that when a user picks 'Yes, and don't ask again' in Claude Code, the command can be saved verbatim in the project's .claude/settings.local.json file, including any password or token it contains. Scanning 104,185 public copies of the file on GitHub, it found 1,122 holding at least one secret, with 1,379 distinct secrets in total, among them 379 database passwords and 23 AWS keys. Claude Code adds the file to the user's global git excludes but not to the project's own .gitignore. The researchers advise rotating every secret first and cleaning history afterwards.
What it means: Greek development teams increasingly rely on AI coding assistants, and the finding shows that the settings folders of these tools must be treated like .env files. The immediate action is to search every repository in the organisation, public and private, for .claude/settings.local.json and .claude/settings.json, and to check git history, because deleting the file removes neither old versions nor forks. Every password or key that ever appeared there should be rotated before any clean-up. Next, the file should be added to each project's .gitignore and to organisation templates, while developers should reference secrets through environment variables and approve command patterns rather than exact commands. Secret scanning in CI should be tuned to catch passwords inside command lines, not just known key formats, since the research shows common scanners miss many of these cases. If customer data was exposed, especially in databases holding personal data, a notification to the Hellenic Data Protection Authority within 72 hours may be required under GDPR. Contracts with external developers and agencies should also cover how such tools are configured and who is liable for leaked credentials.
Read the original on The Hacker News
Related service: Custom software
Related stories
- Remus infostealer uses a fake Google Sheets extension in Chrome to read Gmail
- PolinRider poisons GitHub repositories with a Python loader that reads commands from Ethereum
- Peninsula Energy halts Wyoming uranium operation after attack on control systems
- Thirteen malicious NuGet packages target .NET developers through fake hiring tests
- Kaspersky finds preinstalled Keenadu malware on more than 220,000 Android devices