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
조치 방법
조치 방식: 가이드 또는 인프라 패치
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