blob: 3cb6db01807ad86ed2c381b7c083da13f8fe111d [file] [log] [blame]
Dmitry Teselkine9420e72018-04-03 13:49:39 +03001# 5.2.10 Ensure SSH PermitUserEnvironment is disabled (Scored)
2#
3# Profile Applicability
4# ---------------------
5# - Level 1 - Server
6# - Level 1 - Workstation
7#
8# Description
9# -----------
10# The PermitUserEnvironment option allows users to present environment options to the
11# ssh daemon.
12#
13# Rationale
14# ---------
15# Permitting users the ability to set environment variables through the SSH daemon could
16# potentially allow users to bypass security controls (e.g. setting an execution path that has
17# ssh executing trojan'd programs)
18#
19# Audit
20# -----
21# Run the following command and verify that output matches:
22#
23# # grep PermitUserEnvironment /etc/ssh/sshd_config
24# PermitUserEnvironment no
25#
26# Remediation
27# -----------
28# Edit the /etc/ssh/sshd_config file to set the parameter as follows:
29#
30# PermitUserEnvironment no
31
32parameters:
33 openssh:
34 server:
35 permit_user_environment: False
36