CCE-95459-4Platform: 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:
An SSH private key is one of two files used in SSH public key authentication. In this
authentication method, The possession of the private key is proof of identity. Only a private
key that corresponds to a public key will be able to authenticate successfully. The private
keys need to be stored and handled carefully, and no copies of the private key should be
distributed.
Rationale:
If an unauthorized user obtains the private SSH host key file, the host could be
impersonated
Remediation:
Run the following commands to set ownership and permissions on the private SSH host key
files
# find /etc/ssh -xdev -type f -name 'ssh_host_*_key' -exec chown root:root {}
;
# find /etc/ssh -xdev -type f -name 'ssh_host_*_key' -exec chmod 0600 {} ;
Parameter:
[root, root, 110000000]
Technical Mechanism:
Run the following commands to set ownership and permissions on the private SSH host key
files
# find /etc/ssh -xdev -type f -name 'ssh_host_*_key' -exec chown root:root {}
;
# find /etc/ssh -xdev -type f -name 'ssh_host_*_key' -exec chmod 0600 {} ;
CCSS Severity: | CCSS Metrics: |
CCSS Score : 9.3 | Attack Vector: LOCAL |
Exploit Score: 2.5 | Attack Complexity: LOW |
Impact Score: 6.0 | Privileges Required: NONE |
Severity: CRITICAL | User Interaction: NONE |
Vector: AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | Scope: CHANGED |
| Confidentiality: HIGH |
| Integrity: HIGH |
| Availability: HIGH |
| |
References: Resource Id | Reference |
---|
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72905 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72696 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72317 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:84191 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72799 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:73010 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:71951 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:68610 |