SV-282493r1200459_rule
V-282493
SRG-OS-000106-GPOS-00053
TOSS-05-000238
CAT I
10
Configure the system to prevent SSH users from logging on with blank passwords by editing the following line in "etc/ssh/sshd_config":
PermitEmptyPasswords no
Restart the SSH daemon for the settings to take effect:
$ sudo systemctl restart sshd.service
Verify TOSS 5 remote access using SSH prevents logging on with a blank password using the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*permitemptypasswords'
PermitEmptyPassword no
If the "PermitEmptyPassword" keyword is set to "yes", is missing, or is commented out, this is a finding.
V-282493
False
TOSS-05-000238
Verify TOSS 5 remote access using SSH prevents logging on with a blank password using the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*permitemptypasswords'
PermitEmptyPassword no
If the "PermitEmptyPassword" keyword is set to "yes", is missing, or is commented out, this is a finding.
M
5738