Docker
TMA-DOCKER-2.2
Ensure network traffic is restricted between containers on the default bridge
Trung bìnhCấp 1Tự độngdocker
Mô tả
By default all containers on the default bridge can talk to each other without restriction. The audit reads the com.docker.network.bridge.enable_icc option of the default "bridge" network, which must be false (set by "icc": false).
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
shell
docker network inspect bridge --format '{{index .Options "com.docker.network.bridge.enable_icc"}}'- Đầu ra mong đợi
false
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
Set "icc": false in /etc/docker/daemon.json (or start dockerd with --icc=false) and restart the Docker daemon; use user-defined networks and --link for containers that must communicate.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- dockerdaemonnetwork
- Tham chiếu
- CIS Docker Benchmark v1.9.0 - 2.2 Ensure network traffic is restricted between containers on the default bridge
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target docker