Dmitry Teselkin | e9420e7 | 2018-04-03 13:49:39 +0300 | [diff] [blame] | 1 | # 5.2.9 Ensure SSH PermitEmptyPasswords is disabled (Scored) |
| 2 | # |
| 3 | # Profile Applicability |
| 4 | # --------------------- |
| 5 | # - Level 1 - Server |
| 6 | # - Level 1 - Workstation |
| 7 | # |
| 8 | # Description |
| 9 | # ----------- |
| 10 | # The PermitEmptyPasswords parameter specifies if the SSH server allows login to accounts |
| 11 | # with empty password strings. |
| 12 | # |
| 13 | # Rationale |
| 14 | # --------- |
| 15 | # Disallowing remote shell access to accounts that have an empty password reduces the |
| 16 | # probability of unauthorized access to the system |
| 17 | # |
| 18 | # Audit |
| 19 | # ----- |
| 20 | # Run the following command and verify that output matches: |
| 21 | # |
| 22 | # # grep "^PermitEmptyPasswords" /etc/ssh/sshd_config |
| 23 | # PermitEmptyPasswords no |
| 24 | # |
| 25 | # Remediation |
| 26 | # ----------- |
| 27 | # Edit the /etc/ssh/sshd_config file to set the parameter as follows: |
| 28 | # |
| 29 | # PermitEmptyPasswords no |
| 30 | |
| 31 | parameters: |
| 32 | openssh: |
| 33 | server: |
| 34 | permit_empty_passwords: False |