Workload misconfigurations

Ensure auditing is configured for Docker files and directories – /var/lib/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 all Docker related files and directories. The Docker daemon runs with root privileges and its behaviour depends on some key files and directories. /run/containerd is one such directory. As it holds all the information about containers it should be audited.
  • Recommended Mitigation

    You should add a rule for the /var/lib/docker directory. For example, Add the line: '-a exit,always -F path=/var/lib/docker -F perm=war -k docker' to the /etc/audit/audit.rules file. Then, restart the audit daemon using the following command: systemctl restart auditd