Files
splunk-security_content/baselines/previously_seen_ec2_amis.yml
Patrick Bareiss cc464c87db updated content
2020-05-05 12:58:56 +02:00

19 lines
779 B
YAML

name: Previously Seen EC2 AMIs
id: bb1bd99d-1e93-45f1-9571-cfed42d372b9
version: 1
date: '2018-03-12'
description: This search builds a table of previously seen AMIs used to launch EC2
instances
how_to_implement: You must install the AWS App for Splunk (version 5.1.0 or later)
and Splunk Add-on for AWS version (4.4.0 or later), then configure your CloudTrail
inputs.
author: David Dorsey, Splunk
search: '`cloudtrail` eventName=RunInstances errorCode=success | rename requestParameters.instancesSet.items{}.imageId
as amiID | stats earliest(_time) as firstTime latest(_time) as lastTime by amiID
| outputlookup previously_seen_ec2_amis.csv | stats count'
tags:
analytics_story:
- AWS Cryptomining
detections:
- EC2 Instance Started With Previously Unseen AMI