CCE-95461-0Platform: cpe:/o:amazon:linux:2, cpe:/o:centos:centos:7, cpe:/o:oracle:linux:7, cpe:/o:oracle:linux:8, cpe:/o:redhat:enterprise_linux:7, cpe:/o:redhat:enterprise_linux:8, cpe:/o:redhat:enterprise_linux:9 | Date: (C)2021-03-05 (M)2023-07-04 |
Description:
The /etc/ssh/sshd_config file contains configuration specifications for sshd. The
command below sets the owner and group of the file to root.
Rationale:
The /etc/ssh/sshd_config file needs to be protected from unauthorized changes by non-privileged users.
Audit:
Run the following command and verify Uid and Gid are both 0/root and Access does not
grant permissions to group or other:
# stat /etc/ssh/sshd_config
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Remediation:
Run the following commands to set ownership and permissions on /etc/ssh/sshd_config:
# chown root:root /etc/ssh/sshd_config
# chmod og-rwx /etc/ssh/sshd_config
Parameter:
[root, root, 110000000]
Technical Mechanism:
Run the following commands to set ownership and permissions on /etc/ssh/sshd_config:
# chown root:root /etc/ssh/sshd_config
# chmod og-rwx /etc/ssh/sshd_config
CCSS Severity: | CCSS Metrics: |
CCSS Score : 8.4 | Attack Vector: LOCAL |
Exploit Score: 2.5 | Attack Complexity: LOW |
Impact Score: 5.9 | Privileges Required: NONE |
Severity: HIGH | User Interaction: NONE |
Vector: AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | Scope: UNCHANGED |
| Confidentiality: HIGH |
| Integrity: HIGH |
| Availability: HIGH |
| |
References: Resource Id | Reference |
---|
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:84189 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:68612 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:73012 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:71949 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72698 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72315 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72801 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72907 |