TMAegisBeta
Thêm quy tắc cho docker

Docker

TMA-DOCKER-2.5

Ensure insecure registries are not used

CaoCấp 1Tự độngdocker

Mô tả

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.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh 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"
Đầu ra mong đợi
0

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

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.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
dockerdaemonregistry
Tham chiếu
CIS Docker Benchmark v1.9.0 - 2.5 Ensure insecure registries are not used

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target docker