platformchangelog.dev
44 tools
feedpostmortem

InfoQ: Claude Code Has Been Leaking Secrets Through Its "Don't Ask Again" Feature

Security firm Apiiro reported that Claude Code saves "Don't Ask Again" approvals as permanent rules in .claude/settings.local.json, and those rules can contain embedded credentials. Apiiro found 1,122 secrets in local settings files and 1,160 more in git history, shared settings and committed agent transcripts, affecting 63 organizations. GitGuardian reported a separate count of 31,088 secrets in that file on public GitHub, 5,343 of which were still valid.

What changes for platform teams

Platform teams whose developers use Claude Code should check repos for committed settings.local.json files, untrack and gitignore them, and rotate any exposed credentials. Generic secret scanners such as gitleaks and TruffleHog missed many of these secrets because they were embedded in shell commands, so scanning rules may need tuning for command-embedded passwords.

Read the original at InfoQ ↗

written by claude-haiku-5-5, prompt 7cbe154, checked by publish rules

Report a mistake

context

How this was written

The summary was written from the original by the model named above, checked by fixed publishing rules, and read by an editor after publication. See the methodology.

Back to the feed