Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for THREAT-CloudBackup-SnapshotPurge.
Upgrade to ProDetect Cloud Backup Vault and Snapshot Deletion Prior to Ransomware Detonation in Elastic Security
As organizations move backup targets from on-premises VSS/wbadmin to cloud-native services (AWS Backup, EBS/RDS snapshots, Azure Recovery Services vaults, Azure managed-disk snapshots), ransomware affiliates have adapted their recovery-inhibition step to match: rather than running vssadmin on an endpoint, the attacker who has obtained cloud administrative credentials calls the backup/snapshot service's own deletion APIs directly. Observed patterns include bulk deletion of AWS Backup recovery points and backup vaults (DeleteRecoveryPoint, DeleteBackupVault, DeleteBackupPlan, DeleteBackupSelection), direct deletion of EC2/RDS snapshots (DeleteSnapshot, DeleteDBSnapshot, DeleteDBClusterSnapshot), and — on Azure — first disabling the Recovery Services vault's soft-delete protection before deleting protected items or the vault itself (soft-delete exists specifically to survive this attack, so its removal is itself a strong signal), plus deletion of standalone managed-disk snapshots. This is functionally identical in intent to T1490's on-host VSS/BCD deletion but lives entirely in cloud control-plane audit logs (AWS CloudTrail, Azure Activity Log) rather than endpoint telemetry, and the key discriminator from legitimate lifecycle-policy cleanup is who/what made the call: automated retention-policy expiration is initiated by the backup service itself (e.g. CloudTrail invokedBy backup.amazonaws.com), while an interactive IAM user or role deleting many recovery points/vaults in a short window is anomalous and, combined with a soft-delete-disable step on Azure, should be treated as an active pre-encryption indicator.
MITRE ATT&CK
- Tactic
- Impact
Elastic Detection Query
any where event.dataset in ("aws.cloudtrail", "azure.activitylogs") and (
(
event.dataset == "aws.cloudtrail" and
event.action in ("DeleteRecoveryPoint", "DeleteBackupVault", "DeleteBackupPlan", "DeleteBackupSelection", "DeleteSnapshot", "DeleteDBSnapshot", "DeleteDBClusterSnapshot") and
not aws.cloudtrail.user_identity.invoked_by : "backup.amazonaws.com"
) or
(
event.dataset == "azure.activitylogs" and
azure.activitylogs.operation_name : (
"MICROSOFT.RECOVERYSERVICES/VAULTS/BACKUPCONFIG/WRITE",
"MICROSOFT.RECOVERYSERVICES/VAULTS/BACKUPFABRICS/BACKUPPROTECTIONCONTAINERS/PROTECTEDITEMS/DELETE",
"MICROSOFT.RECOVERYSERVICES/VAULTS/DELETE",
"MICROSOFT.COMPUTE/SNAPSHOTS/DELETE"
) and
event.outcome == "success"
)
) Detects cloud backup/recovery infrastructure deletion using Elastic's aws.cloudtrail and azure.activitylogs integrations. Matches AWS Backup recovery point/vault/plan deletion and EC2/RDS snapshot deletion (excluding AWS Backup service-initiated lifecycle expiration), and Azure Recovery Services soft-delete disablement, protected-item/vault deletion, and managed-disk snapshot deletion. Pair with an Elastic detection-rule threshold (3+ matches per identity within 30 minutes) to reproduce the full burst-detection logic.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate backup lifecycle/retention expiration not fully excluded by the invoked_by filter
- Planned environment decommissioning with bulk vault/recovery point deletion
- Cost-optimization snapshot pruning scripts
- Migration projects temporarily disabling Azure Backup soft-delete
- Backup/DR testing in non-production environments
Other platforms for THREAT-CloudBackup-SnapshotPurge
Testing Methodology
Validate this detection against 2 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Simulate AWS Backup Recovery Point Deletion Burst
Expected signal: AWS CloudTrail management events: eventName=DeleteRecoveryPoint, eventSource=backup.amazonaws.com, three or more events from the same userIdentity.arn within a few minutes, with userIdentity.type NOT equal to AWSService.
- Test 2Simulate Azure Recovery Services Soft-Delete Disable Then Protected Item Removal
Expected signal: Azure Activity Log entries: operationName=MICROSOFT.RECOVERYSERVICES/VAULTS/BACKUPCONFIG/WRITE (soft-delete disabled) followed within minutes by operationName=MICROSOFT.RECOVERYSERVICES/VAULTS/BACKUPFABRICS/BACKUPPROTECTIONCONTAINERS/PROTECTEDITEMS/DELETE, both with resultType=Success from the same caller.
References (7)
- https://attack.mitre.org/techniques/T1490/
- https://attack.mitre.org/tactics/TA0040/
- https://docs.aws.amazon.com/aws-backup/latest/devguide/API_DeleteRecoveryPoint.html
- https://docs.aws.amazon.com/aws-backup/latest/devguide/API_DeleteBackupVault.html
- https://learn.microsoft.com/en-us/azure/backup/backup-azure-security-feature-cloud
- https://learn.microsoft.com/en-us/azure/backup/backup-azure-delete-vault
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1490/T1490.md
Unlock playbooks & atomic tests with Pro
Get the full detection package for THREAT-CloudBackup-SnapshotPurge — response playbook and atomic red team tests, plus investigation guidance and hunting queries.
df00tech Pro — £29/user/month