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

Linux distributions

TMA-SLES15-6.3.2.2

Ensure audit logs are not automatically deleted

低レベル 2自動linux

説明

The max_log_file_action setting determines how to handle the audit log file reaching the max file size. A value of keep_logs will rotate the logs but never delete old logs.

チェック方法

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

shell
alt0() { command -v grep >/dev/null 2>&1 || { echo "step1: grep not installed"; return 1; }; o=$(bash -c 'grep max_log_file_action /etc/audit/auditd.conf' 2>&1); printf '%s\n' "$o" | tr -s ' \t' '  ' | sed 's/^ //;s/ $//' | grep -Fxq -- 'max_log_file_action = keep_logs' || { echo step1: missing 'max_log_file_action = keep_logs'; return 1; }; }; if alt0; then echo compliant; fi
期待される出力
compliant

修正方法

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

Set the following parameter in /etc/audit/auditd.conf: max_log_file_action = keep_logs

プロパティ

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

このホストをチェック

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

shell
tmaegis scan --target linux --level 2