event.dataset:azure.auditlogs
and azure.auditlogs.operation_name:"Add service principal"
and event.outcome:(success or Success)
and not azure.auditlogs.identity: (
"Managed Service Identity" or
"Windows Azure Service Management API" or
"Microsoft Azure AD Internal - Jit Provisioning" or
"AAD App Management" or
"Power Virtual Agents Service"
)
Install detection rules in Elastic Security
Detect Microsoft Entra ID Service Principal Created 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(opens in a new tab or window).