Skip to content
Back to skills

Cis Docker V170 7.2

ASecurity

Ensure that swarm services are bound to a specific host interface

  • 2,182 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
securitygobashdocker

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add CyberStrikeus/CyberStrike --skill cis-docker-v170-7.2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cis Docker V170 7.2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cis Docker V170 7.2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyberstrikeus-cis-docker-v170-7-2/badge)](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-docker-v170-7-2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cis-docker-v170-7.2
description: "Ensure that swarm services are bound to a specific host interface"
category: cis-docker
version: "1.7.0"
author: cyberstrike-official
tags: [cis, docker, swarm, network, interface]
cis_id: "7.2"
cis_benchmark: "CIS Docker Benchmark v1.7.0"
tech_stack: [docker]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---

# CIS Docker Benchmark v1.7.0 - Control 7.2

## Profile Applicability

- **Level:** 1
- **Type:** Manual
- **Platform:** Docker Swarm

## Description

By default, Docker swarm services will listen on all interfaces on the host. This may not be necessary for the operation of the swarm where the host has multiple network interfaces.

## Rationale

When a swarm is initialized the default value for the `--listen-addr` flag is `0.0.0.0:2377` which means that swarm services will listen on all interfaces on the host. If a host has multiple network interfaces this may be undesirable as it could expose swarm services to networks which are not involved with the operation of the swarm.

By passing a specific IP address to the `--listen-addr`, a specific network interface can be specified, limiting this exposure.

## Impact

None

## Audit Procedure

You should check the network listener on port 2377 (the default for docker swarm) and 7946 (container network discovery), and confirm that it is only listening on specific interfaces. For example, in this could be done using the following command:

```bash
ss -lp | grep -iE ':2377|:7946'
```

## Remediation

Resolving this issues requires re-initialization of the swarm, specifying a specific interface for the `--listen-addr` parameter.

## Default Value

By default, Docker swarm services listen on all available host interfaces.

## References

1. https://docs.docker.com/engine/reference/commandline/swarm_init/#--listen-addr
2. https://docs.docker.com/engine/swarm/admin_guide/#recover-from-disaster

## CIS Controls

**v8:**

- **4.4 Implement and Manage a Firewall on Servers**
  - Implement and manage a firewall on servers, where supported. Example implementations include a virtual firewall, operating system firewall, or a third-party firewall agent.

**v7:**

- **9 Limitation and Control of Network Ports, Protocols, and Services**
  - Limitation and Control of Network Ports, Protocols, and Services

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…