SV-274881r1099904_rule
V-274881
SRG-OS-000373-GPOS-00156
APPL-15-004022
CAT II
10
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
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.
V-274881
False
APPL-15-004022
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.
M
5661