More Info:

No security group should allow unrestricted inbound access to TCP port 3306 (MySQL).

Risk Level

Medium

Address

Security

Compliance Standards

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

Triage and Remediation

Remediation

To remediate the unrestricted MySQL access issue in AWS, you can follow the below steps:

  1. Login to AWS console.
  2. Go to the RDS service.
  3. Select the DB instance with unrestricted MySQL access.
  4. Click on the “Modify” button.
  5. Scroll down to the “Network & Security” section.
  6. In the “Security Group” section, select the security group associated with the DB instance.
  7. Click on the “Remove” button to remove the inbound rule that allows unrestricted access to MySQL.
  8. Add a new inbound rule to the security group that allows access only from specific IP addresses or CIDR blocks.
  9. Click on the “Save Changes” button to apply the changes.

By following the above steps, you can remediate the unrestricted MySQL access issue in AWS and ensure that your database is secure.

Additional Reading: