UCF STIG Viewer Logo

The sudoers file must be configured to authenticate users on a per-tty basis.


Overview

Finding ID Version Rule ID IA Controls Severity
V-59715 AOSX-10-000995 SV-74145r1_rule High
Description
The sudo command must be configured to prompt for the administrator user's password at least once in each newly opened Terminal window or remote login session, as this prevents a malicious user from taking advantage of an unlocked computer or an abandoned login session to bypass the normal password prompt requirement. Without the tty_tickets option, all open local and remote login sessions would be authenticated to use sudo without a password for the duration of the configured password timeout window.
STIG Date
Apple OS X 10.10 (Yosemite) Workstation Security Technical Implementation Guide 2017-04-06

Details

Check Text ( C-60485r1_chk )
To check if the tty_tickets option is set for sudo, run the following command:

sudo grep tty_tickets /etc/sudoers

If there is no result, this is a finding.
Fix Text (F-65125r1_fix)
Edit the /etc/sudoers file to contain the line:

Defaults tty_tickets

This line can be placed in the Defaults section or at the end of the file.