This rule ensures RDS DB instances restrict public access to enhance security measures.
Rule | RDS DB instances should prohibit public access |
Framework | FedRAMP Moderate Revision 4 |
Severity | ✔ High |
RDS DB Instances Public Access Prohibition for FedRAMP Moderate Revision 4
Description
As per the FedRAMP Moderate Revision 4 security standards, it is necessary to prohibit public access to the Amazon RDS (Relational Database Service) DB instances. Public access means that the DB instances can be accessed over the internet, which increases the risk of unauthorized access and potential data breaches.
Troubleshooting Steps
If public access is enabled for RDS DB instances in violation of the FedRAMP Moderate Revision 4 requirements, you can follow these troubleshooting steps to rectify the issue:
Necessary Codes
The following code can be used to check if public access is disabled for the RDS DB instances:
import boto3 client = boto3.client('rds') response = client.describe_db_instances() for instance in response['DBInstances']: if instance['PubliclyAccessible']: print("Public access is enabled for instance:", instance['DBInstanceIdentifier'])
Remediation Steps
Identify the affected DB instances:
Disable public access for the DB instances:
Verify the changes:
Update security groups and network settings if necessary:
Notes