TMAegis
docker のその他のルール

TMA-DOCKER-2.5

Ensure insecure registries are not used

高レベル 1自動docker

説明

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.

チェック方法

監査方法: シェルコマンド

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"
期待される出力
0

修正方法

修正方法: ガイダンスまたは IaC パッチ

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.

プロパティ

オペレーティングシステム
すべて
タグ
dockerdaemonregistry
参照
CIS Docker Benchmark v1.9.0 - 2.5 Ensure insecure registries are not used

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target docker