Skip to content

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

  1. Rotate or revoke the credential at https://app.docker.com/settings/personal-access-tokens.
  2. Check the provider's audit logs for use you don't recognise.
  3. 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]