Docker
TMA-DOCKER-NO-PRIVILEGED
Ensure no running container is privileged
심각레벨 1자동docker
설명
Privileged containers have nearly full host access.
점검 방법
감사 방식: 셸 명령
shell
ids=$(docker ps -q) || exit 1; [ -z "$ids" ] && { echo 0; exit 0; }; out=$(docker inspect --format '{{.HostConfig.Privileged}}' $ids) || exit 1; printf '%s\n' "$out" | grep -c true || true- 예상 출력
0
조치 방법
조치 방식: 가이드 또는 인프라 패치
Remove 'privileged: true' from the container/compose/Kubernetes spec and redeploy
속성
- 운영 체제
- 모두
- 태그
- dockercontainers
- 참고 자료
- CIS Docker Benchmark - Container runtime
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target docker