Check: UBTU-18-010424
Canonical Ubuntu 18.04 LTS STIG:
UBTU-18-010424
(in versions v2 r14 through v2 r9)
Title
The Ubuntu operating system must not allow unattended or automatic login via ssh. (Cat I impact)
Discussion
Failure to restrict system access to authenticated users negatively impacts Ubuntu operating system security.
Check Content
Verify that unattended or automatic login via ssh is disabled. Check that unattended or automatic login via ssh is disabled with the following command: # egrep '(Permit(.*?)(Passwords|Environment))' /etc/ssh/sshd_config PermitEmptyPasswords no PermitUserEnvironment no If "PermitEmptyPasswords" or "PermitUserEnvironment" keywords are not set to "no", are missing completely, or they are commented out, this is a finding.
Fix Text
Configure the Ubuntu operating system to allow the SSH daemon to not allow unattended or automatic login to the system. Add or edit the following lines in the "/etc/ssh/sshd_config" file: PermitEmptyPasswords no PermitUserEnvironment no In order for the changes to take effect, the SSH daemon must be restarted. # sudo systemctl restart sshd.service
Additional Identifiers
Rule ID: SV-219314r877377_rule
Vulnerability ID: V-219314
Group Title: SRG-OS-000480-GPOS-00229
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
The organization implements the security configuration settings. |
Controls
Number | Title |
---|---|
CM-6 |
Configuration Settings |