The macOS system must require users to reauthenticate for privilege escalation when using the "sudo" command.

Overview

Finding IDVersionRule IDIA ControlsSeverity
V-274881APPL-15-004022SV-274881r1099904_ruleCCI-002038medium
Description
The file /etc/sudoers must include a timestamp_timout of 0. Without reauthentication, users may access resources or perform tasks for which they do not have authorization. When operating systems provide the capability to escalate a functional capability or change user authenticators, it is critical the user reauthenticate. Satisfies: SRG-OS-000373-GPOS-00156,SRG-OS-000373-GPOS-00157
STIGDate
Apple macOS 15 (Sequoia) Security Technical Implementation Guide2025-05-05

Related Frameworks

2 paths across 2 frameworks
NIST 800-531 mapping
IA-11
1.00
  • DISA · 1 · disa_xccdf · related
  • DISA · 2025-01-23 · disa_cci_list · equivalent
CCI1 mapping
CCI-002038
1.00
  • DISA · 1 · disa_xccdf · related

Details

Check Text (C-274881r1099904_chk)

Verify the macOS system requires reauthentication when using the "sudo" command to elevate privileges with the following command: /usr/bin/sudo /usr/bin/sudo -V | /usr/bin/grep -c "Authentication timestamp timeout: 0.0 minutes" If the result is not "1", this is a finding.

Fix Text (F-78887r1099903_fix)

Configure the macOS system to require reauthentication when using "sudo" with the following command: /usr/bin/find /etc/sudoers* -type f -exec sed -i '' '/timestamp_timeout/d' '{}' \; /bin/echo "Defaults timestamp_timeout=0" >> /etc/sudoers.d/mscp