Docker
TMA-DOCKER-SOCK-PERMS
Ensure docker.sock is owned by root:docker with mode 660
ÉlevéeNiveau 1Automatiséedocker
Description
Limits who can control the Docker daemon.
Méthode de vérification
Méthode d'audit: Commande shell
shell
stat -Lc '%a %U %G' /var/run/docker.sock- Sortie attendue
660 root docker
Méthode de correction
Méthode de correction: Commande shell
shell
chown root:docker /var/run/docker.sock && chmod 660 /var/run/docker.sockPropriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- docker
- Référence
- CIS Docker Benchmark - Docker daemon configuration files / socket permissions
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target docker