5.2 Reduce the sudo timeout period

Information

The sudo command stays logged in as the root user for five minutes before timing out and
re-requesting a password. This five minute window should be eliminated since it leaves the
system extremely vulnerable. This is especially true if an exploit were to gain access to the
system, since they would be able to make changes as a root user.

Solution

Perform the following to implement the prescribed state:
Run the following command in Terminal:
sudo visudo
In the '# Defaults specification' section, add the line:
Defaults timestamp_timeout=0

See Also

https://benchmarks.cisecurity.org/tools2/osx/CIS_Apple_OSX_10.9_Benchmark_v1.0.0.pdf

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3

Plugin: Unix

Control ID: b766cfc0d139560e597fb424b6f5e674a499a6a650633ea75abc0676ea18d447