TMAegisBeta
Više pravila za linux

Linux distributions

TMA-UBUNTU2004-6.3.1.2

Ensure auditd service is enabled and active

NiskaNivo 2Automatskalinux

Opis

Turn on the auditd daemon to record system events.

Kako se proverava

Metod provere: Komanda ljuske

shell
alt0() { command -v grep >/dev/null 2>&1 || { echo "step1: grep not installed"; return 1; }; command -v systemctl >/dev/null 2>&1 || { echo "step1: systemctl not installed"; return 1; }; o=$(bash -c 'systemctl is-enabled auditd | grep '"'"'^enabled'"'"'' 2>&1); printf '%s\n' "$o" | tr -s ' \t' '  ' | sed 's/^ //;s/ $//' | grep -Fxq -- enabled || { echo step1: missing enabled; return 1; }; command -v grep >/dev/null 2>&1 || { echo "step2: grep not installed"; return 1; }; command -v systemctl >/dev/null 2>&1 || { echo "step2: systemctl not installed"; return 1; }; o=$(bash -c 'systemctl is-active auditd | grep '"'"'^active'"'"'' 2>&1); printf '%s\n' "$o" | tr -s ' \t' '  ' | sed 's/^ //;s/ $//' | grep -Fxq -- active || { echo step2: missing active; return 1; }; }; if alt0; then echo compliant; fi
Očekivani izlaz
compliant

Kako se ispravlja

Metod ispravke: Smernica ili zakrpa infrastrukture

Run the following commands to unmask, enable and start auditd: # systemctl unmask auditd # systemctl enable auditd # systemctl start auditd

Svojstva

Operativni sistemi
ubuntu-20.04
Oznake
cis-convertedlinux
Referenca
CIS Ubuntu Linux 20.04 LTS Benchmark v3.0.0 - 6.3.1.2

Proverite ovaj računar

Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.

shell
tmaegis scan --target linux --level 2