Docker
TMA-DOCKER-1.1.8
Ensure auditing is configured for Docker files and directories - containerd.sock
MittelStufe 2Automatisiertdocker
Beschreibung
Auditing the containerd socket /run/containerd/containerd.sock 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 containerd.sock. Not applicable when the containerd socket /run/containerd/containerd.sock is not present.
So wird geprüft
Prüfmethode: Shell-Befehl
shell
out=$(auditctl -l 2>/dev/null) || exit 1; printf '%s\n' "$out" | grep -q -e 'containerd.sock' && echo compliant || echo missing- Erwartete Ausgabe
compliant
So wird behoben
Behebungsmethode: Anleitung oder Infrastruktur-Patch
Add '-w /run/containerd/containerd.sock -k docker' to /etc/audit/rules.d/docker.rules, then load it with 'augenrules --load' (or restart auditd).
Eigenschaften
- Betriebssysteme
- Beliebig
- Tags
- dockerauditdhost
- Referenz
- CIS Docker Benchmark v1.9.0 - 1.1.8 Ensure auditing is configured for Docker files and directories - containerd.sock
Diesen Host prüfen
Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.
shell
tmaegis scan --target docker --level 2