Docker
TMA-DOCKER-1.1.7
Ensure auditing is configured for Docker files and directories - docker.service
SrednjaNivo 2Automatskadocker
Opis
Auditing the docker.service unit file 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 docker.service. Not applicable when the docker.service unit file is not present.
Kako se proverava
Metod provere: Komanda ljuske
shell
out=$(auditctl -l 2>/dev/null) || exit 1; printf '%s\n' "$out" | grep -q -e 'docker.service' && echo compliant || echo missing- Očekivani izlaz
compliant
Kako se ispravlja
Metod ispravke: Smernica ili zakrpa infrastrukture
Add '-w /usr/lib/systemd/system/docker.service -k docker' to /etc/audit/rules.d/docker.rules, then load it with 'augenrules --load' (or restart auditd).
Svojstva
- Operativni sistemi
- Bilo koji
- Oznake
- dockerauditdhost
- Referenca
- CIS Docker Benchmark v1.9.0 - 1.1.7 Ensure auditing is configured for Docker files and directories - docker.service
Proverite ovaj računar
Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.
shell
tmaegis scan --target docker --level 2