TMAegisBeta
Weitere Regeln für linux

Linux distributions

TMA-ROCKY9-6.2.1.4

Ensure auditd service is enabled and active

NiedrigStufe 2Automatisiertlinux

Beschreibung

The auditd service is the userspace daemon of the Linux Auditing System. When enabled and active it records system events to the audit log.

So wird geprüft

Prüfmethode: Shell-Befehl

shell
alt0() { command -v systemctl >/dev/null 2>&1 || { echo "step1: systemctl not installed"; return 1; }; o=$(bash -c 'systemctl is-enabled auditd' 2>&1); printf '%s\n' "$o" | tr -s ' \t' '  ' | sed 's/^ //;s/ $//' | grep -Fxq -- enabled || { echo step1: missing enabled; return 1; }; command -v systemctl >/dev/null 2>&1 || { echo "step2: systemctl not installed"; return 1; }; o=$(bash -c 'systemctl is-active auditd' 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
Erwartete Ausgabe
compliant

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

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

Eigenschaften

Betriebssysteme
rocky-9
Tags
cis-convertedlinux
Referenz
CIS Rocky Linux 9 Benchmark v3.0.0 - 6.2.1.4

Diesen Host prüfen

Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.

shell
tmaegis scan --target linux --level 2