LoFP LoFP / it is possible that a user downloaded these files to use them locally and there are aws services in configured that perform these activities for a legitimate reason. filter is needed.

Techniques

Sample rules

AWS Exfiltration via Anomalous GetObject API Activity

Description

The following analytic identifies anomalous GetObject API activity in AWS, indicating potential data exfiltration attempts. It leverages AWS CloudTrail logs and uses the anomalydetection command to detect unusual patterns in the frequency of GetObject API calls by analyzing fields such as “count,” “user_type,” and “user_arn” within a 10-minute window. This activity is significant as it may indicate unauthorized data access or exfiltration from S3 buckets. If confirmed malicious, attackers could exfiltrate sensitive data, leading to data breaches and compliance violations.

Detection logic

`cloudtrail` eventName=GetObject 
| bin _time span=10m 
| rename user_name as user 
| stats count values(requestParameters.bucketName) as bucketName by signature dest user user_agent src vendor_account vendor_region vendor_product 
| anomalydetection "count" "user" action=annotate 
| search probable_cause=* 
|`aws_exfiltration_via_anomalous_getobject_api_activity_filter`