TMAegis
Mais regras para ros

TMA-ROS1-1.1.22

Disable Automounting

MédiaNível 1Automatizadaros

Descrição

autofs allows automatic mounting of devices, typically including CD/DVDs and USB drives. The audit requires autofs to be not installed or not enabled (systemctl is-enabled autofs). Host-level control from the CIS ROS Melodic benchmark (Ubuntu 18.04 robot hosts); run as root.

Como é verificado

Método de auditoria: Comando shell

shell
s=$(systemctl is-enabled autofs 2>/dev/null)
[ "$s" = enabled ] && echo 'autofs is enabled' || echo compliant
Saída esperada
compliant

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

Run one of the following commands: Run the following command to disable autofs : # systemctl --now disable autofs OR Run the following command to remove autofs # apt purge autofs

Propriedades

Sistemas operacionais
Qualquer
Tags
rosros1melodicsystem
Referência
CIS ROS Melodic Benchmark v1.0.0 - 1.1.22 Disable Automounting

Verificar este host

Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.

shell
tmaegis scan --target ros