Workload misconfigurations

Ensure auditing is configured for Docker files and directories – /etc/sysconfig/docker (Automated)

Risk Level

Informational (4)

Platform(s)
  • N/A

Compliance Frameworks

Description

As well as auditing the normal Linux file system and system calls, you should also audit the Docker daemon. Because this daemon runs with root privileges it is very important to audit its activities and usage. Its behavior depends on some key files and directories and /etc/sysconfig/docker is one such file as it contains various parameters related to the Docker daemon when run on CentOS and RHEL based distributions. If present, it is important that it is audited.
  • Recommended Mitigation

    You should add a rule for /etc/sysconfig/docker file. For example: Add the line: '-w /etc/sysconfig/docker -k docker' to the /etc/audit/audit.rules file. Then, restart the audit daemon using the following command: systemctl restart auditd