Source dated · Updated
Original query
Splunk · SPL · Apache-2.0
Surfaces new federated credentials for service principals, which can also be part of approved provisioning.
Telemetry Microsoft Entra ID audit logs and Splunk security content macros.
Upstream author descambiado, Onur Mustafa Erdogan, Splunk
Copyright 2026 Splunk Inc.
`azure_monitor_aad`
category=AuditLogs
operationName IN ("Update application", "Update service principal")
properties.targetResources{}.modifiedProperties{}.displayName="FederatedIdentityCredentials"
| rename properties.* as *
| rename initiatedBy.user.userPrincipalName as initiatedBy
| rename initiatedBy.app.displayName as initiatedByApp
| eval actor = coalesce(initiatedBy, initiatedByApp)
| rename targetResources{}.displayName as targetSpName
| rename userAgent as user_agent
| eval index_number=mvfind('targetResources{}.modifiedProperties{}.displayName', "FederatedIdentityCredentials")
| eval newCreds = mvindex('targetResources{}.modifiedProperties{}.newValue', index_number)
| eval oldCreds = mvindex('targetResources{}.modifiedProperties{}.oldValue', index_number)
| spath input=newCreds path={}.name output=newCredNames
| spath input=oldCreds path={}.name output=oldCredNames
| where mvcount(newCredNames) > coalesce(mvcount(oldCredNames), 0)
| fillnull value="unknown" dest src vendor_account vendor_product user_agent actor targetSpName newCreds oldCreds signature
| stats count min(_time) as firstTime
max(_time) as lastTime
BY dest src vendor_account vendor_product user_agent
actor targetSpName newCreds oldCreds signature
| rename actor as user
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `azure_ad_federated_identity_credential_added_to_service_principal_filter`