OpenParable
Skip to content
← Back to skills

Cis Docker 5.32

DevOps & Security
cis-docker-5.32

Cis Docker 5.32 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 that the Docker socket is not mounted inside any containers

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.8.0/cis-docker-5.32/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-docker-5-32, 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.

5.32 Ensure that the Docker socket is not mounted inside any containers (Manual)

Profile Applicability

  • Level 1 - Docker - Linux

Description

The Docker socket docker.sock should not be mounted inside a container.

Rationale

If the Docker socket is mounted inside a container it could allow processes running within the container to execute Docker commands which would effectively allow for full control of the host.

Impact

None

Audit Procedure

You should run the following command:

docker ps --quiet --all | xargs docker inspect --format '{{ .Id }}: Volumes={{ .Mounts }}' | grep docker.sock

This would return any instances where docker.sock had been mapped to a container as a volume.

Remediation

You should ensure that no containers mount docker.sock as a volume.

Default Value

By default, docker.sock is not mounted inside containers.

References

  1. https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-socket-option

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v85.4 Restrict Administrator Privileges to Dedicated Administrator AccountsRestrict administrator privileges to dedicated administrator accounts on enterprise assets. Conduct general computing activities, such as internet browsing, email, and productivity suite use, from the user's primary, non-privileged account.●●●
v74 Controlled Use of Administrative PrivilegesControlled Use of Administrative Privileges