More Info:

Port obfuscation is as an additional layer of defense against non-targeted attacks. In order to leverage this, your Amazon RDS databases instances should not use their default ports (MySQL/Aurora port 3306, SQL Server port 1433, PostgreSQL port 5432)

Risk Level

Low

Address

Security

Compliance Standards

PCIDSS

Triage and Remediation

Remediation

To remediate the misconfiguration of RDS Database Instances using default ports in AWS, follow these step-by-step instructions using the AWS Management Console:

  1. Sign in to the AWS Management Console: Go to https://aws.amazon.com/ and sign in to the AWS Management Console.

  2. Navigate to RDS Service: Click on the “Services” dropdown menu at the top left corner of the console, then select “RDS” under the Database category.

  3. Select the RDS Instance: From the list of RDS instances, select the instance that is currently using default ports.

  4. Modify the RDS Instance: Click on the instance name to open the details page. Then, click on the “Modify” button at the top of the page.

  5. Update the Port Configuration: In the “Network & Security” section, locate the “Public accessibility” setting. If the RDS instance is publicly accessible, you will see an option to specify the “Publicly accessible” setting and the “Port” number.

  6. Change the Port Number: Update the “Port” number to a non-default port number of your choice. Ensure that the new port number is not commonly used or reserved for other services.

  7. Save the Changes: Scroll down to the bottom of the page and click on the “Continue” button. Review the summary of changes, and then click on the “Modify DB Instance” button to apply the changes.

  8. Verify the Configuration: Once the modification is complete, verify that the RDS instance is now using the updated port number. You can also test the connectivity to the RDS instance using the new port number to ensure that it is working correctly.

By following these steps, you have successfully remediated the misconfiguration of RDS Database Instances using default ports in AWS.

Additional Reading: