SV-252931r1050791_rule
V-252931
SRG-OS-000373-GPOS-00158
TOSS-04-010230
CAT II
10
Configure the "sudo" command to require reauthentication.
Edit the /etc/sudoers file:
$ sudo visudo
Add or modify the following line:
Defaults timestamp_timeout=0
Verify the operating system requires reauthentication when using the "sudo" command to elevate privileges.
$ sudo egrep -ir 'timestamp_timeout' /etc/sudoers /etc/sudoers.d
/etc/sudoers:Defaults timestamp_timeout=0
If "timestamp_timeout" is set to a negative number, is commented out, or no results are returned, this is a finding.
V-252931
False
TOSS-04-010230
Verify the operating system requires reauthentication when using the "sudo" command to elevate privileges.
$ sudo egrep -ir 'timestamp_timeout' /etc/sudoers /etc/sudoers.d
/etc/sudoers:Defaults timestamp_timeout=0
If "timestamp_timeout" is set to a negative number, is commented out, or no results are returned, this is a finding.
M
5469