LS-DOCKER-001: Docker Hub Token¶
| Severity | HIGH |
| Blast radius | Container registry compromise (supply chain) |
| Rotate at | https://app.docker.com/settings/personal-access-tokens |
--verify |
GET https://hub.docker.com/v2/access-tokens |
If this leaks¶
Allows pulling private images and, with write scope, pushing malicious image tags.
What to do¶
- Rotate or revoke the credential at https://app.docker.com/settings/personal-access-tokens.
- 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¶
\bdckr_pat_[A-Za-z0-9_\-]{27}\b
Suppress¶
On one line: # leakscan:ignore LS-DOCKER-001. For the whole project:
disable_rules: [LS-DOCKER-001]