Check: RHEL-09-255080
RHEL 9 STIG:
RHEL-09-255080
(in version v1 r1)
Title
RHEL 9 must not allow a noncertificate trusted host SSH logon to the system. (Cat II impact)
Discussion
SSH trust relationships mean a compromise on one host can allow an attacker to move trivially to other hosts.
Check Content
Verify the operating system does not allow a noncertificate trusted host SSH logon to the system with the following command: $ sudo grep -i hostbasedauthentication /etc/ssh/sshd_config HostbasedAuthentication no If the "HostbasedAuthentication" keyword is not set to "no", is missing, or is commented out, this is a finding. If the required value is not set, this is a finding.
Fix Text
To configure RHEL 9 to not allow a noncertificate trusted host SSH logon to the system add or modify the following line in "/etc/ssh/sshd_config". HostbasedAuthentication no Restart the SSH daemon for the settings to take effect: $ sudo systemctl restart sshd.service
Additional Identifiers
Rule ID: SV-257992r925963_rule
Vulnerability ID: V-257992
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 |