TMAegisBeta
Mais regras para docker

Docker

TMA-DOCKER-2.5

Ensure insecure registries are not used

AltaNível 1Automatizadadocker

Descrição

Insecure registries are contacted without TLS verification, exposing image pulls to tampering. The audit lists the registry index configs that docker info reports as not secure (the default loopback CIDRs are not listed) and expects none.

Como é verificado

Método de auditoria: Comando shell

shell
out=$(docker info --format '{{range .RegistryConfig.IndexConfigs}}{{if not .Secure}}{{.Name}}{{"\n"}}{{end}}{{end}}') || exit 1; n=$(printf '%s\n' "$out" | grep -c . || true); echo "$n"
Saída esperada
0

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

Remove entries from "insecure-registries" in /etc/docker/daemon.json (and --insecure-registry start-up flags), configure TLS on the registries, and restart the Docker daemon.

Propriedades

Sistemas operacionais
Qualquer
Tags
dockerdaemonregistry
Referência
CIS Docker Benchmark v1.9.0 - 2.5 Ensure insecure registries are not used

Verificar este host

Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.

shell
tmaegis scan --target docker