5.2.7 Ensure sudo authentication timeout is configured - sudo command.

Information

The Linux operating system must require re-authentication when using the 'sudo' command.

Rationale:

Without re-authentication, 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, it is critical the organization requires the user to re-authenticate when using the 'sudo' command.

If the value is set to an integer less than 0, the user's time stamp will not expire and the user will not have to re-authenticate for privileged actions until the user's session is terminated.

Solution

Configure the 'sudo' command to require re-authentication.
Edit the /etc/sudoers file:

# 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'.

See Also

https://workbench.cisecurity.org/files/3636

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-11, CCI|CCI-002038, CSCv7|4.3, Rule-ID|SV-237635r646856_rule, STIG-ID|RHEL-07-010343

Plugin: Unix

Control ID: 4be9f828945070ed0d0b1686939555cfd300cc340fd11bba38840dcf7adf69ee