Docker Registry Credentials (config.json auths)

Detects container-registry credentials stored inline in a Docker client config.json (~/.docker/config.json), or in the same JSON once decoded from a Kubernetes kubernetes.io/dockerconfigjson pull secret. When no credential store is configured, docker login writes each registry's username and password to the auths object as one base64 string (auth), and may store an identitytoken or registrytoken. Base64 is an encoding, not encryption, so anyone holding the file can push and pull images as that account.

Type
regex
Engine
boost_regex
Confidence
medium
Confidence justification
Medium confidence. The auths/auth structure and its base64 encoding come from the Docker CLI source and the Kubernetes documentation, and the nesting is distinctive, but "auth" is a common JSON key and a base64 run has no checksum, so the value cannot be validated and a rotated or sample credential looks the same as a live one. Enforce tiers therefore require the enclosing auths object.
Jurisdictions
global
Regulations
Criminal Code Act 1995 (Cth), Computer Fraud and Abuse Act, Computer Misuse Act 1990
Frameworks
CIS Controls, ISO 27001, NIST CSF, SOC 2
Data categories
credentials, security
Scope
narrow
Risk rating
8
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, CrowdStrike DLP: Compatible, Palo Alto: Adapted from Purview, Netskope: Adapted from Purview

Pattern

(?-i)("auth"\s*:\s*"[A-Za-z0-9+/]{12,}={0,2}")

Corroborative evidence keywords

auths, docker login, config.json, dockerconfigjson, credsStore, registry

Proximity: 300 characters

Should match

Should not match

Known false positives

References