Check: GEN005522
HP-UX 11.23 STIG:
GEN005522
(in version v1 r8)
Title
The SSH public host key files must have mode 0644 or less permissive. (Cat II impact)
Discussion
If a public host key file is modified by an unauthorized user, the SSH service may be compromised.
Check Content
Check the permissions for the SSH public host key files. # ls -lL /opt/ssh/etc/ssh_host_dsa_key.pub # ls -lL /opt/ssh/etc/ssh_host_rsa_key.pub If any file has a mode more permissive than 0644, this is a finding.
Fix Text
Change the permissions for the SSH public host key files. # chmod 0644 /opt/ssh/etc/*key.pub
Additional Identifiers
Rule ID: SV-35060r1_rule
Vulnerability ID: V-22471
Group Title: GEN005522
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000225 |
Employ the principle of least privilege, allowing only authorized accesses for users (or processes acting on behalf of users) which are necessary to accomplish assigned organizational tasks. |
Controls
Number | Title |
---|---|
AC-6 |
Least Privilege |