Docker
TMA-DOCKER-2.4
Ensure Docker is allowed to make changes to iptables
보통레벨 1자동docker
설명
Docker must manage iptables so that container networking rules stay consistent with the daemon configuration. Compliant unless iptables is explicitly set to false. 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 '--iptables[= ]+false|"iptables"[[:space:]]*:[[:space:]]*false' && echo noncompliant || echo compliant- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Remove "iptables": false from /etc/docker/daemon.json and --iptables=false from the dockerd start-up flags, then restart the Docker daemon.
속성
- 운영 체제
- 모두
- 태그
- dockerdaemonnetwork
- 참고 자료
- CIS Docker Benchmark v1.9.0 - 2.4 Ensure Docker is allowed to make changes to iptables
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target docker