TMAegisБета
Више правила за docker

Docker

TMA-DOCKER-5.24

Ensure that docker exec commands are not used with the user=root option

ВисокаНиво 2Ручни прегледdocker

Опис

You should not use docker exec with the --user=root option. Using the --user=root option in a docker exec command, executes it within the container as the root user. This could potentially be insecure, particularly when you are running containers with reduced capabilities or ... Reported as a manual review item: the audit needs a site-specific judgement.

Како се проверава

Метод провере: Ручни преглед

Ова препорука се не може проверити аутоматски. Скенирање је наводи са овим упутствима када проследите --include-manual.

If you have auditing enabled as recommended in Section 1, you can use the command below to filter out docker exec commands that use the --user=root option. ausearch -k docker | grep exec | grep user Expected state: You should not use the --user=root option in docker exec commands.

Како се исправља

Метод исправке: Смерница или закрпа инфраструктуре

You should not use the --user=root option in docker exec commands.

Својства

Оперативни системи
Било који
Ознаке
dockermanual
Референца
CIS Docker Benchmark v1.9.0 - 5.24 Ensure that docker exec commands are not used with the user=root option