| name | cis-docker-v170-1.1.4 |
| description | Ensure auditing is configured for Docker files and directories - /run/containerd |
| category | cis-docker |
| version | 1.7.0 |
| author | cyberstrike-official |
| tags | ["cis","docker","host-configuration","auditing","filesystem"] |
| cis_id | 1.1.4 |
| cis_benchmark | CIS Docker Benchmark v1.7.0 |
| tech_stack | ["docker","linux","auditd","containerd"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
CIS Docker Benchmark v1.7.0 - Control 1.1.4
Profile
- Level: 1 - Docker - Linux
- Assessment Status: Manual
Description
Audit /run/containerd.
Rationale
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.
Impact
Auditing can generate large log files. You should ensure that these are rotated and archived periodically. A separate partition should also be created for audit logs to avoid filling up any other critical partition.
Audit Procedure
You should verify that there is an audit rule applied to the /run/containerd directory.
For example, you could execute the command below:
auditctl -l | grep /run/containerd
This should list a rule for the /run/containerd directory.
Remediation
You should add a rule for the /run/containerd directory.
For example,
Add the line as below to the /etc/audit/rules.d/audit.rules file:
-a exit,always -F path=/run/containerd -F perm=war -k docker
Then, restart the audit daemon using the following command
systemctl restart auditd
Default Value
By default, Docker related files and directories are not audited.
References
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/system_design_guide/auditing-the-system_system-design-guide
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|
| v8 | 8.5 Collect Detailed Audit Logs Configure detailed audit logging for enterprise assets containing sensitive data. Include event source, date, username, timestamp, source addresses, destination addresses, and other useful elements that could assist in a forensic investigation. |