macOS
TMA-MACOS-5.11
Ensure Logging Is Enabled for Sudo
VisokaNivo 1Automatskamacos
Opis
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.
Kako se proverava
Metod provere: Komanda ljuske
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- Očekivani izlaz
1
Kako se ispravlja
Metod ispravke: Smernica ili zakrpa infrastrukture
Terminal: sudo /usr/sbin/visudo -f /etc/sudoers.d/<configuration file name>.
Svojstva
- Operativni sistemi
- macos-26
- Oznake
- macossystem-access
- Referenca
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.11 Ensure Logging Is Enabled for Sudo
Proverite ovaj računar
Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.
shell
tmaegis scan --target macos