SV-248585r1050789_rule
V-248585
SRG-OS-000373-GPOS-00156
OL08-00-010384
CAT II
10
Configure the "sudo" command to require re-authentication.
Edit the /etc/sudoers file:
$ sudo visudo
Add or modify the following line:
Defaults timestamp_timeout=[value]
Note: The "[value]" must be a number that is greater than or equal to "0".
Remove any duplicate or conflicting lines from /etc/sudoers and /etc/sudoers.d/ files.
Verify the operating system requires re-authentication when using the "sudo" command to elevate privileges.
$ sudo grep -Eir 'timestamp_timeout' /etc/sudoers /etc/sudoers.d*
/etc/sudoers:Defaults timestamp_timeout=0
If conflicting results are returned, this is a finding.
If "timestamp_timeout" is set to a negative number, is commented out, or no results are returned, this is a finding.
V-248585
False
OL08-00-010384
Verify the operating system requires re-authentication when using the "sudo" command to elevate privileges.
$ sudo grep -Eir 'timestamp_timeout' /etc/sudoers /etc/sudoers.d*
/etc/sudoers:Defaults timestamp_timeout=0
If conflicting results are returned, this is a finding.
If "timestamp_timeout" is set to a negative number, is commented out, or no results are returned, this is a finding.
M
5416