AZLX-23-001235 - Amazon Linux 2023 SSHD must not allow blank passwords.

Information

If an account has an empty password, anyone could log on and run commands with the privileges of that account. Accounts with empty passwords must never be used in operational environments.

Satisfies: SRG-OS-000106-GPOS-00053, SRG-OS-000480-GPOS-00229

Solution

Configure Amazon Linux 2023 to prevent SSH users from logging on with blank passwords.

Edit the following line in "etc/ssh/sshd_config" or in a file in "/etc/ssh/sshd_config.d":

PermitEmptyPasswords no

Restart the SSH daemon for the settings to take effect:

$ sudo systemctl restart sshd.service

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Amazon_Linux_2023_V1R2_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT, IDENTIFICATION AND AUTHENTICATION

References: 800-53|CM-6b., 800-53|IA-2(2), CAT|II, CCI|CCI-000366, CCI|CCI-000766, Rule-ID|SV-274048r1120132_rule, STIG-ID|AZLX-23-001235, Vuln-ID|V-274048

Plugin: Unix

Control ID: 1e08acbeb0a170c02141d1e314d349404081a255b0c1a08be95ddaaca51f620c