AWS S3 Object Exfiltration WITH Object Deletion
Description
Detects a ransomware attack pattern where an attacker with compromised AWS credentials exfiltrates data from an S3 bucket to an external AWS account, followed by bulk deletion of objects from the source bucket within a short timeframe. This technique was notably used by the threat actor Bling Libra to extort victims by threatening data destruction or leaks.
Query
Detection:
- Group:
- ID: Bulk Exfiltration
RuleID: AWS.S3.CopyObjectToExternalAccountBucket
MinMatchCount: 10
- ID: Bulk Deletion
RuleID: AWS.S3.DeleteObject
MinMatchCount: 10
MatchCriteria:
field_name:
- GroupID: Bulk Exfiltration
Match: p_alert_context.bucketName
- GroupID: Bulk Deletion
Match: p_alert_context.bucketName
Schedule:
RateMinutes: 1440
TimeoutMinutes: 10
LookbackWindowMinutes: 1800
Rule dependencies
⚠ Higher-order rule. It fires on other rules' alerts, not on raw events, so it cannot fire on its own. Deploy the rules it depends on too.
Depends on
-
correlates · Panther group
AWS.S3.CopyObjectToExternalAccountBucketwithin 1800m -
correlates · Panther group
AWS.S3.DeleteObjectwithin 1800m
Analyst notes
- Query CloudTrail for all S3 API calls by the userIdentity:arn in the 24 hours before and after the alert to establish the full scope of bucket access
- Verify if the destination account ID in the CopyObject events appears in any legitimate cross-account S3 operations in the past 90 days
- Check if the source IP addresses for both exfiltration and deletion events match known VPN endpoints, cloud provider ranges, or previously seen IPs for this user
- Find all other CopyObject and DeleteObject events to the same or other buckets from any user in the past 7 days to identify if this is part of a broader campaign