CCE-95408-1Platform: 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 LoginGraceTime parameter specifies the time allowed for successful authentication to the SSH server. The longer the Grace period is the more open unauthenticated connections can exist. Like other session controls in this session the Grace Period should be limited to appropriate organizational limits to ensure the service is available for needed access.
Rationale
Setting the LoginGraceTime parameter to a low number will minimize the risk of successful brute force attacks to the SSH server. It will also limit the number of concurrent unauthenticated connections While the recommended setting is 60 seconds (1 Minute), set the number based on site policy.
Audit
Run the following command and verify that output LoginGraceTime is 60 or less:
# grep "^LoginGraceTime" /etc/ssh/sshd_config
LoginGraceTime 60
Remediation
Edit the /etc/ssh/sshd_config file to set the parameter as follows:
LoginGraceTime 60
Parameter:
[60]
Technical Mechanism:
Edit the /etc/ssh/sshd_config file to set the parameter as follows:
LoginGraceTime 60
CCSS Severity: | CCSS Metrics: |
CCSS Score : 8.1 | Attack Vector: NETWORK |
Exploit Score: 2.2 | Attack Complexity: HIGH |
Impact Score: 5.9 | Privileges Required: NONE |
Severity: HIGH | User Interaction: NONE |
Vector: AV:N/AC:H/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:72748 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72645 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:84199 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72960 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72855 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:71959 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:68560 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72325 |