Initial Access (TA0001)(external, opens in a new tab or window)
Defense Evasion (TA0005)(external, opens in a new tab or window)
text code block:data_stream.dataset:azure.signinlogs and azure.signinlogs.category:ServicePrincipalSignInLogs and azure.signinlogs.properties.status.error_code:0 and azure.signinlogs.properties.service_principal_id:* and source.as.number:* and not source.as.organization.name:(*MICROSOFT* or *Microsoft*) and not azure.signinlogs.properties.app_owner_tenant_id:(72f988bf-86f1-41af-91ab-2d7cd011db47 or f8cdef31-a31e-4b4a-93e4-5f571e91255a)
Install detection rules in Elastic Security
Detect Entra ID Service Principal with 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).