TMAegisBêta
Plus de règles pour macos

macOS

TMA-MACOS-5.5

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

MoyenneNiveau 1Automatiséemacos

Description

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.

Méthode de vérification

Méthode d'audit: Commande 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
Sortie attendue
1

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

Terminal: sudo /usr/sbin/visudo -f /etc/sudoers.d/<configuration file name>.

Propriétés

Systèmes d'exploitation
macos-26
Étiquettes
macossystem-access
Référence
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.5 Ensure a Separate Timestamp Is Enabled for Each User/tty Combo

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target macos