Docker
TMA-DOCKER-7.3
Ensure that all Docker swarm overlay networks are encrypted
보통레벨 1자동docker
설명
Overlay network traffic between swarm nodes is unencrypted by default. On an active swarm node every overlay network must have the encrypted option; compliant when swarm mode is inactive.
점검 방법
감사 방식: 셸 명령
shell
st=$(docker info --format '{{.Swarm.LocalNodeState}}') || exit 1; [ "$st" = active ] || { echo compliant; exit 0; }; ns=$(docker network ls --filter driver=overlay --quiet) || exit 1; [ -z "$ns" ] && { echo compliant; exit 0; }; out=$(docker network inspect --format '{{.Name}} {{index .Options "encrypted"}}' $ns) || exit 1; bad=$(printf '%s\n' "$out" | awk 'NF<2 {print $1}'); [ -z "$bad" ] && echo compliant || printf 'unencrypted overlay: %s\n' $bad- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Create overlay networks with --opt encrypted (docker network create -d overlay --opt encrypted <name>) and move services onto them.
속성
- 운영 체제
- 모두
- 태그
- dockerswarmnetwork
- 참고 자료
- CIS Docker Benchmark v1.9.0 - 7.3 Ensure that all Docker swarm overlay networks are encrypted
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target docker