TMAegisБета
Другие правила для macos

macOS

TMA-MACOS15-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
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-15
Теги
macossystem-access
Источник
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 5.5 Ensure a Separate Timestamp Is Enabled for Each User/tty Combo

Проверить этот хост

Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.

shell
tmaegis scan --target macos