turbot/docker_compliance
GitHub
Loading controls...

Control: 3.6 Ensure that /etc/docker directory permissions are set to 755 or more restrictively

Description

You should verify that the /etc/docker directory permissions are correctly set to 755 or more restrictively

The /etc/docker directory contains certificates and keys in addition to various sensitive files. It should therefore only be writeable by root to ensure that it can not be modified by a less privileged user.

Remediation

You should run the following command:

chmod 755 /etc/docker

This sets the permissions for the directory to 755.

Default Value

By default, the permissions for this directory are set to 755.

Usage

Run the control in your terminal:

steampipe check docker_compliance.control.cis_v160_3_6

Snapshot and share results via Steampipe Cloud:

steampipe login
steampipe check --share docker_compliance.control.cis_v160_3_6

SQL

This control uses a named query:

exec_permissions_755_etc_docker

Tags