TMAegis
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
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
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