5.3.33 Ensure SSH uses privilege separation

Information

The operating system must be configured so that the SSH daemon uses privilege separation.

SSH daemon privilege separation causes the SSH process to drop root privileges when not needed, which would decrease the impact of software vulnerabilities in the unprivileged section.

Solution

Uncomment the UsePrivilegeSeparation keyword in /etc/ssh/sshd_config (this file may be named differently or be in a different location if using a version of SSH that is provided by a third-party vendor) and set the value to sandbox or yes :

Example: vim /etc/ssh/sshd_config

Add, uncomment or update the following line:

UsePrivilegeSeparation sandbox

The SSH service must be restarted for changes to take effect.

# systemctl restart sshd.service

See Also

https://workbench.cisecurity.org/benchmarks/8415

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-16, CSCv7|8.3

Plugin: Unix

Control ID: 0862493373935b792d23caaae00a17ae6087a117e67e677afde80b84d6b8edd1