TMAegis
docker 관련 규칙 더 보기

TMA-DOCKER-2.13

Ensure that authorization for Docker client commands is enabled

보통레벨 2자동docker

설명

An authorization plugin gives granular control over which Docker API commands each client may run. Compliant when --authorization-plugin or a non-empty "authorization-plugins" list is configured. The audit reads the running dockerd command line (ps) together with /etc/docker/daemon.json.

점검 방법

감사 방식: 셸 명령

shell
args=$(ps -eo args 2>/dev/null) || exit 1; s=$(printf '%s\n' "$args" | grep '[d]ockerd'; cat /etc/docker/daemon.json 2>/dev/null); printf '%s\n' "$s" | grep -Eq -e '--authorization-plugin|"authorization-plugins"[[:space:]]*:[[:space:]]*\[[[:space:]]*("|$)' && echo compliant || echo missing
예상 출력
compliant

조치 방법

조치 방식: 가이드 또는 인프라 패치

Install an authorization plugin and add it to "authorization-plugins" in /etc/docker/daemon.json (or --authorization-plugin=<PLUGIN>), then restart the Docker daemon.

속성

운영 체제
모두
태그
dockerdaemon
참고 자료
CIS Docker Benchmark v1.9.0 - 2.13 Ensure that authorization for Docker client commands is enabled

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target docker --level 2