LS-DOCKER-002: Docker Config Auth¶
| Severity | HIGH |
| Blast radius | Container registry compromise (supply chain) |
| Rotate at | https://docs.docker.com/engine/reference/commandline/login/ |
If this leaks¶
The base64-encoded auth field decodes to a username:password (or token) for a container registry, granting pull/push access to private images.
What to do¶
- Rotate or revoke the credential at https://docs.docker.com/engine/reference/commandline/login/.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
"auths"\s*:\s*\{[^}]*"auth"\s*:\s*"[A-Za-z0-9+/=]{8,}"
Suppress¶
On one line: # leakscan:ignore LS-DOCKER-002. For the whole project:
disable_rules: [LS-DOCKER-002]