AWS RDS DB Instance or Cluster Deletion Protection Disabled
Identifies the modification of an AWS RDS DB instance or cluster to disable the deletionProtection feature. Deletion protection prevents accidental or unauthorized deletion of RDS resources. Adversaries with sufficient permissions may disable this protection as a precursor to destructive actions, including the deletion of databases containing sensitive or business-critical data. This rule alerts when deletionProtection is explicitly set to false on an RDS DB instance or cluster.
Rule type: eql
Rule indices:
- filebeat-*
- logs-aws.cloudtrail-*
Rule Severity: medium
Risk Score: 47
Runs every:
Searches indices from: now-6m
Maximum alerts per execution: ?
References:
- https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDBInstance.html
- https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html
Tags:
- Domain: Cloud
- Data Source: AWS
- Data Source: Amazon Web Services
- Data Source: AWS RDS
- Resources: Investigation Guide
- Use Case: Threat Detection
- Tactic: Impact
Version: ?
Rule authors:
- Elastic
Rule license: Elastic License v2
Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, validate and adapt it to suit your operational needs.
Deletion protection is designed to safeguard RDS DB instances and clusters from accidental or unauthorized deletion. An adversary with privileged access in a compromised environment, can disable this safeguard before issuing a DeleteDBInstance or DeleteDBCluster action. This rule detects successful attempts to modify deletionProtection and set it to false on any RDS instance or cluster.
Identify the Actor
- Review
aws.cloudtrail.user_identity.arn,aws.cloudtrail.user_identity.type, andaccess_key_idto determine which IAM principal made the change. - Validate whether this principal normally performs RDS lifecycle operations.
- Review
Review Event Details
- Inspect
aws.cloudtrail.request_parametersortarget.entity.idto confirm the targeted DB instance or cluster identifier. - Confirm that the request explicitly contains
deletionProtection=false.
- Inspect
Contextualize the Change
- Determine if recent activities justify the removal of deletion protection (migration, decommissioning, or maintenance).
- Compare the timestamp to normal operational hours or deployment windows.
Correlate with Additional Activity
- Look for subsequent or preceding RDS actions such as:
DeleteDBInstanceDeleteDBCluster- Security group modifications
- Changes to parameter groups or backup retention policies.
- Sudden removal of backups or snapshots may indicate imminent destructive activity.
- Look for subsequent or preceding RDS actions such as:
Verify Environmental Risk
- Assess the sensitivity of data stored in the affected DB instance or cluster.
- Determine if the instance is production, customer-facing, or mission-critical.
Interview Relevant Personnel
- Confirm with service owners or DB administrators whether the modification was intended and approved.
Expected Decommissioning
- Instances undergoing teardown or migration legitimately require deletion protection to be disabled first.
Inconsistent Historical Behavior
- Compare the action to historical modification patterns for the user or role. If the action aligns with past legitimate changes, it may not be suspicious.
Immediate Remediation
- If unauthorized, re-enable deletion protection (
deletionProtection=true) on the affected DB instance or cluster. - Review security groups, backup retention, and snapshot policies for additional unauthorized changes.
- If unauthorized, re-enable deletion protection (
Access Review
- Investigate credential exposure for the IAM principal that performed the action.
- Rotate access keys or temporarily revoke permissions if compromise is suspected.
Containment
- If destructive intent is suspected, apply guardrails (e.g., IAM condition keys, SCPs) to prevent DB deletion.
Audit and Harden
- Ensure RDS instances adhere to least-privilege principles.
- Restrict who can modify
ModifyDBInstanceorModifyDBClusterdestructive settings, such as deletion protection, backup retention, and public accessibility.
Incident Response Activation
- Treat unauthorized removal of deletion protection as a high-risk precursor to data destruction.
- Trigger IR processes for containment, root cause analysis, and post-incident hardening.
- AWS IR Playbooks
- AWS Customer Playbook Framework
- Security Best Practices: AWS Knowledge Center – Security Best Practices.
any where event.dataset == "aws.cloudtrail"
and event.provider == "rds.amazonaws.com"
and event.action in ("ModifyDBInstance", "ModifyDBCluster")
and event.outcome == "success"
and stringContains(aws.cloudtrail.request_parameters, "deletionProtection=false")
Framework: MITRE ATT&CK
Tactic:
- Name: Impact
- Id: TA0040
- Reference URL: https://attack.mitre.org/tactics/TA0040/
Technique:
- Name: Data Destruction
- Id: T1485
- Reference URL: https://attack.mitre.org/techniques/T1485/