Ensure that your RDS database instances are configured to accept connections only from trusted networks (i.e. authorized IP addresses/IP address ranges) in order to protect against unapproved access.
If the IP address allowlist configured for your RDS database instance allows unrestricted access (i.e. 0.0.0.0/0), all public IP addresses are allowed to establish a connection to your database instance and this can increase the opportunity for malicious activities such as brute-force attacks, SQL injection, and DDoS attacks. To protect against such attacks, ensure that your RDS database instances are configured to accept connections from trusted networks only.
Audit
To determine if your Alibaba Cloud RDS database instances are publicly accessible, perform the following operations:
Remediation / Resolution
To ensure that your RDS database instances are configured to accept connections only from trusted networks (i.e. authorized IP addresses/IP address ranges), perform the following operations:
References
- Alibaba Cloud Documentation
- Configure an IP address whitelist
- Errors and FAQ about IP address whitelist settings in ApsaraDB RDS for MySQL
- Alibaba Cloud CLI Documentation
- DescribeDBInstances
- DescribeDBInstanceIPArrayList
- ModifySecurityIps