OpenParable
Skip to content
← Back to skills

Cis Docker V160 2.2

DevOps & Security
cis-docker-v160-2.2

Cis Docker V160 2.2 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Ensure network traffic is restricted between containers on the default bridge

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Server_Software/Docker/CIS_Docker_Benchmark_v1.6.0/cis-docker-v160-2.2/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-docker-v160-2-2, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Ensure network traffic is restricted between containers on the default bridge

Profile Applicability: Level 1 - Docker - Linux

Assessment Status: Manual

Description

By default, all network traffic is allowed between containers on the same host on the default network bridge. If not desired, restrict all inter-container communication. Link specific containers together that require communication. Alternatively, you can create custom network and only join containers that need to communicate to that custom network.

Rationale

By default, unrestricted network traffic is enabled between all containers on the same host on the default network bridge. Thus, each container has the potential of reading all packets across the container network on the same host. This might lead to an unintended and unwanted disclosure of information to other containers. Hence, restrict inter-container communication on the default network bridge.

Impact

Inter-container communication would be disabled on the default network bridge. If any communication between containers on the same host is desired, then it needs to be explicitly defined using container linking or alternatively custom networks have to be defined.

Audit Procedure

Run the below command and verify that the default network bridge has been configured to restrict inter-container communication.

docker network ls --quiet | xargs docker network inspect --format '{{ .Name }}: {{ .Options }}'

It should return com.docker.network.bridge.enable_icc:false for the default network bridge.

Remediation

Edit the Docker daemon configuration file to ensure that icc is disabled. It should include the following setting:

"icc": false

Alternatively, run the docker daemon directly and pass --icc=false as an argument. For Example,

dockerd --icc=false

Alternatively, you can follow the Docker documentation and create a custom network and only join containers that need to communicate to that custom network. The --icc parameter only applies to the default docker bridge, if custom networks are used then the approach of segmenting networks should be adopted instead.

In order for this control to be fully effective, all containers connected to the docker0 bridge should drop the NET_RAW capability, otherwise a compromised container could use raw ethernet packets to communicate with other containers despite this restriction.

Default Value

By default, all inter-container communication is allowed on the default network bridge.

References

  1. https://docs.docker.com/network/
  2. https://github.com/docker/cli/blob/v20.10.1/man/dockerd.8.md

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v812.3 Securely Manage Network InfrastructureSecurely manage network infrastructure. Example implementations include version-controlled-infrastructure-as-code, and the use of secure network protocols, such as SSH and HTTPS.●●
v79 Limitation and Control of Network Ports, Protocols, and ServicesLimitation and Control of Network Ports, Protocols, and Services

Profile/Assessment Status

Profile: Level 1 - Docker - Linux Assessment Status: Manual