Check: GEN005536
Title
The SSH daemon must perform strict mode checking of home directory configuration files. (Cat II impact)
Discussion
If other users have access to modify user-specific SSH configuration files, they may be able to log into the system as another user.
Check Content
Check the SSH daemon configuration for the StrictModes setting. # grep -i StrictModes /etc/ssh/sshd_config | grep -v '^#' # grep -i StrictModes /etc/openssh/sshd_config | grep -v '^#' If the setting is present and not set to yes, this is a finding.
Fix Text
Edit the SSH daemon configuration and change the StrictModes setting value to yes or remove it entirely.
Additional Identifiers
Rule ID:
Vulnerability ID: V-22485
Group Title:
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 |