Skip to content

[Rule Tuning] Entra ID Service Principal Created - #7230

Open
terrancedejesus wants to merge 2 commits into
mainfrom
rule-tuning/entra-id-service-principal-created-112
Open

terrancedejesus wants to merge 2 commits into
mainfrom
rule-tuning/entra-id-service-principal-created-112

Conversation

@terrancedejesus

@terrancedejesus terrancedejesus commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Related: https://github.com/elastic/ia-trade-team/issues/1052

  • Exclude service principals Entra ID logs with ServicePrincipalProvisioningType: "AzureResourceProvider". These are created by Azure resource providers when a service is onboarded, and the value is set by Entra ID, not the caller.
  • Add 12h alert suppression on azure.auditlogs.properties.initiated_by.app.servicePrincipalId. Apps and agent blueprints often create several service principals in one burst; the first still alerts and the rest are counted. Events with no initiating service principal (user-initiated) are not suppressed.
  • Copilot Studio / agent blueprint creations are not excluded. They log as Other and can only be matched by display name, which overlaps with agent blueprint consent phishing.
  • Updated the investigation guide to cover the exclusion, the suppression, and how to read ServicePrincipalProvisioningType.

30d telemetry, current versions, emulation clusters excluded should be a 35% reduction.

@terrancedejesus
terrancedejesus marked this pull request as ready for review November 24, 2026 16:49
Copilot AI balanced review requested due to automatic review settings November 24, 2026 16:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The rule can incorrectly exclude service-principal creation events because its AzureResourceProvider filter matches any additional-detail value rather than only ServicePrincipalProvisioningType.

1 open issue
What changed in this PR

Tunes the Entra ID service-principal creation rule to reduce routine alerts while retaining coverage for app and agent-blueprint creations.

Changes:

  • Adds an exclusion intended for Azure resource-provider provisioning.
  • Adds 12-hour suppression by initiating service principal, without suppressing events missing that field.
  • Updates investigation guidance for provisioning types and suppressed alerts.
File Description
rules/​integrations/​azure/​persistence_entra_id_service_principal_created.toml Updates filtering, alert suppression, investigation guidance, and the metadata date.

Review effort: Balanced

"AAD App Management" or
"Power Virtual Agents Service"
)
and not azure.auditlogs.properties.additional_details.value: "AzureResourceProvider"
"AAD App Management" or
"Power Virtual Agents Service"
)
and not azure.auditlogs.properties.additional_details.value: "AzureResourceProvider"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we safely associate AzureResourceProvider with ServicePrincipalProvisioningType? additional_details contains multiple key/value objects but Elasticsearch flattens them.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants