TMAegis
Más reglas para docker

TMA-DOCKER-3.8

Ensure that registry certificate file permissions are set to 444 or more restrictively

AltaNivel 1Automatizadadocker

Descripción

Registry certificate files under /etc/docker/certs.d must have mode 444 or more restrictive. The audit lists files under /etc/docker/certs.d with permission bits outside 444; not applicable when /etc/docker/certs.d does not exist.

Cómo se verifica

Método de auditoría: Comando de shell

shell
out=$(find /etc/docker/certs.d -type f -perm /7333 2>/dev/null) || exit 1; [ -z "$out" ] && echo compliant || printf '%s\n' "$out"
Salida esperada
compliant

Cómo se corrige

Método de corrección: Comando de shell

shell
find /etc/docker/certs.d -type f -exec chmod 444 {} +

Propiedades

Sistemas operativos
Cualquiera
Etiquetas
dockerpermissionstls
Referencia
CIS Docker Benchmark v1.9.0 - 3.8 Ensure that registry certificate file permissions are set to 444 or more restrictively

Verificar este host

Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.

shell
tmaegis scan --target docker