More Info:

No security group should allow unrestricted inbound access to TCP port 22 (SSH).

Risk Level

Medium

Address

Security

Compliance Standards

HIPAA, PCIDSS, NIST, SOC2, CISAWS, CBP, HITRUST, AWSWAF, GDPR, NISTCSF, FedRAMP

Triage and Remediation

Remediation

To remediate the unrestricted SSH access misconfiguration in AWS using the AWS console, you can follow these steps:

  1. Log in to the AWS Management Console.
  2. Navigate to the EC2 service.
  3. Select the EC2 instance(s) that have unrestricted SSH access.
  4. Click on the “Actions” button and select “Networking” and then “Change Security Groups”.
  5. In the “Change Security Groups” window, select the security group associated with the instance(s) and click “Edit”.
  6. In the “Edit inbound rules” window, locate the SSH rule (port 22) and remove it or restrict it to only allow traffic from specific IP addresses or ranges.
  7. Click “Save” to apply the changes.

Once you have completed these steps, the unrestricted SSH access misconfiguration will be remediated and the instance(s) will be more secure.

Additional Reading: