TMAegisベータ
linux のその他のルール

Linux distributions

TMA-SLES15-6.3.1.4

Ensure auditd service is enabled and active

低レベル 2自動linux

説明

Turn on the auditd daemon to record system events.

チェック方法

監査方法: シェルコマンド

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
期待される出力
compliant

修正方法

修正方法: ガイダンスまたは IaC パッチ

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

プロパティ

オペレーティングシステム
sles-15
タグ
cis-convertedlinux
参照
CIS SUSE Linux Enterprise 15 Benchmark v2.0.1 - 6.3.1.4

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target linux --level 2