TMA-DOCKER-3.8
Ensure that registry certificate file permissions are set to 444 or more restrictively
HighLevel 1Automateddocker
Description
Registry certificate files under /etc/docker/certs.d must have mode 444 or more restrictive. The audit lists files under /etc/docker/certs.d with permission bits outside 444; not applicable when /etc/docker/certs.d does not exist.
How it is checked
Audit method: Shell command
shell
out=$(find /etc/docker/certs.d -type f -perm /7333 2>/dev/null) || exit 1; [ -z "$out" ] && echo compliant || printf '%s\n' "$out"- Expected output
compliant
How it is fixed
Fix method: Shell command
shell
find /etc/docker/certs.d -type f -exec chmod 444 {} +Properties
- Operating systems
- Any
- Tags
- dockerpermissionstls
- Reference
- CIS Docker Benchmark v1.9.0 - 3.8 Ensure that registry certificate file permissions are set to 444 or more restrictively
Check this host
Run this on a machine you are allowed to audit. The scan is read-only.
shell
tmaegis scan --target docker