TMAegisBeta
Mais regras para linux

Linux distributions

TMA-ALINUX2-4.2.1.4

Ensure rsyslog is configured to send logs to a remote log host

MédiaNível 1Automatizadalinux

Descrição

The rsyslog utility supports the ability to send logs it gathers to a remote log host running syslogd(8) or to receive messages from remote hosts, reducing administrative overhead.

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 "^*.*[^I][^I]*@" /etc/rsyslog.conf /etc/rsyslog.d/*.conf' 2>&1); printf '%s\n' "$o" | tr -s ' \t' '  ' | sed 's/^ //;s/ $//' | grep -Fxq -- '*.* @@loghost.example.com' || { echo step1: missing '*.* @@loghost.example.com'; 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 the /etc/rsyslog.conf and /etc/rsyslog.d/*.conf files and add the following line (where loghost.example.com is the name of your central log host). *.* @@loghost.example.com Run the following command to reload the rsyslogd configuration: # pkill -HUP rsyslogd

Propriedades

Sistemas operacionais
alinux-2
Tags
cis-convertedlinux
Referência
CIS Aliyun Linux 2 Benchmark v1.0.0 ARCHIVE - 4.2.1.4

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