macOS
TMA-MACOS-5.11
Ensure Logging Is Enabled for Sudo
HochStufe 1Automatisiertmacos
Beschreibung
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.
So wird geprüft
Prüfmethode: Shell-Befehl
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- Erwartete Ausgabe
1
So wird behoben
Behebungsmethode: Anleitung oder Infrastruktur-Patch
Terminal: sudo /usr/sbin/visudo -f /etc/sudoers.d/<configuration file name>.
Eigenschaften
- Betriebssysteme
- macos-26
- Tags
- macossystem-access
- Referenz
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.11 Ensure Logging Is Enabled for Sudo
Diesen Host prüfen
Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.
shell
tmaegis scan --target macos