AWS RDS Snapshot Deletion Detected
The deletion of AWS RDS DB snapshots or disabling backups via configuration changes can inhibit recovery, destroy forensic evidence, and prepare for destructive actions by adversaries.
This rule detects the deletion of AWS RDS DB snapshots or configuration changes that effectively remove backup coverage for a DB instance. RDS snapshots contain full backups of database instances, and disabling automated backups by setting "backupRetentionPeriod=0" has a similar impact by preventing future restore points. A threat actor with sufficient AWS permissions may delete snapshots or disable backups to inhibit recovery, destroy forensic evidence, or prepare for follow-on destructive actions such as instance or cluster deletion. The rule focuses on successful snapshot deletions and backup disabling events within AWS RDS. The scope includes any AWS environment utilizing RDS for database services.
Attack Chain
- The attacker gains access to an AWS account with sufficient permissions to manage RDS instances and snapshots, possibly through compromised credentials or an IAM role with excessive privileges.
- The attacker enumerates available RDS DB instances and snapshots within the target AWS account using AWS CLI or API calls (e.g.,
DescribeDBSnapshots,DescribeDBInstances). - The attacker identifies target DB instances and their associated snapshots that are critical for recovery or contain valuable forensic data.
- The attacker deletes RDS DB snapshots using the
DeleteDBSnapshotAPI call, effectively removing restore points. - Alternatively, the attacker modifies the DB instance configuration using the
ModifyDBInstanceAPI call, settingbackupRetentionPeriodto 0 to disable automated backups and prevent future restore points. - The attacker may then delete the RDS instance itself using DeleteDBInstance.
- The attacker attempts to cover their tracks by deleting relevant CloudTrail logs or disabling CloudTrail logging.
- The attacker's objective is to prevent restoration to a known-good state and destroy forensic evidence of attacker actions, potentially as part of a ransomware attack or data exfiltration attempt.
Impact
Successful deletion of RDS snapshots or disabling of backups can lead to significant data loss and prolonged downtime, making recovery from security incidents or operational failures difficult or impossible. This can impact business continuity, data integrity, and regulatory compliance. The precise impact depends on the criticality of the affected databases and the availability of alternative backup mechanisms. If successful, this can result in total data loss for the organization.
Recommendation
- Deploy the provided Sigma rule to your SIEM to detect suspicious
DeleteDBSnapshot,DeleteDBClusterSnapshot, orModifyDBInstanceevents settingbackupRetentionPeriod=0in AWS CloudTrail logs. - Restrict IAM permissions for
rds:DeleteDBSnapshot,rds:DeleteDBClusterSnapshot, andrds:ModifyDBInstance(especially backup and deletion-related parameters) to a small set of privileged roles, as described in the remediation steps. - Use AWS Config rules and/or Security Hub controls to detect instances with
backupRetentionPeriod=0, as recommended in the hardening and preventive controls section.
Detection coverage 3
Detect AWS RDS Snapshot Deletion
mediumDetects deletion of RDS snapshots via CloudTrail logs.
Detect AWS RDS Cluster Snapshot Deletion
mediumDetects deletion of RDS cluster snapshots via CloudTrail logs.
Detect Disabling of RDS Backups
mediumDetects disabling of RDS backups by setting backupRetentionPeriod to 0.
Detection queries are available on the platform. Get full rules →