Anvilogic high experimental spl

AWS DescribeImages without owner parameter [splunk-awscloudtrail]

This rule attempts to monitor a name confusion attack, where a vulnerable AMI search pattern is present with the "DescribeImages" API call not specifying the owner parameter.

View Source

Detection Logic

`get_cloud_data` `get_cloud_data_iam` eventName="DescribeImages" "ec2.amazonaws.com"
| search src_ip != "*amazonaws.com"
| rex field=request_parameters "(?i)filterSet.*?items.*?name.*?\x22:(?<AMI>\x22.*?\x22)"
| rex field=request_parameters "(?i)ownersset.*?owner\x22:(?<owner>\x22.*?\x22)"
| rex mode=sed field=owner "s/\x22//g"
| where isnotnull(AMI) and isnull(owner)
| table _time, host, user, account, region, src_ip, http_user_agent, access_key, user, user_id, identity_type, role, event_name, event_category, cloud_service, request_parameters, response, mfa_enabled, permissions, identity, action, resource_id, object_id, dest_*
| bin span=1s
| stats values(*) as * by _time, user
| lookup dnslookup clientip as src_ip OUTPUT clienthost as src_dns
| iplocation prefix="src_" src_ip
| rename src_Country as src_country

Field Validations

Loading…

Comments (0)

Loading comments...