Claude Code permission files leak thousands of secrets from public repositories and Docker images
VULNERABILITYAnthropicredteam/daily · 1 source
- Severity
- High
- Sources
- 1
What happened
An AI coding tool called Claude Code saves some approved commands in a settings file, and those commands can include passwords and access keys. Security researchers found thousands of these secrets exposed in public code projects and online container images, and many were still working. Deleting the file from a project does not undo the exposure, so affected developers need to replace their secrets.
Like I’m new · Written by AI from 1 source · Wrong?
What to do
- Rotate any credentials that appear in Claude Code settings.local.json files, since removing the file from a repository does not revoke them.
- Remove .claude/settings.local.json from Git and from Docker build contexts, and exclude it through .dockerignore.
- Check previously published container images for leftover secrets and rebuild them without the file.
- Use environment variables instead of hardcoding credentials into commands.
Written by AI from the sources, checked against them
Full story timeline · 1 update
Who reported · 1 outlet
CSO Online
Who and what is in it
Companies
Products