TMA-ROS1-1.1.22
Disable Automounting
MediaNivel 1Automatizadaros
Descripción
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.
Cómo se verifica
Método de auditoría: Comando de shell
shell
s=$(systemctl is-enabled autofs 2>/dev/null)
[ "$s" = enabled ] && echo 'autofs is enabled' || echo compliant- Salida esperada
compliant
Cómo se corrige
Método de corrección: Guía o parche de infraestructura
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
Propiedades
- Sistemas operativos
- Cualquiera
- Etiquetas
- rosros1melodicsystem
- Referencia
- CIS ROS Melodic Benchmark v1.0.0 - 1.1.22 Disable Automounting
Verificar este host
Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.
shell
tmaegis scan --target ros