Workload misconfigurations

Ensure auditing is configured for Docker files and directories – /etc/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 privilege and its behavior depends on some key files and directories, one of these being /etc/docker. This holds various certificates and keys used for TLS communication between Docker daemon and Docker client and as such it should be audited.
  • Recommended Mitigation

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