TMAegis
Mais regras para linux

TMA-ROCKY8-5.3.3.3.2

Ensure password history is enforced for the root user

MédiaNível 1Automatizadalinux

Descrição

If the pwhistory enforce_for_root option is enabled, the module will enforce password history for the root user as well

Como é verificado

Método de auditoria: Comando shell

shell
alt0() { command -v grep >/dev/null 2>&1 || { echo "step1: grep not installed"; return 1; }; o=$(bash -c 'grep -Pi -- '"'"'^\h*enforce_for_root\b'"'"' /etc/security/pwhistory.conf' 2>&1); printf '%s\n' "$o" | tr -s ' \t' '  ' | sed 's/^ //;s/ $//' | grep -Fxq -- enforce_for_root || { echo step1: missing enforce_for_root; return 1; }; }; if alt0; then echo compliant; fi
Saída esperada
compliant

Como é corrigido

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

Edit or add the following line in /etc/security/pwhistory.conf: enforce_for_root

Propriedades

Sistemas operacionais
rocky-8
Tags
cis-convertedlinux
Referência
CIS Rocky Linux 8 Benchmark v3.0.0 - 5.3.3.3.2

Verificar este host

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

shell
tmaegis scan --target linux