More Info:
Amazon RDS event notification subscriptions should be enabled for database security groups events. AWS RDS groups these events into categories that you can subscribe to.Risk Level
LowAddress
Operational Maturity, ReliabilityCompliance Standards
- APRA CPS 234 (Australia)
- BSI C5 (Germany)
- Brazil LGPD
- CCPA / CPRA (California)
- CIS Critical Security Controls v8
- CMMC 2.0
- CSA Cloud Controls Matrix v4
- Cloudanix Best Practice
- DPDPA
- Digital Operational Resilience Act (EU)
- ISO/IEC 27017
- ISO/IEC 27018
- ISO/IEC 27701
- KSA PDPL
- MAS Technology Risk Management (Singapore)
- MITRE ATT&CK (Cloud)
- NIS2 Directive
- NIST SP 800-171
- NYDFS 23 NYCRR 500
- SWIFT Customer Security Controls Framework
- Sarbanes-Oxley IT General Controls
- UK NCSC Cyber Assessment Framework
Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
To remediate the misconfiguration of “Security Groups Events Subscriptions Should Be Enabled” for AWS RDS using the AWS console, follow these step-by-step instructions:
- Login to AWS Console: Go to the AWS Management Console (https://console.aws.amazon.com/) and log in with your credentials.
- Navigate to RDS Service: From the AWS Management Console, navigate to the Amazon RDS service by clicking on the “Services” dropdown menu at the top left corner, then selecting “RDS” under the Database category.
- Select the RDS Instance: In the Amazon RDS dashboard, locate the RDS instance for which you want to enable Security Groups Events Subscriptions and click on its name to open its details.
- Enable Event Subscriptions: In the RDS instance details page, navigate to the “Event Subscriptions” section in the left-hand menu and click on it.
- Create Event Subscription: Click on the “Create Event Subscription” button to create a new event subscription for the RDS instance.
- Configure Event Subscription: In the “Create Event Subscription” wizard, provide the necessary details such as the name of the event subscription, the source type (RDS), the source identifier (select the RDS instance), and the event categories.
- Enable Security Groups Events: Under the “Event Categories” section, make sure to select the “Configuration change” event category, as Security Groups Events fall under this category.
- Specify SNS Topic (Optional): If you want to receive notifications for these events, you can specify an existing SNS topic or create a new one to subscribe to.
- Review and Create: Review the details of the event subscription, ensure that Security Groups Events are included, and click on the “Create” button to save the changes.
- Verify Subscription: Once the event subscription is created, verify that Security Groups Events are now enabled for the RDS instance by checking the event subscription details.
Using CLI
Using CLI
To remediate the misconfiguration of “Security Groups Events Subscriptions Should Be Enabled” for AWS RDS using AWS CLI, you can follow these steps:
-
Enable Event Subscriptions for RDS DB instances:
Run the following AWS CLI command to enable event subscriptions for the RDS DB instance:
- Replace
my-rds-event-subscriptionwith your desired subscription name. - Replace
arn:aws:sns:us-east-1:123456789012:my-sns-topicwith the ARN of the SNS topic you want to use for notifications. - Replace
my-rds-db-instancewith the identifier of your RDS DB instance.
- Replace
-
Verify the Event Subscription:
You can verify the event subscription by running the following command:
Ensure that the event subscription you created is listed and active.
Using Python
Using Python
To remediate the misconfiguration of Security Groups Events Subscriptions not being enabled for an AWS RDS instance using Python, you can follow these steps:
- Install the AWS SDK for Python (Boto3) if you haven’t already. You can install it using pip:
- Use the following Python script to enable Security Groups Events Subscriptions for the RDS instance:
-
Replace
'rds_instance_identifier'in the script with the actual identifier of your RDS instance. You can find the RDS instance identifier in the AWS Management Console under the RDS service. - Run the Python script. This will enable Security Groups Events Subscriptions for the specified RDS instance.
Using Terraform
Using Terraform
aws_db_event_subscription.To verify, terraform plan should show:+creation ofaws_sns_topic.rds_security_events(if new),+creation ofaws_sns_topic_subscription.rds_security_events_email(if included),+creation ofaws_db_event_subscription.db_security_group_events, and no changes to existing RDS DB security groups other than being referenced by the subscription.

