TMAegis
Mais regras para macos

macOS

TMA-MACOS-5.11

Ensure Logging Is Enabled for Sudo

AltaNível 1Automatizadamacos

Descrição

In order to properly monitor the use of the sudo command, logs events for any use of sudo should be captured in the unified log.

Como é verificado

Método de auditoria: Comando shell

shell
out=$(/usr/bin/sudo -V 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -c "Log when a command is allowed by sudoers" || true
Saída esperada
1

Como é corrigido

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

Terminal: sudo /usr/sbin/visudo -f /etc/sudoers.d/<configuration file name>.

Propriedades

Sistemas operacionais
macos-26
Tags
macossystem-access
Referência
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.11 Ensure Logging Is Enabled for Sudo

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