Check: GEN005504
HP-UX 11.23 STIG:
GEN005504
(in version v1 r8)
Title
The SSH daemon must only listen on management network addresses unless authorized for uses other than management. (Cat II impact)
Discussion
The SSH daemon should only listen on network addresses designated for management traffic. If the system has multiple network interfaces and SSH listens on addresses not designated for management traffic, the SSH service could be subject to unauthorized access. If SSH is used for purposes other than management, such as providing an SFTP service, the list of approved listening addresses may be documented.
Check Content
Ask the SA if any/all interfaces are authorized for management traffic. If all interfaces are authorized, this is not a finding. Check the SSH daemon configuration for listening network addresses. Note that keywords are case-insensitive and arguments (args) are case-sensitive. keyword=ListenAddress arg(s)=<site specific> Default arg values include: NA. The default action is for the daemon to listen on all local addresses. In this case, the ListenAddress line entry will not be found in the configuration file. Note: When the default "arg" value exactly matches the required "arg" value (see above), the <keyword=arg> are not required to exist (commented or uncommented) in the ssh (client) or sshd (server) configuration file. While not required, it is recommended that the configuration file(s) be populated with all keywords and assigned arg values as a means to explicitly document the ssh(d) binary's expected behavior. # cat /opt/ssh/etc/sshd_config | tr '\011' ' ' | tr -s ' ' | sed -e 's/^[ \t]*//' | grep -v '^#' | grep -i "ListenAddress" If a returned 'ListenAddress' configuration entry contains addresses not designated for management traffic, this is a finding.
Fix Text
Edit the configuration file to specify listening for network addresses designated for management traffic only, or remove the ListenAddress line entry.
Additional Identifiers
Rule ID: SV-35214r1_rule
Vulnerability ID: V-22457
Group Title: GEN005504
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000069 |
The information system routes all remote accesses through an organization-defined number of managed network access control points. |
Controls
Number | Title |
---|---|
AC-17 (3) |
Managed Access Control Points |