Defense Evasion (TA0005)(external, opens in a new tab or window)
text code block:FROM logs-azure.activitylogs-* METADATA _id, _version, _index | WHERE event.dataset == "azure.activitylogs" AND event.action == "MICROSOFT.COMPUTE/SNAPSHOTS/WRITE" AND event.outcome == "success" AND NOT COALESCE(source.as.organization.name, "none") IN ("Google LLC", "Amazon.com, Inc.", "Microsoft Corporation", "GOOGLE-CLOUD-PLATFORM", "MICROSOFT-CORP-MSN-AS-BLOCK", "AMAZON-AES", "AMAZON-02") | EVAL Esql.actor = COALESCE(user.name, azure.activitylogs.identity.authorization.evidence.principal_id) | KEEP _id, _version, _index, @timestamp, Esql.actor, cloud.account.id, azure.resource.name, source.as.organization.name, event.action
Install detection rules in Elastic Security
Detect Azure Compute Snapshot Created by Unusual Source ASN in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).