Repository navigation
[Rule Tuning] Entra ID Service Principal Created - #7230
Open
terrancedejesus wants to merge 2 commits into
Open
terrancedejesus wants to merge 2 commits into
terrancedejesus wants to merge 2 commits into
Conversation
terrancedejesus
requested review from
Aegrah,
Mikaayenson,
Samirbous,
bryans3c,
django-88,
eric-forte-elastic,
shashank-elastic and
w0rk3r
November 24, 2026 16:36
Contributor
There was a problem hiding this comment.
🟡 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" |
bryans3c
requested changes
Nov 24, 2026
| "AAD App Management" or | ||
| "Power Virtual Agents Service" | ||
| ) | ||
| and not azure.auditlogs.properties.additional_details.value: "AzureResourceProvider" |
Contributor
There was a problem hiding this comment.
Can we safely associate AzureResourceProvider with ServicePrincipalProvisioningType? additional_details contains multiple key/value objects but Elasticsearch flattens them.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Related: https://github.com/elastic/ia-trade-team/issues/1052
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.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.Otherand can only be matched by display name, which overlaps with agent blueprint consent phishing.ServicePrincipalProvisioningType.30d telemetry, current versions, emulation clusters excluded should be a 35% reduction.