OpenParable
Skip to content
← Back to skills

Cis Docker 4.2

DevOps & Security
cis-docker-4.2

Cis Docker 4.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 that containers use only trusted base images

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

4.2 Ensure that containers use only trusted base images (Manual)

Profile Applicability

  • Level 1 - Docker - Linux

Description

You should ensure that container images you use are either written from scratch or are based on another established and trusted base image downloaded over a secure channel.

Rationale

Official repositories contain Docker images curated and optimized by the Docker community or by their vendor. There is no guarantee that these images are safe and do not contain security vulnerabilities or malicious code. Caution should therefore be exercised when obtaining container images from Docker and third parties and running these images should be reviewed in line with organizational security policy.

Impact

None.

Audit Procedure

You should review what Docker images are present on the host by executing the command below:

docker images

This command lists all the container images that are currently available for use on the Docker host. You should then review the origin of each image and review its contents in line with your organization's security policy.

You can use the command below to review the history of commits to the image.

docker history <imageName>

Remediation

The following procedures are useful for establishing trust for a specific image.

  • Configure and use Docker Content trust.
  • View the history of each Docker image to evaluate its risk, dependent on the sensitivity of the application you wish to deploy using it.
  • Scan Docker images for vulnerabilities at regular intervals.

Default Value

Not Applicable.

References

  1. https://docs.docker.com/engine/reference/commandline/pull/
  2. https://registry.hub.docker.com/
  3. https://access.redhat.com/blogs/766093/posts/1976473

CIS Controls

v8

16.7 Use Standard Hardening Configuration Templates for Application Infrastructure

Use standard, industry-recommended hardening configuration templates for application infrastructure components. This includes underlying servers, databases, and web servers, and applies to cloud containers, Platform as a Service (PaaS) components, and SaaS components. Do not allow in-house developed software to weaken configuration hardening.

v7

5.2 Maintain Secure Images

Maintain secure images or templates for all systems in the enterprise based on the organization's approved configuration standards. Any new system deployment or existing system that becomes compromised should be imaged using one of those images or templates.