More Info:

No security group should allow unrestricted inbound access to TCP port 25 (SMTP).

Risk Level

Medium

Address

Security

Compliance Standards

HITRUST, AWSWAF, GDPR, SOC2, NISTCSF, PCIDSS, FedRAMP

Triage and Remediation

Remediation

To remediate the unrestricted SMTP access issue in AWS, follow these steps:

  1. Open the AWS Management Console and navigate to the EC2 service.
  2. Select the EC2 instance that is allowing unrestricted SMTP access.
  3. Click on the “Security” tab and scroll down to the “Security groups” section.
  4. Click on the security group that is associated with the instance.
  5. Click on the “Inbound rules” tab.
  6. Locate the rule that allows SMTP traffic (port 25) with the source of “0.0.0.0/0” or ”::/0”.
  7. Click on the “Edit” button next to the rule.
  8. Change the source to a specific IP address range or security group that requires SMTP access.
  9. Click the “Save” button to apply the changes.

By following these steps, you have successfully remediated the unrestricted SMTP access issue in AWS.

Additional Reading: