macOS
TMA-MACOS-5.11
Ensure Logging Is Enabled for Sudo
高レベル 1自動macos
説明
In order to properly monitor the use of the sudo command, logs events for any use of sudo should be captured in the unified log.
チェック方法
監査方法: シェルコマンド
shell
out=$(/usr/bin/sudo -V 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -c "Log when a command is allowed by sudoers" || true- 期待される出力
1
修正方法
修正方法: ガイダンスまたは IaC パッチ
Terminal: sudo /usr/sbin/visudo -f /etc/sudoers.d/<configuration file name>.
プロパティ
- オペレーティングシステム
- macos-26
- タグ
- macossystem-access
- 参照
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.11 Ensure Logging Is Enabled for Sudo
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target macos