TMA-ROCKY8-5.3.3.3.2
Ensure password history is enforced for the root user
中レベル 1自動linux
説明
If the pwhistory enforce_for_root option is enabled, the module will enforce password history for the root user as well
チェック方法
監査方法: シェルコマンド
shell
alt0() { command -v grep >/dev/null 2>&1 || { echo "step1: grep not installed"; return 1; }; o=$(bash -c 'grep -Pi -- '"'"'^\h*enforce_for_root\b'"'"' /etc/security/pwhistory.conf' 2>&1); printf '%s\n' "$o" | tr -s ' \t' ' ' | sed 's/^ //;s/ $//' | grep -Fxq -- enforce_for_root || { echo step1: missing enforce_for_root; return 1; }; }; if alt0; then echo compliant; fi- 期待される出力
compliant
修正方法
修正方法: ガイダンスまたは IaC パッチ
Edit or add the following line in /etc/security/pwhistory.conf: enforce_for_root
プロパティ
- オペレーティングシステム
- rocky-8
- タグ
- cis-convertedlinux
- 参照
- CIS Rocky Linux 8 Benchmark v3.0.0 - 5.3.3.3.2
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target linux