Check: GEN005521
Title
The SSH daemon must restrict login ability to specific users and/or groups. (Cat II impact)
Discussion
Restricting SSH logins to a limited group of users, such as system administrators, prevents password-guessing and other SSH attacks from reaching system accounts and other accounts not authorized for SSH access.
Check Content
Check the SSH daemon configuration for the AllowGroups setting. # grep -i AllowGroups /etc/ssh/sshd_config | grep -v '^#' # grep -i AllowGroups /etc/openssh/sshd_config | grep -v '^#' If no lines are returned, this is a finding.
Fix Text
Edit the SSH daemon configuration and add an AllowGroups directive.
Additional Identifiers
Rule ID:
Vulnerability ID: V-22470
Group Title:
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000225 |
The organization employs the concept of least privilege, allowing only authorized accesses for users (and processes acting on behalf of users) which are necessary to accomplish assigned tasks in accordance with organizational missions and business functions. |
Controls
Number | Title |
---|---|
AC-6 |
Least Privilege |