SOP-113: Cross-Tenant Access / B2B Collaboration Trust Abuse Response

·

Entra ID cross-tenant access settings (also called XTAP — Cross-Tenant Access Policy) govern how identities from other Microsoft Entra tenants can access your resources through B2B collaboration, B2B direct connect, and cross-tenant synchronization. When an attacker who has already gained privileged control of your tenant — or of a trusted partner tenant — quietly weakens these settings, they establish a durable trust relationship that survives password resets, session revocation, and even deletion of the originally compromised account. This is a persistence and privilege-abuse technique, not a smash-and-grab, and it is frequently missed because the sign-ins that follow look like legitimate partner collaboration.

Three abuse paths dominate: (1) flipping inbound trust settings so your tenant blindly trusts MFA and device-compliance claims asserted by an attacker-controlled tenant, bypassing your own Conditional Access; (2) standing up a rogue cross-tenant synchronization (CTS) job that automatically provisions attacker identities into your directory; and (3) exploiting an existing or newly-added partner configuration to authorize inbound access from a tenant you never intended to trust. This SOP treats any unticketed change to cross-tenant access configuration as a SEV1/SEV2 identity persistence event.

Key data sources: AuditLogs (cross-tenant access setting and partner configuration changes, provisioning/synchronization configuration), SigninLogs and AADNonInteractiveUserSignInLogs (CrossTenantAccessType, HomeTenantId vs ResourceTenantId, inbound B2B from unexpected tenants), and CloudAppEvents (what the cross-tenant identity actually touched).

☰ Table of Contents

01 Background 02 Identification 03 Containment 04 Eradication 05 Escalation
🛠

01 — BACKGROUND

TECHNIQUE OVERVIEW
01
Technique Overview — Trusted Relationship Abuse
MITRE T1199

Cross-tenant access settings are the perimeter of the multi-tenant Entra ID trust model. The default setting applies to every external tenant that lacks an explicit configuration; organization-specific (partner) settings override the default for a named tenant ID. Two dials matter most to an attacker. Inbound trust settings tell your tenant to accept MFA, compliant-device, and hybrid-joined claims stamped by the external tenant — turning them on means an attacker who controls that external tenant can satisfy your MFA and device Conditional Access without ever touching a device you manage. Inbound synchronization (part of cross-tenant sync) allows the external tenant to create and update B2B members inside your directory automatically. Both are legitimate features for genuine partner relationships and both are devastating when enabled toward a tenant the attacker owns.

FieldValue
MITRE TechniqueT1199 — Trusted Relationship
T1078.004 — Valid Accounts: Cloud Accounts
T1098 — Account Manipulation (CTS provisioning persistence)
Kill-chain PhasePersistence / Privilege Escalation / Defense Evasion
Primary Log SourceAuditLogs (Category: PolicyManagement, ProvisioningManagement, ApplicationManagement)
Secondary Log SourcesSigninLogs, AADNonInteractiveUserSignInLogs, CloudAppEvents, MicrosoftGraphActivityLogs
Prerequisite for AttackerSecurity Administrator, Global Administrator, or a role with Policy.ReadWrite.CrossTenantAccess — i.e. this is a post-compromise action
Default SeveritySEV1 if inbound trust or inbound sync enabled toward an unknown tenant; SEV2 for partner/default policy edits pending verification
Detection WindowQuery last 24 hours for the config change; extend sign-in hunting to 30 days to catch slow-burn abuse

Common attack paths a SOC actually sees:

  • ATrust-claim bypass: attacker compromises a privileged account, enables inbound MFA/compliant-device trust for their own rogue tenant, then signs in as a B2B guest whose MFA claim is honoured by your tenant — sailing straight through Conditional Access that would otherwise block them.
  • BCross-tenant sync persistence: attacker configures a CTS inbound sync job (or abuses an existing one) so their attacker-tenant users are auto-provisioned as members/guests in your directory. Delete one and the sync re-creates it — persistence that regenerates itself.
  • CRogue partner authorization: attacker adds a new organization-specific configuration for a tenant ID they control, or loosens the default inbound policy from "blocked" to "allowed", opening B2B collaboration/direct-connect that was never business-approved.
  • DSupply-chain trust pivot: a genuinely trusted partner tenant is breached; the attacker rides the existing, legitimate cross-tenant trust into your environment. The inbound sign-ins look exactly like normal partner activity.
  • EAutomatic redemption abuse: attacker enables inbound "automatic redemption" so invited external users are accepted with no consent prompt, removing the last human checkpoint on external access.

Cross-tenant trust abuse is identity persistence, not a single sign-in. Resetting the compromised admin's password does NOT remove the trust — the policy change and any CTS job persist independently. You must remediate the configuration itself.

🔍

02 — IDENTIFICATION

TRIAGE + 5 INDICATORS + GATE
▶ Investigation Workflow
T0
Alert Triage Checklist
TRIAGE

Answer these five questions first. Any YES in questions 1–3 makes this a same-shift priority — do not queue it.

  • 1Was an inbound trust setting (MFA / compliant-device / hybrid-joined) set to true for any external tenant in the last 24h? → treat as SEV1 until proven ticketed.
  • 2Was a cross-tenant synchronization configuration or provisioning job created/enabled inbound? → self-regenerating persistence, SEV1.
  • 3Was a new partner (organization-specific) configuration added, or the default inbound policy loosened from blocked to allowed? → SEV2, verify tenant ID against the approved partner allow-list.
  • 4Does the actor who made the change normally administer identity policy, and is there a matching change ticket naming this tenant and this setting? → if not, escalate.
  • 5Are there inbound B2B sign-ins from the affected external tenant after the change, especially to privileged apps or SharePoint/Teams? → scope impact immediately.

Cross-tenant access config lives at tenant scope, not per-user. One malicious change can expose the entire directory, so severity is driven by the setting changed, not by how many users are "involved" yet.

I1
Cross-Tenant Access / Partner Configuration Change
MANUAL + KQL
WHY CHECK

Every change to cross-tenant access settings — default policy, an organization-specific partner entry, or trust settings — is written to AuditLogs. Establishing WHO changed WHAT and WHEN is the anchor for the whole investigation and tells you which downstream trust dial was moved.

📍 Portal Navigation — Entra Admin Center
entra.microsoft.com› Identity› External Identities› Cross-tenant access settings
  • 1Open Cross-tenant access settings and review the Organizational settings tab (partner list) and the Default settings tab. Note every tenant with a custom inbound configuration.
  • 2Cross-reference against the AuditLogs: go to Identity → Monitoring & health → Audit logs and filter Service = Core Directory, Category = PolicyManagement.
  • 3For each hit, expand Modified Properties to see the before/after JSON of the trust settings, then record the Initiated by actor and Target tenant ID.
  • 4Run the KQL below in Sentinel → Logs or Defender → Advanced Hunting for a time-ordered list of all cross-tenant policy operations.
Field / ValueMeaningAnalyst Action
OperationName: Update a partner cross-tenant access settingA named external tenant's inbound/outbound policy was modifiedDiff Modified Properties; verify tenant ID
OperationName: Add a partner to cross-tenant access settingA new organization-specific configuration was createdConfirm tenant is on approved list
OperationName: Update cross-tenant access settingThe DEFAULT policy (applies to all tenants) was changedHighest blast radius — treat as SEV1
Category: PolicyManagementDirectory policy object modifiedAnchor filter for the query
Result: successChange was applied to the tenantAssume live until reverted
DETECTS: Any create/update of cross-tenant access default or partner configuration, with the actor, target tenant, and changed properties
KQL — Microsoft Sentinel / Defender XDR Advanced Hunting
AuditLogs | where TimeGenerated > ago(24h) | where OperationName has "cross-tenant access" or OperationName has_any ("partner cross-tenant","tenant access setting") | extend Actor = tostring(InitiatedBy.user.userPrincipalName) | extend ActorIP = tostring(InitiatedBy.user.ipAddress) | mv-expand TargetResources | extend TargetTenant = tostring(TargetResources.displayName) | extend Changed = tostring(TargetResources.modifiedProperties) | project TimeGenerated, OperationName, Result, Actor, ActorIP, TargetTenant, Changed | order by TimeGenerated desc
DETECTS: Splunk equivalent — cross-tenant access policy operations in the Entra/AAD audit feed with actor and target
SPL — Splunk
index=azure sourcetype="azure:aad:audit" (operationName="*cross-tenant access*" OR operationName="*partner cross-tenant*") | eval Actor=coalesce('initiatedBy.user.userPrincipalName','initiatedBy.app.displayName') | eval ActorIP='initiatedBy.user.ipAddress' | table _time operationName result Actor ActorIP targetResources{}.displayName targetResources{}.modifiedProperties{}.displayName | sort -_time

A change to the DEFAULT inbound policy is more dangerous than any single partner edit — it silently applies to every external tenant on Earth that does not already have an explicit configuration. Prioritise default-policy changes above partner-specific ones.

I2
Inbound Trust Settings Flipped (MFA / Device Claim Trust)
MANUAL + KQL
WHY CHECK

Enabling inbound trust for MFA, compliant-device, or hybrid-joined claims tells your tenant to accept those assertions as stamped by the external tenant. An attacker who owns that tenant can then satisfy your MFA and device Conditional Access with claims they mint themselves — a complete bypass of your identity controls without touching a managed device.

📍 Portal Navigation — Inbound Trust Settings
entra.microsoft.com› External Identities› Cross-tenant access settings› [Tenant]› Inbound access → Trust settings
  • 1Open the affected tenant's Inbound access blade and select Trust settings. Note the state of the three checkboxes: Trust multifactor authentication, Trust compliant devices, Trust hybrid Azure AD joined devices.
  • 2Any box that is checked toward a non-approved tenant is a live bypass of your Conditional Access. Compare against your documented partner baseline.
  • 3Check B2B collaboration and B2B direct connect inbound status — "Allow access" toward an unknown tenant is itself a finding.
  • 4Run the KQL below to isolate exactly which trust boolean changed and to what value, straight from Modified Properties.
Field / ValueMeaningAnalyst Action
isMfaAccepted: trueYour tenant now trusts the external tenant's MFA claimSEV1 — MFA CA bypass live
isCompliantDeviceAccepted: trueExternal tenant's device-compliance claim honouredSEV1 — device CA bypass
isHybridAzureADJoinedDeviceAccepted: trueHybrid-joined claim from external tenant trustedSEV1 — device CA bypass
automaticUserConsentSettings: inbound allowedAutomatic redemption on — no consent prompt for invited usersRemoves last human checkpoint
b2bCollaborationInbound: allowedInbound B2B collaboration opened for this tenantConfirm business justification
DETECTS: Trust-setting booleans (MFA/compliant/hybrid) or automatic-redemption being enabled in a cross-tenant policy change
KQL — Microsoft Sentinel / Defender XDR Advanced Hunting
AuditLogs | where TimeGenerated > ago(24h) | where OperationName has "cross-tenant access" | extend Actor = tostring(InitiatedBy.user.userPrincipalName) | mv-expand mp = parse_json(tostring(TargetResources[0].modifiedProperties)) | extend PropName = tostring(mp.displayName), NewVal = tostring(mp.newValue) | where PropName has_any ("MfaAccepted","CompliantDevice","HybridAzureADJoined","automaticUserConsent","inboundTrust","b2bCollaborationInbound") or NewVal has_any ("isMfaAccepted","isCompliantDeviceAccepted","isHybridAzureADJoinedDeviceAccepted","true") | project TimeGenerated, Actor, OperationName, PropName, NewVal | order by TimeGenerated desc
DETECTS: Splunk equivalent — inbound trust booleans enabled in the audit feed's modified-properties payload
SPL — Splunk
index=azure sourcetype="azure:aad:audit" operationName="*cross-tenant access*" | spath path=targetResources{}.modifiedProperties{} output=mp | mvexpand mp | spath input=mp | rename displayName as PropName newValue as NewVal | search PropName IN ("*MfaAccepted*","*CompliantDevice*","*HybridAzureADJoined*","*automaticUserConsent*","*inboundTrust*") OR NewVal="*true*" | table _time operationName PropName NewVal | sort -_time

Trust settings only take effect for B2B users, so an attacker will usually pair this with a guest invitation or a CTS-provisioned identity from the same rogue tenant. If you see a trust flip, immediately look for a matching inbound user (I3/I4) — the two together are the exploit.

I3
Rogue Cross-Tenant Synchronization (CTS) Job
MANUAL + KQL
WHY CHECK

Cross-tenant synchronization provisions B2B members from a source tenant into your directory automatically. An attacker who configures an inbound CTS job (or abuses an existing one) gets self-healing persistence: delete the provisioned user and the next sync cycle re-creates it. This technique is the cloud equivalent of a re-installing backdoor.

📍 Portal Navigation — Cross-tenant Sync + Provisioning
entra.microsoft.com› Cross-tenant access settings› [Tenant] → Inbound → Cross-tenant sync
  • 1In the affected tenant's Inbound access blade, open Cross-tenant sync and check whether Allow users sync into this tenant is enabled.
  • 2Go to Identity → Applications → Enterprise applications and look for a provisioning app tied to the source tenant. Open Provisioning → Provisioning logs to see which users were created and when.
  • 3In AuditLogs, filter Category = ProvisioningManagement / ApplicationManagement for synchronization configuration events. Note any newly-added service principal or provisioning job.
  • 4Enumerate members created by the sync — filter Users by Directory synced = No but External, created in the incident window, sourced from the suspect tenant.
Field / ValueMeaningAnalyst Action
allowInboundCrossTenantSync: trueTenant accepts users pushed in by an external tenantSEV1 — persistence vector
Add synchronization job / secretNew provisioning job or credential createdIdentify owning SP + source tenant
OperationName: Process escrow ... provisioningProvisioning engine created/updated a synced userList all users created by the job
createdDateTime in incident windowExternal member appeared during the intrusionFlag for containment
DETECTS: Inbound cross-tenant sync being enabled and provisioning/synchronization jobs or secrets being created
KQL — Microsoft Sentinel / Defender XDR Advanced Hunting
AuditLogs | where TimeGenerated > ago(24h) | where Category in ("ProvisioningManagement","ApplicationManagement") or OperationName has "cross-tenant access" | where OperationName has_any ("synchronization","provisioning","cross-tenant sync","Add app role","Add service principal","secret") or tostring(TargetResources) has_any ("allowInboundCrossTenantSync","crossTenantSync") | extend Actor = tostring(InitiatedBy.user.userPrincipalName) | project TimeGenerated, OperationName, Category, Result, Actor, TargetResources | order by TimeGenerated desc
DETECTS: Splunk equivalent — provisioning/synchronization configuration and inbound-sync enablement in the audit feed
SPL — Splunk
index=azure sourcetype="azure:aad:audit" (category IN ("ProvisioningManagement","ApplicationManagement") OR operationName="*cross-tenant*") (operationName="*synchronization*" OR operationName="*provisioning*" OR operationName="*service principal*" OR operationName="*secret*" OR _raw="*allowInboundCrossTenantSync*") | eval Actor='initiatedBy.user.userPrincipalName' | table _time operationName category result Actor targetResources{}.displayName | sort -_time

A CTS-provisioned account will keep coming back after you delete it. You must disable/delete the synchronization job and revoke the owning service principal BEFORE removing the synced users, or eradication will fail on the next sync cycle.

I4
Anomalous Inbound B2B Sign-In From Unexpected Tenant
MANUAL + KQL
WHY CHECK

The payoff of trust abuse is a sign-in. Inbound B2B and direct-connect sign-ins carry CrossTenantAccessType and a HomeTenantId that differs from your ResourceTenantId. A sign-in whose home tenant is not on your approved partner list — especially one that satisfied MFA via a trusted external claim — is the concrete exploitation of the weakened policy.

📍 Portal Navigation — Sign-in Logs
entra.microsoft.com› Identity› Monitoring & health› Sign-in logs
  • 1Open Sign-in logs and switch to the User sign-ins (non-interactive) and interactive tabs. Add columns for Cross-tenant access type and Home tenant / Resource tenant.
  • 2Filter Cross-tenant access type = B2B collaboration / B2B direct connect and look for a Home tenant ID that is not on your approved list.
  • 3For each candidate, open Authentication Details and Conditional Access tabs — check whether MFA was satisfied by a trusted external claim rather than an interactive challenge.
  • 4Run the KQL below across both SigninLogs and AADNonInteractiveUserSignInLogs; correlate the timestamps against the I1 config-change time.
Field / ValueMeaningAnalyst Action
CrossTenantAccessType: b2bCollaborationExternal guest signing in via B2B collaborationVerify source tenant is approved
CrossTenantAccessType: b2bDirectConnectDirect-connect access (Teams shared channels)Confirm intended connection
HomeTenantId ≠ ResourceTenantIdSign-in originates from a different (external) tenantMatch HomeTenantId to allow-list
AuthenticationRequirement: singleFactorAuthenticationMFA satisfied externally / not challenged locallyCorroborate with trusted-MFA flip (I2)
ResultType: 0Sign-in succeededScope resource access (I5)
DETECTS: Successful inbound B2B/direct-connect sign-ins from a home tenant that differs from the resource tenant, ranked by source tenant
KQL — Microsoft Sentinel / Defender XDR Advanced Hunting
union SigninLogs, AADNonInteractiveUserSignInLogs | where TimeGenerated > ago(30d) | where isnotempty(CrossTenantAccessType) and CrossTenantAccessType != "none" | extend HomeTenant = tostring(HomeTenantId), ResourceTenant = tostring(ResourceTenantId) | where HomeTenant != ResourceTenant | where ResultType == 0 | summarize SignIns=count(), Apps=make_set(AppDisplayName,10), IPs=make_set(IPAddress,10), FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated) by UserPrincipalName, HomeTenant, CrossTenantAccessType | order by SignIns desc
DETECTS: Splunk equivalent — inbound cross-tenant sign-ins with mismatched home/resource tenant
SPL — Splunk
index=azure (sourcetype="azure:aad:signin" OR sourcetype="azure:aad:signin:noninteractive") crossTenantAccessType!="none" resultType=0 | where 'homeTenantId'!='resourceTenantId' | stats count as SignIns values(appDisplayName) as Apps values(ipAddress) as IPs min(_time) as FirstSeen max(_time) as LastSeen by userPrincipalName homeTenantId crossTenantAccessType | sort -SignIns

Build and maintain a watchlist of approved partner tenant IDs. A single join/lookup against it turns this query from "review every external sign-in" into "show only sign-ins from tenants we never approved" — the difference between noise and signal.

I5
Post-Access Resource Activity by Cross-Tenant Identity
MANUAL + KQL
WHY CHECK

Once the external identity is in, what did it touch? Scoping impact means mapping the cross-tenant account to concrete actions — SharePoint/OneDrive downloads, Teams access, admin operations, app consents, or role assignments. This determines the incident's data-exposure and whether it escalated privileges beyond the initial B2B foothold.

📍 Portal Navigation — Unified Audit + Cloud Apps
security.microsoft.com› Cloud apps› Activity log› filter by external user
  • 1In Advanced Hunting, pivot on the external UPN from I4 across CloudAppEvents to enumerate file, SharePoint, Teams, and admin activity.
  • 2Check AuditLogs for any directory role assignment, app consent (Consent to application), or credential addition performed by the cross-tenant identity after sign-in.
  • 3Review MicrosoftGraphActivityLogs for enumeration bursts (directory reads, user/group listing) tied to the same identity or token.
  • 4Quantify data touched — number of files downloaded, sites accessed, mailboxes opened — for the incident report and any breach-notification decision.
DETECTS: Actions taken by the external cross-tenant identity across cloud apps and directory, after the B2B sign-in
KQL — Microsoft Sentinel / Defender XDR Advanced Hunting
CloudAppEvents | where Timestamp > ago(30d) | where AccountId has "#EXT#" or AccountDisplayName has "#EXT#" or RawEventData has "#EXT#" | where ActionType has_any ("FileDownloaded","FileAccessed","FileSyncDownloadedFull", "MailItemsAccessed","Add member to role","Consent to application","Add service principal credentials") | project Timestamp, AccountDisplayName, Application, ActionType, ObjectName, IPAddress | order by Timestamp desc
DETECTS: Splunk equivalent — external (#EXT#) identity file, mail, and privilege actions across the unified audit feed
SPL — Splunk
index=o365 sourcetype="o365:management:activity" (UserId="*#EXT#*" OR UserId="*_ext_*") (Operation IN ("FileDownloaded","FileAccessed","MailItemsAccessed","Add member to role.", "Consent to application.","Add service principal credentials.")) | table _time UserId Workload Operation ObjectId ClientIP | sort -_time
I6
IOC Extraction & FP / TP Decision Gate
DECISION

Extract and record the following before making the call, so containment and escalation have the artifacts they need:

  • 1External tenant ID (the HomeTenantId / partner GUID) and its verified organization name, if resolvable.
  • 2Actor who made the config change (UPN + object ID) and source IP / ASN.
  • 3Exact setting changed (trust boolean, inbound sync flag, partner add, default-policy edit) with before/after values.
  • 4Provisioned/invited external users and the owning service principal / provisioning job ID.
  • 5Inbound sign-ins (UPN, IP, app, timestamps) and any resource activity from I5.
True Positive SignalsFalse Positive Signals
Inbound MFA/device trust enabled toward a tenant NOT on the approved partner listChange matches a documented change ticket naming this tenant and setting
Config change with no change ticket, outside business hours, or by a rarely-used adminTrust enabled toward a long-standing, business-verified partner during a planned onboarding
Inbound cross-tenant sync enabled + external members auto-createdProvisioning job maintained by IT with matching HR/partner onboarding record
Inbound B2B sign-in from unknown tenant with single-factor (externally-trusted MFA)Sign-ins from a known partner tenant already in the collaboration baseline
Actor account shows other compromise indicators (risky sign-in, new MFA method, impossible travel)Actor is a known identity admin whose activity correlates with an approved project

"An admin made the change" is not exoneration. Attackers use stolen privileged credentials precisely so their changes look administrative. Require a change ticket that names this tenant ID, this setting, and this time window — or treat as a true positive.

🚫

03 — CONTAINMENT

IMMEDIATE ACTION
C1
Verdict & Escalation Decision
DECISION GATE
▶ Based on Identification Findings
CONFIRMED Inbound trust/sync enabled or partner added toward an unapproved tenant with no change ticket, or inbound B2B sign-ins observed from that tenant — SEV1: execute C2 immediately, escalate to L2/IR
UNCERTAIN Partner/default policy edited but no trust boolean flip and no inbound sign-ins yet; ticket status pending — complete I2–I5, hold change, verify ticket within 15 min, then decide
FALSE POS. Change matches a documented ticket naming this exact tenant and setting, made by an authorized identity admin during a planned onboarding — document, close ticket, no action

Do not delete the malicious configuration before capturing evidence (I1–I6). Screenshot the Modified Properties and export the AuditLogs rows first — the before/after values are the primary artifact for the investigation and any legal/regulatory follow-up.

C2
Revert Trust Settings & Block the Rogue Tenant
POLICY REVERT
📍 Portal Navigation — Cross-tenant access settings
entra.microsoft.com› External Identities› Cross-tenant access settings› [Rogue Tenant]
  • 1Open the affected tenant's Inbound access → Trust settings and uncheck Trust MFA, Trust compliant devices, and Trust hybrid-joined devices. Save.
  • 2Set B2B collaboration and B2B direct connect inbound access to Block access for the rogue tenant; if it was a new organization-specific entry, delete the configuration entirely.
  • 3If the DEFAULT policy was loosened, restore it to your baseline (typically inbound B2B blocked by default with explicit partner allow-list).
  • 4Turn off automatic redemption if it was enabled, so future external invitations require an explicit consent step.
  • 5Confirm the revert lands in AuditLogs and re-run the I1/I2 queries expecting the trust booleans to read false.

If the change touched the DEFAULT inbound policy, reverting the named partner is not enough — the default applies to every un-configured tenant. Fix the default first, then the partner entry.

C3
Disable Rogue Sync Job & Contain the Actor Account
IDENTITY CONTAINMENT
📍 Portal Navigation — Enterprise Apps + Users
entra.microsoft.com› Applications› Enterprise applications› [Provisioning App] → Provisioning
  • 1If a rogue CTS job exists, set its provisioning status to Off and delete the synchronization job / owning service principal. This stops the self-healing before you remove synced users.
  • 2Contain the actor account: Users → [actor] → Revoke sessions, block sign-in, and force a password reset. Revoke any refresh tokens.
  • 3Review the actor's recently added credentials, MFA methods, and OAuth grants (cross-reference SOP-20 / SOP-21) — assume the account was compromised to make this change.
  • 4Block the actor's source IP/ASN via a Conditional Access named location if it is external and non-corporate.
  • 5Disable or delete all external users provisioned/invited from the rogue tenant during the incident window (only after C3-step-1 has stopped the sync).

Order matters: disable the sync job and revoke its service principal FIRST, then remove the synced users. Reverse the order and the next provisioning cycle simply re-creates the accounts you just deleted.

C4
Kill Active Sessions From the Rogue Tenant
SESSION REVOCATION
  • 1For every external UPN identified in I4, run Revoke sessions to invalidate refresh tokens and force re-authentication (which will now fail against the blocked tenant).
  • 2Where supported, use a Conditional Access policy targeting Guest/external users from the rogue tenant to Block access as a belt-and-braces control while cleanup completes.
  • 3Add the rogue tenant ID to your blocked cross-tenant list and to detection watchlists so any future inbound attempt alerts immediately.
  • 4If sensitive resources were accessed (I5), begin the data-exposure assessment and loop in data-owner and legal per Section 05.
🗑

04 — ERADICATION

CLEANUP
E1
Remove Persistence & Restore Trust Posture
ERADICATION
  • 1Remove the trust relationship completely: confirm the rogue partner configuration is deleted or set to block, and the default inbound policy matches your hardened baseline. Verify no other partner entry was modified in the same session.
  • 2Destroy the sync persistence: confirm the CTS synchronization job is deleted, the owning service principal is removed, and no leftover provisioning secrets/certificates remain. Re-check Enterprise applications for any app created by the actor.
  • 3Purge attacker identities: delete all external users provisioned/invited from the rogue tenant; remove any directory role or group membership they were granted; revoke any OAuth app consent they created.
  • 4Remediate the entry point: the actor account was privileged and abused — reset credentials, re-register MFA, review its role assignments, and remove standing privilege in favour of PIM eligible roles (cross-reference SOP-19 / SOP-43).
  • 5Re-run identification queries expecting 0 hits: re-execute I1 (config change), I2 (trust booleans false), I3 (no inbound sync), and I4 (no inbound sign-ins from the rogue tenant). Any residual hit means eradication is incomplete.
  • 6Reconstruct the timeline: first config change → trust flip / sync creation → first inbound sign-in → resource access → containment. Record what data was reachable and for how long.
Eradication Complete When
  • Rogue partner/default cross-tenant configuration reverted to hardened baseline and confirmed in AuditLogs
  • Inbound trust booleans (MFA / compliant / hybrid) read false for all non-approved tenants
  • CTS synchronization job, owning service principal, and provisioning secrets deleted
  • All external users from the rogue tenant deleted; their roles, groups, and OAuth grants removed
  • Actor account credentials reset, sessions revoked, standing privilege removed
  • I1–I4 hunt queries re-run and return zero hits for the rogue tenant
  • Rogue tenant ID added to blocked cross-tenant list and detection watchlist
  • Timeline reconstructed and data-exposure assessment documented
📢

05 — ESCALATION

ESCALATION PATHS
ES1
Escalation Matrix & Notification
ESCALATION
TierTrigger ConditionWho to NotifyAction / Info to Bring
L1 → L2Cannot confirm TP vs FP within 30 min; change involves a privileged actor; any inbound trust boolean flippedSOC L2 / Identity TeamAlert ID, actor UPN, tenant ID, exact setting changed, ticket status
L2 → IRConfirmed unapproved trust/sync enabled; inbound B2B sign-ins from rogue tenant; external identities auto-provisionedIncident Response Team / SOC LeadTimeline, containment actions taken, list of external users + service principals, confidence level
IR → CISOSensitive/regulated data accessed by external identity; supply-chain partner tenant compromised; persistence confirmed across multiple objectsCISO / Management / LegalData-exposure scope, affected systems, regulatory exposure (GDPR/PCI/HIPAA), remediation status
ExternalTrusted partner tenant confirmed breached; third-party data exposed; law-enforcement or MSSP support requiredPartner security contact / MSSP / forensics vendor / affected third parties / law enforcementSigned IOCs, rogue tenant ID, timeline, list of affected external parties

Always bring to escalation: incident number, the rogue external tenant ID, the actor account, the reconstructed timeline, containment actions already executed, and current confidence level (TP confirmed / suspected / unverified).

If the abuse rode in through a genuinely trusted partner tenant (path D), this is now a shared incident. Notify the partner's security team promptly — their tenant is the source of compromise and your trust of them is the vector. Do not silently block them without coordination unless active data theft is underway.


Stay Threat-Ready

Follow CyberHawk Threat Intel for daily SOC analyst playbooks, detection engineering guides, and threat intelligence.

📺 YouTube 🎤 TikTok 🐦 X / Twitter 📡 Telegram
All SOPs Blog Web App (Free)
They can't exploit you if you are the Exploit.