More Info:

Security groups should not have range of ports opened for inbound traffic in order to protect your EC2 instances against denial-of-service (DoS) attacks or brute-force attacks.

Risk Level

Low

Address

Security

Compliance Standards

HIPAA, NIST, SOC2, PCIDSS

Triage and Remediation

Remediation

Here are the step-by-step instructions to remediate the Security Group Port Range misconfiguration for AWS using the AWS console:

  1. Log in to your AWS console.
  2. Navigate to the EC2 dashboard.
  3. Click on the “Security Groups” option on the left-hand side of the screen.
  4. Select the affected security group.
  5. Click on the “Inbound Rules” tab.
  6. Identify the rule with the incorrect port range.
  7. Click on the “Edit” button for that rule.
  8. Update the port range to the appropriate range.
  9. Click on the “Save” button to save the changes.
  10. Verify that the changes have been applied by confirming that the correct port range is now listed in the security group’s inbound rules.

It is recommended to regularly review and update security group rules to ensure that they are configured correctly for your organization’s needs.

Additional Reading: