Docker
TMA-DOCKER-1.1.6
Ensure auditing is configured for Docker files and directories - /etc/docker
SedangLevel 1Otomatisdocker
Deskripsi
Auditing the /etc/docker directory 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. Not applicable when the /etc/docker directory is not present.
Cara pemeriksaan
Metode audit: Perintah shell
shell
out=$(auditctl -l 2>/dev/null) || exit 1; printf '%s\n' "$out" | grep -q -e '/etc/docker' && echo compliant || echo missing- Output yang diharapkan
compliant
Cara perbaikan
Metode perbaikan: Panduan atau patch infrastruktur
Add '-w /etc/docker -k docker' to /etc/audit/rules.d/docker.rules, then load it with 'augenrules --load' (or restart auditd).
Properti
- Sistem operasi
- Apa saja
- Tag
- dockerauditdhost
- Referensi
- CIS Docker Benchmark v1.9.0 - 1.1.6 Ensure auditing is configured for Docker files and directories - /etc/docker
Periksa host ini
Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.
shell
tmaegis scan --target docker