5.2.12 Ensure SSH PermitUserEnvironment is disabled

Information

The PermitUserEnvironment option allows users to present environment options to the ssh daemon.

Permitting users the ability to set environment variables through the SSH daemon could potentially allow users to bypass security controls (e.g. setting an execution path that has ssh executing a Trojan's programs)

Solution

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

PermitUserEnvironment no

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT, SYSTEM AND SERVICES ACQUISITION

References: 800-53|CM-2, 800-53|CM-6, 800-53|CM-7, 800-53|CM-7(1), 800-53|CM-9, 800-53|SA-3, 800-53|SA-8, 800-53|SA-10, CSCv7|5.1

Plugin: Unix

Control ID: 034e1eced9bc234c8af4bd5c3d4737586832395b30e43f160390d09c541f0fc2