4.5.3.13 sshd_config: PermitUserEnvironment is 'no'

Information

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

Rationale:

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).

Impact:

The general condition is to specify no while the recommendation leaves room for specific User(s) or Group(s) to use this feature in controlled ways.

Solution

Edit the/etc/ssh/sshd_config file:

vi /etc/ssh/sshd_config

Set:

PermitUserEnvironment no

Re-cycle the sshd daemon to pick up the configuration changes:

stopsrc -s sshd
startsrc -s sshd

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT, MAINTENANCE

References: 800-53|CM-7, 800-53|MA-4, CSCv7|9.2

Plugin: Unix

Control ID: 9552d4a04e0d55508e31a1b144ecae35010f3391a325444abea57022c6fb1099