TMAegis베타
docker 관련 규칙 더 보기

Docker

TMA-DOCKER-5.28

Ensure that Docker commands always make use of the latest version of their image

보통레벨 1수동 검토docker

설명

You should always ensure that you are using the latest version of the images within your repository and not cached older versions. Multiple Docker commands such as docker pull, docker run etc. are known to have an issue where by default, they extract the local copy of the image, if present, even though there is an updated version of the image with ... Reported as a manual review item: the audit needs a site-specific judgement.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.

You should carry out the following steps: Step 1: Open your image repository and list the image version history for the image you are inspecting. Step 2: Observe the status when the docker pull command is triggered. If the status is shown as Image is up to date, it means that you are getting the cached version of the image. Step 3: Match the version of the image you are running to the latest version reported in your repository and this will tell you whether you are running the cached version or the latest copy.

조치 방법

조치 방식: 가이드 또는 인프라 패치

You should use proper version pinning mechanisms (the "latest" tag which is assigned by default is still vulnerable to caching attacks) to avoid extracting cached older versions. Version pinning mechanisms should be used for base images, packages, and entire images. You can customize version pinning rules according to your requirements.

속성

운영 체제
모두
태그
dockermanual
참고 자료
CIS Docker Benchmark v1.9.0 - 5.28 Ensure that Docker commands always make use of the latest version of their image