Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
id: splunk-security-content-29af1725-7a72-4d2d-8a18-e697e79a62d3
name: O365 External Identity Policy Changed
description: The following analytic identifies when changes are made to the external
guest policies within Azure AD. With Azure AD B2B collaboration, users and administrators
can invite external users to collaborate with internal users. This detection also
attempts to highlight what may have changed. External guest account invitations
should be monitored by security teams as they could potentially lead to unauthorized
access. An example of this attack vector was described at BlackHat 2022 by security
researcher Dirk-Jan during his tall `Backdooring and Hijacking Azure AD Accounts
by Abusing External Identities`.
severity: medium
enabled: false
tags:
mitre:
- T1136.003
categories:
- cloud
references:
- https://medium.com/tenable-techblog/roles-allowing-to-abuse-entra-id-federation-for-persistence-and-privilege-escalation-df9ca6e58360
- https://learn.microsoft.com/en-us/entra/external-id/external-identities-overview
logsource:
product: splunk
detection:
splunk_spl: '`o365_management_activity` Workload=AzureActiveDirectory Operation="Update
policy." Target{}.ID="B2BManagementPolicy" | eval object_attrs = mvindex(''ModifiedProperties{}.NewValue'',0),
object_attrs_old = mvindex(''ModifiedProperties{}.OldValue'',0), object_name =
mvindex(''Target{}.ID'',3), signature=Operation, user = case(match(mvindex(''Actor{}.ID'',-1),"User"),mvindex(''Actor{}.ID'',0),match(mvindex(''Actor{}.ID'',-1),"ServicePrincipal"),
mvindex(''Actor{}.ID'',3),true(),mvindex(''Actor{}.ID'',0)) | spath input=object_attrs_old
output=B2BOld path={} | spath input=B2BOld | rename B2BManagementPolicy.* as B2BManagementPolicyOld.*
| spath input=object_attrs output=B2BNew path={} | spath input=B2BNew | eval object_attrs
= ''B2BManagementPolicy.InvitationsAllowedAndBlockedDomainsPolicy.AllowedDomains{}''
, object_attrs_old = ''B2BManagementPolicyOld.InvitationsAllowedAndBlockedDomainsPolicy.AllowedDomains{}''
| eval diff_add=mvmap(object_attrs,if(isnull(mvfind(object_attrs_old,object_attrs)),object_attrs,null))
| eval diff_remove=mvmap(object_attrs_old,if(isnull(mvfind(object_attrs,object_attrs_old)),object_attrs_old,null))
| eval result = case(isnotnull(diff_add),"Added ".mvjoin(diff_add,","),isnotnull(diff_remove),"Removed
".mvjoin(diff_remove,",")), action = case(isnotnull(diff_add),"created",isnotnull(diff_remove),"deleted")
| stats values(object_attrs) as object_attrs, values(action) as action, values(result)
as result, values(B2BManagementPolicy*) as B2BManagementPolicy*, count, min(_time)
as firstTime, max(_time) as lastTime by user signature object_name dest vendor_account
vendor_product | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`
| `o365_external_identity_policy_changed_filter`'
provenance:
source: splunk/security_content
source_id: 29af1725-7a72-4d2d-8a18-e697e79a62d3
source_commit: 4d4c7ee
license: Apache-2.0
license_url: https://github.com/splunk/security_content/blob/develop/LICENSE
imported_at: '2026-05-04'
imported_by: splunk_importer
upstream_path: detections/cloud/o365_external_identity_policy_changed.yml
notes:
splunk_status: production
splunk_data_source: []
quarantine_reason: raw SPL — needs translation to AiSOC detection schema