Docker
TMA-DOCKER-4.10
Ensure only verified packages are installed
Description
You should verify the authenticity of packages before installing them into images. Verifying authenticity of software packages is essential for building a secure container image. Packages with no known provenance could potentially be malicious or have vulnerabilities that could be exploited. Reported as a manual review item: the audit needs a site-specific judgement.
How it is checked
Audit method: Manual review
Run the command below to get the list of images: docker images Run the command below for each image in the list above, and check how the authenticity of the packages is being determined. This could be via the use of GPG keys or other secure package distribution mechanisms. docker history <IMAGE ID> Alternatively, if you have access to Dockerfile for the image, verify that the authenticity of the packages is checked.
How it is fixed
Fix method: Guidance or infrastructure patch
You should use a secure package distribution mechanism of your choice to ensure the authenticity of software packages.
Properties
- Operating systems
- Any
- Tags
- dockermanual
- Reference
- CIS Docker Benchmark v1.9.0 - 4.10 Ensure only verified packages are installed