TMAegisBêta
Plus de règles pour docker

Docker

TMA-DOCKER-2.5

Ensure insecure registries are not used

ÉlevéeNiveau 1Automatiséedocker

Description

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.

Méthode de vérification

Méthode d'audit: Commande 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"
Sortie attendue
0

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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.

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
dockerdaemonregistry
Référence
CIS Docker Benchmark v1.9.0 - 2.5 Ensure insecure registries are not used

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target docker