TMAegisBeta
Thêm quy tắc cho docker

Docker

TMA-DOCKER-1.1.10

Ensure auditing is configured for Docker files and directories - /etc/default/docker

Trung bìnhCấp 2Tự độngdocker

Mô tả

Auditing /etc/default/docker records changes to and use of a security-relevant Docker/containerd component, supporting incident investigation. The audit lists the loaded kernel audit rules (auditctl -l, needs root) and looks for a watch or path rule on /etc/default/docker. Not applicable when /etc/default/docker is not present.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
out=$(auditctl -l 2>/dev/null) || exit 1; printf '%s\n' "$out" | grep -Eq -e '[ =]/etc/default/docker/?( |$)' && echo compliant || echo missing
Đầu ra mong đợi
compliant

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

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

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
dockerauditdhost
Tham chiếu
CIS Docker Benchmark v1.9.0 - 1.1.10 Ensure auditing is configured for Docker files and directories - /etc/default/docker

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target docker --level 2