5.2.10 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 trojan'd programs)

Solution

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

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CSCv6|16

Plugin: Unix

Control ID: 6fda2482fcc94b57abc706175980f93c4354bd13aa98440b1fc0993dae3eada1