Sample rules
AWS Cloud Provisioning From Previously Unseen IP Address
- source: splunk
- technicques:
Description
This search looks for AWS provisioning activities from previously unseen IP addresses. Provisioning activities are defined broadly as any event that begins with “Run” or “Create.” This search is deprecated and have been translated to use the latest Change Datamodel.
Detection logic
`cloudtrail` (eventName=Run* OR eventName=Create*) [search `cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Country=*
| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country
| inputlookup append=t previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country
| outputlookup previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress
| eval newIP=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0)
| where newIP=1
| table sourceIPAddress]
| spath output=user userIdentity.arn
| rename sourceIPAddress as src_ip
| table _time, user, src_ip, eventName, errorCode
| `aws_cloud_provisioning_from_previously_unseen_ip_address_filter`
Cloud Provisioning Activity From Previously Unseen Country
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen countries. It leverages cloud infrastructure logs and compares the geographic location of the source IP address against a baseline of known locations. This activity is significant as it may indicate unauthorized access or potential compromise of cloud resources. If confirmed malicious, an attacker could gain control over cloud assets, leading to data breaches, service disruptions, or further infiltration into the network.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| iplocation src
| where isnotnull(Country)
| lookup previously_seen_cloud_provisioning_activity_sources Country as Country OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenCountry=min(firstTimeSeen)
| where isnull(firstTimeSeenCountry) OR firstTimeSeenCountry > relative_time(now(), "-24h@h")
| `security_content_ctime(firstTime)`
| table firstTime, src, Country, user, object, command
| `cloud_provisioning_activity_from_previously_unseen_country_filter`
Cloud Provisioning Activity From Previously Unseen IP Address
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen IP addresses. It leverages cloud infrastructure logs to identify events where resources are created or started, and cross-references these with a baseline of known IP addresses. This activity is significant as it may indicate unauthorized access or potential misuse of cloud resources. If confirmed malicious, an attacker could gain unauthorized control over cloud resources, leading to data breaches, service disruptions, or increased operational costs.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime, values(All_Changes.object_id) as object_id from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| lookup previously_seen_cloud_provisioning_activity_sources src as src OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenSrc=min(firstTimeSeen)
| where isnull(firstTimeSeenSrc) OR firstTimeSeenSrc > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`)
| `security_content_ctime(firstTime)`
| table firstTime, src, user, object_id, command
| `cloud_provisioning_activity_from_previously_unseen_ip_address_filter`
Cloud Provisioning Activity From Previously Unseen City
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen cities. It leverages cloud infrastructure logs and compares the geographic location of the source IP address against a baseline of known locations. This activity is significant as it may indicate unauthorized access or misuse of cloud resources from an unexpected location. If confirmed malicious, this could lead to unauthorized resource creation, potential data exfiltration, or further compromise of cloud infrastructure.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| iplocation src
| where isnotnull(City)
| lookup previously_seen_cloud_provisioning_activity_sources City as City OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenCity=min(firstTimeSeen)
| where isnull(firstTimeSeenCity) OR firstTimeSeenCity > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`)
| `security_content_ctime(firstTime)`
| table firstTime, src, City, user, object, command
| `cloud_provisioning_activity_from_previously_unseen_city_filter`
Cloud Provisioning Activity From Previously Unseen Region
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen regions. It leverages cloud infrastructure logs to identify events where resources are started or created, and cross-references these with a baseline of known regions. This activity is significant as it may indicate unauthorized access or misuse of cloud resources from unfamiliar locations. If confirmed malicious, this could lead to unauthorized resource creation, potential data exfiltration, or further compromise of cloud infrastructure.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| iplocation src
| where isnotnull(Region)
| lookup previously_seen_cloud_provisioning_activity_sources Region as Region OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenRegion=min(firstTimeSeen)
| where isnull(firstTimeSeenRegion) OR firstTimeSeenRegion > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`)
| `security_content_ctime(firstTime)`
| table firstTime, src, Region, user, object, command
| `cloud_provisioning_activity_from_previously_unseen_region_filter`
AWS Cloud Provisioning From Previously Unseen Region
- source: splunk
- technicques:
- T1535
Description
This search looks for AWS provisioning activities from previously unseen regions. Region in this context is similar to a state in the United States. Provisioning activities are defined broadly as any event that begins with “Run” or “Create.” This search is deprecated and have been translated to use the latest Change Datamodel.
Detection logic
`cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Region=* [search `cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Region=*
| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country
| inputlookup append=t previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country
| outputlookup previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by Region
| eval newRegion=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0)
| where newRegion=1
| table Region]
| spath output=user userIdentity.arn
| rename sourceIPAddress as src_ip
| table _time, user, src_ip, Region, eventName, errorCode
| `aws_cloud_provisioning_from_previously_unseen_region_filter`
Sample rules
AWS Cloud Provisioning From Previously Unseen IP Address
- source: splunk
- technicques:
Description
This search looks for AWS provisioning activities from previously unseen IP addresses. Provisioning activities are defined broadly as any event that begins with “Run” or “Create.” This search is deprecated and have been translated to use the latest Change Datamodel.
Detection logic
`cloudtrail` (eventName=Run* OR eventName=Create*) [search `cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Country=*
| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country
| inputlookup append=t previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country
| outputlookup previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress
| eval newIP=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0)
| where newIP=1
| table sourceIPAddress]
| spath output=user userIdentity.arn
| rename sourceIPAddress as src_ip
| table _time, user, src_ip, eventName, errorCode
| `aws_cloud_provisioning_from_previously_unseen_ip_address_filter`
Cloud Provisioning Activity From Previously Unseen Country
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen countries. It leverages cloud infrastructure logs and compares the geographic location of the source IP address against a baseline of known locations. This activity is significant as it may indicate unauthorized access or potential compromise of cloud resources. If confirmed malicious, an attacker could gain control over cloud assets, leading to data breaches, service disruptions, or further infiltration into the network.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| iplocation src
| where isnotnull(Country)
| lookup previously_seen_cloud_provisioning_activity_sources Country as Country OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenCountry=min(firstTimeSeen)
| where isnull(firstTimeSeenCountry) OR firstTimeSeenCountry > relative_time(now(), "-24h@h")
| `security_content_ctime(firstTime)`
| table firstTime, src, Country, user, object, command
| `cloud_provisioning_activity_from_previously_unseen_country_filter`
Cloud Provisioning Activity From Previously Unseen IP Address
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen IP addresses. It leverages cloud infrastructure logs to identify events where resources are created or started, and cross-references these with a baseline of known IP addresses. This activity is significant as it may indicate unauthorized access or potential misuse of cloud resources. If confirmed malicious, an attacker could gain unauthorized control over cloud resources, leading to data breaches, service disruptions, or increased operational costs.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime, values(All_Changes.object_id) as object_id from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| lookup previously_seen_cloud_provisioning_activity_sources src as src OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenSrc=min(firstTimeSeen)
| where isnull(firstTimeSeenSrc) OR firstTimeSeenSrc > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`)
| `security_content_ctime(firstTime)`
| table firstTime, src, user, object_id, command
| `cloud_provisioning_activity_from_previously_unseen_ip_address_filter`
Cloud Provisioning Activity From Previously Unseen City
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen cities. It leverages cloud infrastructure logs and compares the geographic location of the source IP address against a baseline of known locations. This activity is significant as it may indicate unauthorized access or misuse of cloud resources from an unexpected location. If confirmed malicious, this could lead to unauthorized resource creation, potential data exfiltration, or further compromise of cloud infrastructure.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| iplocation src
| where isnotnull(City)
| lookup previously_seen_cloud_provisioning_activity_sources City as City OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenCity=min(firstTimeSeen)
| where isnull(firstTimeSeenCity) OR firstTimeSeenCity > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`)
| `security_content_ctime(firstTime)`
| table firstTime, src, City, user, object, command
| `cloud_provisioning_activity_from_previously_unseen_city_filter`
Cloud Provisioning Activity From Previously Unseen Region
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen regions. It leverages cloud infrastructure logs to identify events where resources are started or created, and cross-references these with a baseline of known regions. This activity is significant as it may indicate unauthorized access or misuse of cloud resources from unfamiliar locations. If confirmed malicious, this could lead to unauthorized resource creation, potential data exfiltration, or further compromise of cloud infrastructure.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| iplocation src
| where isnotnull(Region)
| lookup previously_seen_cloud_provisioning_activity_sources Region as Region OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenRegion=min(firstTimeSeen)
| where isnull(firstTimeSeenRegion) OR firstTimeSeenRegion > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`)
| `security_content_ctime(firstTime)`
| table firstTime, src, Region, user, object, command
| `cloud_provisioning_activity_from_previously_unseen_region_filter`
AWS Cloud Provisioning From Previously Unseen Region
- source: splunk
- technicques:
- T1535
Description
This search looks for AWS provisioning activities from previously unseen regions. Region in this context is similar to a state in the United States. Provisioning activities are defined broadly as any event that begins with “Run” or “Create.” This search is deprecated and have been translated to use the latest Change Datamodel.
Detection logic
`cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Region=* [search `cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Region=*
| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country
| inputlookup append=t previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country
| outputlookup previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by Region
| eval newRegion=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0)
| where newRegion=1
| table Region]
| spath output=user userIdentity.arn
| rename sourceIPAddress as src_ip
| table _time, user, src_ip, Region, eventName, errorCode
| `aws_cloud_provisioning_from_previously_unseen_region_filter`
AWS Cloud Provisioning From Previously Unseen Country
- source: splunk
- technicques:
- T1535
Description
This search looks for AWS provisioning activities from previously unseen countries. Provisioning activities are defined broadly as any event that begins with “Run” or “Create.” This search is deprecated and have been translated to use the latest Change Datamodel.
Detection logic
`cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Country=* [search `cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Country=*
| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country
| inputlookup append=t previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country
| outputlookup previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by Country
| eval newCountry=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0)
| where newCountry=1
| table Country]
| spath output=user userIdentity.arn
| rename sourceIPAddress as src_ip
| table _time, user, src_ip, Country, eventName, errorCode
| `aws_cloud_provisioning_from_previously_unseen_country_filter`
Sample rules
AWS Cloud Provisioning From Previously Unseen IP Address
- source: splunk
- technicques:
Description
This search looks for AWS provisioning activities from previously unseen IP addresses. Provisioning activities are defined broadly as any event that begins with “Run” or “Create.” This search is deprecated and have been translated to use the latest Change Datamodel.
Detection logic
`cloudtrail` (eventName=Run* OR eventName=Create*) [search `cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Country=*
| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country
| inputlookup append=t previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country
| outputlookup previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress
| eval newIP=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0)
| where newIP=1
| table sourceIPAddress]
| spath output=user userIdentity.arn
| rename sourceIPAddress as src_ip
| table _time, user, src_ip, eventName, errorCode
| `aws_cloud_provisioning_from_previously_unseen_ip_address_filter`
Cloud Provisioning Activity From Previously Unseen Country
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen countries. It leverages cloud infrastructure logs and compares the geographic location of the source IP address against a baseline of known locations. This activity is significant as it may indicate unauthorized access or potential compromise of cloud resources. If confirmed malicious, an attacker could gain control over cloud assets, leading to data breaches, service disruptions, or further infiltration into the network.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| iplocation src
| where isnotnull(Country)
| lookup previously_seen_cloud_provisioning_activity_sources Country as Country OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenCountry=min(firstTimeSeen)
| where isnull(firstTimeSeenCountry) OR firstTimeSeenCountry > relative_time(now(), "-24h@h")
| `security_content_ctime(firstTime)`
| table firstTime, src, Country, user, object, command
| `cloud_provisioning_activity_from_previously_unseen_country_filter`
Cloud Provisioning Activity From Previously Unseen IP Address
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen IP addresses. It leverages cloud infrastructure logs to identify events where resources are created or started, and cross-references these with a baseline of known IP addresses. This activity is significant as it may indicate unauthorized access or potential misuse of cloud resources. If confirmed malicious, an attacker could gain unauthorized control over cloud resources, leading to data breaches, service disruptions, or increased operational costs.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime, values(All_Changes.object_id) as object_id from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| lookup previously_seen_cloud_provisioning_activity_sources src as src OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenSrc=min(firstTimeSeen)
| where isnull(firstTimeSeenSrc) OR firstTimeSeenSrc > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`)
| `security_content_ctime(firstTime)`
| table firstTime, src, user, object_id, command
| `cloud_provisioning_activity_from_previously_unseen_ip_address_filter`
Cloud Provisioning Activity From Previously Unseen City
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen cities. It leverages cloud infrastructure logs and compares the geographic location of the source IP address against a baseline of known locations. This activity is significant as it may indicate unauthorized access or misuse of cloud resources from an unexpected location. If confirmed malicious, this could lead to unauthorized resource creation, potential data exfiltration, or further compromise of cloud infrastructure.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| iplocation src
| where isnotnull(City)
| lookup previously_seen_cloud_provisioning_activity_sources City as City OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenCity=min(firstTimeSeen)
| where isnull(firstTimeSeenCity) OR firstTimeSeenCity > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`)
| `security_content_ctime(firstTime)`
| table firstTime, src, City, user, object, command
| `cloud_provisioning_activity_from_previously_unseen_city_filter`
Cloud Provisioning Activity From Previously Unseen Region
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen regions. It leverages cloud infrastructure logs to identify events where resources are started or created, and cross-references these with a baseline of known regions. This activity is significant as it may indicate unauthorized access or misuse of cloud resources from unfamiliar locations. If confirmed malicious, this could lead to unauthorized resource creation, potential data exfiltration, or further compromise of cloud infrastructure.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| iplocation src
| where isnotnull(Region)
| lookup previously_seen_cloud_provisioning_activity_sources Region as Region OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenRegion=min(firstTimeSeen)
| where isnull(firstTimeSeenRegion) OR firstTimeSeenRegion > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`)
| `security_content_ctime(firstTime)`
| table firstTime, src, Region, user, object, command
| `cloud_provisioning_activity_from_previously_unseen_region_filter`
AWS Cloud Provisioning From Previously Unseen Region
- source: splunk
- technicques:
- T1535
Description
This search looks for AWS provisioning activities from previously unseen regions. Region in this context is similar to a state in the United States. Provisioning activities are defined broadly as any event that begins with “Run” or “Create.” This search is deprecated and have been translated to use the latest Change Datamodel.
Detection logic
`cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Region=* [search `cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Region=*
| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country
| inputlookup append=t previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country
| outputlookup previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by Region
| eval newRegion=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0)
| where newRegion=1
| table Region]
| spath output=user userIdentity.arn
| rename sourceIPAddress as src_ip
| table _time, user, src_ip, Region, eventName, errorCode
| `aws_cloud_provisioning_from_previously_unseen_region_filter`
Sample rules
AWS Cloud Provisioning From Previously Unseen IP Address
- source: splunk
- technicques:
Description
This search looks for AWS provisioning activities from previously unseen IP addresses. Provisioning activities are defined broadly as any event that begins with “Run” or “Create.” This search is deprecated and have been translated to use the latest Change Datamodel.
Detection logic
`cloudtrail` (eventName=Run* OR eventName=Create*) [search `cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Country=*
| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country
| inputlookup append=t previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country
| outputlookup previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress
| eval newIP=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0)
| where newIP=1
| table sourceIPAddress]
| spath output=user userIdentity.arn
| rename sourceIPAddress as src_ip
| table _time, user, src_ip, eventName, errorCode
| `aws_cloud_provisioning_from_previously_unseen_ip_address_filter`
Cloud Provisioning Activity From Previously Unseen Country
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen countries. It leverages cloud infrastructure logs and compares the geographic location of the source IP address against a baseline of known locations. This activity is significant as it may indicate unauthorized access or potential compromise of cloud resources. If confirmed malicious, an attacker could gain control over cloud assets, leading to data breaches, service disruptions, or further infiltration into the network.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| iplocation src
| where isnotnull(Country)
| lookup previously_seen_cloud_provisioning_activity_sources Country as Country OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenCountry=min(firstTimeSeen)
| where isnull(firstTimeSeenCountry) OR firstTimeSeenCountry > relative_time(now(), "-24h@h")
| `security_content_ctime(firstTime)`
| table firstTime, src, Country, user, object, command
| `cloud_provisioning_activity_from_previously_unseen_country_filter`
Cloud Provisioning Activity From Previously Unseen IP Address
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen IP addresses. It leverages cloud infrastructure logs to identify events where resources are created or started, and cross-references these with a baseline of known IP addresses. This activity is significant as it may indicate unauthorized access or potential misuse of cloud resources. If confirmed malicious, an attacker could gain unauthorized control over cloud resources, leading to data breaches, service disruptions, or increased operational costs.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime, values(All_Changes.object_id) as object_id from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| lookup previously_seen_cloud_provisioning_activity_sources src as src OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenSrc=min(firstTimeSeen)
| where isnull(firstTimeSeenSrc) OR firstTimeSeenSrc > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`)
| `security_content_ctime(firstTime)`
| table firstTime, src, user, object_id, command
| `cloud_provisioning_activity_from_previously_unseen_ip_address_filter`
Cloud Provisioning Activity From Previously Unseen City
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen cities. It leverages cloud infrastructure logs and compares the geographic location of the source IP address against a baseline of known locations. This activity is significant as it may indicate unauthorized access or misuse of cloud resources from an unexpected location. If confirmed malicious, this could lead to unauthorized resource creation, potential data exfiltration, or further compromise of cloud infrastructure.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| iplocation src
| where isnotnull(City)
| lookup previously_seen_cloud_provisioning_activity_sources City as City OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenCity=min(firstTimeSeen)
| where isnull(firstTimeSeenCity) OR firstTimeSeenCity > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`)
| `security_content_ctime(firstTime)`
| table firstTime, src, City, user, object, command
| `cloud_provisioning_activity_from_previously_unseen_city_filter`
Cloud Provisioning Activity From Previously Unseen Region
- source: splunk
- technicques:
- T1078
Description
The following analytic detects cloud provisioning activities originating from previously unseen regions. It leverages cloud infrastructure logs to identify events where resources are started or created, and cross-references these with a baseline of known regions. This activity is significant as it may indicate unauthorized access or misuse of cloud resources from unfamiliar locations. If confirmed malicious, this could lead to unauthorized resource creation, potential data exfiltration, or further compromise of cloud infrastructure.
Detection logic
| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command
| `drop_dm_object_name("All_Changes")`
| iplocation src
| where isnotnull(Region)
| lookup previously_seen_cloud_provisioning_activity_sources Region as Region OUTPUT firstTimeSeen, enough_data
| eventstats max(enough_data) as enough_data
| where enough_data=1
| eval firstTimeSeenRegion=min(firstTimeSeen)
| where isnull(firstTimeSeenRegion) OR firstTimeSeenRegion > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`)
| `security_content_ctime(firstTime)`
| table firstTime, src, Region, user, object, command
| `cloud_provisioning_activity_from_previously_unseen_region_filter`
AWS Cloud Provisioning From Previously Unseen Region
- source: splunk
- technicques:
- T1535
Description
This search looks for AWS provisioning activities from previously unseen regions. Region in this context is similar to a state in the United States. Provisioning activities are defined broadly as any event that begins with “Run” or “Create.” This search is deprecated and have been translated to use the latest Change Datamodel.
Detection logic
`cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Region=* [search `cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Region=*
| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country
| inputlookup append=t previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country
| outputlookup previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by Region
| eval newRegion=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0)
| where newRegion=1
| table Region]
| spath output=user userIdentity.arn
| rename sourceIPAddress as src_ip
| table _time, user, src_ip, Region, eventName, errorCode
| `aws_cloud_provisioning_from_previously_unseen_region_filter`
AWS Cloud Provisioning From Previously Unseen Country
- source: splunk
- technicques:
- T1535
Description
This search looks for AWS provisioning activities from previously unseen countries. Provisioning activities are defined broadly as any event that begins with “Run” or “Create.” This search is deprecated and have been translated to use the latest Change Datamodel.
Detection logic
`cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Country=* [search `cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search Country=*
| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country
| inputlookup append=t previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country
| outputlookup previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by Country
| eval newCountry=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0)
| where newCountry=1
| table Country]
| spath output=user userIdentity.arn
| rename sourceIPAddress as src_ip
| table _time, user, src_ip, Country, eventName, errorCode
| `aws_cloud_provisioning_from_previously_unseen_country_filter`
AWS Cloud Provisioning From Previously Unseen City
- source: splunk
- technicques:
- T1535
Description
This search looks for AWS provisioning activities from previously unseen cities. Provisioning activities are defined broadly as any event that begins with “Run” or “Create.” This search is deprecated and have been translated to use the latest Change Datamodel.
Detection logic
`cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search City=* [search `cloudtrail` (eventName=Run* OR eventName=Create*)
| iplocation sourceIPAddress
| search City=*
| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country
| inputlookup append=t previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country
| outputlookup previously_seen_provisioning_activity_src.csv
| stats min(firstTime) as firstTime max(lastTime) as lastTime by City
| eval newCity=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0)
| where newCity=1
| table City]
| spath output=user userIdentity.arn
| rename sourceIPAddress as src_ip
| table _time, user, src_ip, City, eventName, errorCode
| `aws_cloud_provisioning_from_previously_unseen_city_filter`