TMAegis
Más reglas para ros

TMA-ROS1-6.2.3

Ensure root is the only UID 0 account

AltaNivel 1Automatizadaros

Descripción

Any account with UID 0 has superuser privileges on the system. The audit requires root to be the only UID 0 account. 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
u=$(awk -F: '($3 == 0) {print $1}' /etc/passwd) || exit 1
[ "$u" = root ] && echo compliant || echo "UID 0 accounts: $(printf '%s ' $u)"
Salida esperada
compliant

Cómo se corrige

Método de corrección: Guía o parche de infraestructura

Remove any users other than root with UID 0 or assign them a new UID if appropriate.

Propiedades

Sistemas operativos
Cualquiera
Etiquetas
rosros1melodicmaintenance
Referencia
CIS ROS Melodic Benchmark v1.0.0 - 6.2.3 Ensure root is the only UID 0 account

Verificar este host

Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.

shell
tmaegis scan --target ros