TMAegis
Mais regras para ros

TMA-ROS1-6.2.3

Ensure root is the only UID 0 account

AltaNível 1Automatizadaros

Descrição

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.

Como é verificado

Método de auditoria: Comando shell

shell
u=$(awk -F: '($3 == 0) {print $1}' /etc/passwd) || exit 1
[ "$u" = root ] && echo compliant || echo "UID 0 accounts: $(printf '%s ' $u)"
Saída esperada
compliant

Como é corrigido

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

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

Propriedades

Sistemas operacionais
Qualquer
Tags
rosros1melodicmaintenance
Referência
CIS ROS Melodic Benchmark v1.0.0 - 6.2.3 Ensure root is the only UID 0 account

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