TMAegisBeta
更多 macos 規則

macOS

TMA-MACOS-5.5

Ensure a Separate Timestamp Is Enabled for Each User/tty Combo

中等級 1自動化macos

說明

Using tty tickets ensures that a user must enter the sudo password in each Terminal session. With sudo versions 1.8 and higher, introduced in 10.12, the default value is to have tty tickets for each interface so that root access is limited to a specific terminal. The default configuration can be overwritten or not configured correctly on earlier versions of macOS.

檢查方式

稽核方法: Shell 指令

shell
out=$(/usr/bin/sudo -V 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -c "Type of authentication timestamp record: tty" || 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.5 Ensure a Separate Timestamp Is Enabled for Each User/tty Combo

檢查此主機

請在您有權稽核的機器上執行此指令。掃描為唯讀操作。

shell
tmaegis scan --target macos