TMAegis
Mais regras para macos

macOS

TMA-MACOS-5.6

Ensure the "root" Account Is Disabled

AltaNível 1Automatizadamacos

Descrição

The root account is a superuser account that has access privileges to perform any actions and read/write to any file on the computer. With some versions of Linux, the system administrator may commonly use the root account to perform administrative functions. Previous versions of the benchmark included a graphical check for the audit and remediation as well as a different Terminal command for the remediation.

Como é verificado

Método de auditoria: Comando shell

shell
out=$(/usr/bin/dscl . -read /Users/root AuthenticationAuthority 2>&1)
printf '%s\n' "$out" | /usr/bin/grep -q "No such key: AuthenticationAuthority" && echo compliant
Saída esperada
compliant

Como é corrigido

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

Terminal: sudo /usr/bin/fdesetup remove -user root 2>/dev/null ; sudo /usr/bin/dscl /Local/Default delete /Users/root AuthenticationAuthority.

Propriedades

Sistemas operacionais
macos-26
Tags
macossystem-access
Referência
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.6 Ensure the "root" Account Is Disabled

Verificar este host

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

shell
tmaegis scan --target macos