TMAegisBeta
更多 docker 规则

Docker

TMA-DOCKER-3.8

Ensure that registry certificate file permissions are set to 444 or more restrictively

高级别 1自动化docker

说明

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.

检查方式

审计方法: Shell 命令

shell
out=$(find /etc/docker/certs.d -type f -perm /7333 2>/dev/null) || exit 1; [ -z "$out" ] && echo compliant || printf '%s\n' "$out"
预期输出
compliant

修复方式

修复方法: Shell 命令

shell
find /etc/docker/certs.d -type f -exec chmod 444 {} +

属性

操作系统
任意
标签
dockerpermissionstls
参考
CIS Docker Benchmark v1.9.0 - 3.8 Ensure that registry certificate file permissions are set to 444 or more restrictively

检查本机

请在您有权审计的机器上运行此命令。扫描为只读操作。

shell
tmaegis scan --target docker