TMAegisBeta
macos için daha fazla kural

macOS

TMA-MACOS15-5.11

Ensure Logging Is Enabled for Sudo

YüksekDüzey 1Otomatikmacos

Açıklama

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.

Nasıl denetlenir

Denetim yöntemi: Kabuk komutu

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
Beklenen çıktı
1

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

Terminal: sudo /usr/sbin/visudo -f /etc/sudoers.d/<configuration file name>.

Özellikler

İşletim sistemleri
macos-15
Etiketler
macossystem-access
Referans
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 5.11 Ensure Logging Is Enabled for Sudo

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target macos