TMAegisBeta
Más reglas para docker

Docker

TMA-DOCKER-1.1.11

Ensure auditing is configured for Docker files and directories - /etc/docker/daemon.json

MediaNivel 2Automatizadadocker

Descripción

Auditing the daemon configuration /etc/docker/daemon.json records changes and use of a security-critical Docker component, supporting incident investigation. The audit lists the loaded kernel audit rules (auditctl -l, needs root) and looks for a watch on /etc/docker/daemon.json. Not applicable when the daemon configuration /etc/docker/daemon.json is not present.

Cómo se verifica

Método de auditoría: Comando de shell

shell
out=$(auditctl -l 2>/dev/null) || exit 1; printf '%s\n' "$out" | grep -q -e '/etc/docker/daemon.json' && echo compliant || echo missing
Salida esperada
compliant

Cómo se corrige

Método de corrección: Guía o parche de infraestructura

Add '-w /etc/docker/daemon.json -k docker' to /etc/audit/rules.d/docker.rules, then load it with 'augenrules --load' (or restart auditd).

Propiedades

Sistemas operativos
Cualquiera
Etiquetas
dockerauditdhost
Referencia
CIS Docker Benchmark v1.9.0 - 1.1.11 Ensure auditing is configured for Docker files and directories - /etc/docker/daemon.json

Verificar este host

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

shell
tmaegis scan --target docker --level 2