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
TECHNIQUE OVERVIEWCross-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.
| Field | Value |
|---|---|
| MITRE Technique | T1199 — Trusted Relationship T1078.004 — Valid Accounts: Cloud Accounts T1098 — Account Manipulation (CTS provisioning persistence) |
| Kill-chain Phase | Persistence / Privilege Escalation / Defense Evasion |
| Primary Log Source | AuditLogs (Category: PolicyManagement, ProvisioningManagement, ApplicationManagement) |
| Secondary Log Sources | SigninLogs, AADNonInteractiveUserSignInLogs, CloudAppEvents, MicrosoftGraphActivityLogs |
| Prerequisite for Attacker | Security Administrator, Global Administrator, or a role with Policy.ReadWrite.CrossTenantAccess — i.e. this is a post-compromise action |
| Default Severity | SEV1 if inbound trust or inbound sync enabled toward an unknown tenant; SEV2 for partner/default policy edits pending verification |
| Detection Window | Query 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 + GATEAnswer 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
truefor 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.
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.
- 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 / Value | Meaning | Analyst Action |
|---|---|---|
| OperationName: Update a partner cross-tenant access setting | A named external tenant's inbound/outbound policy was modified | Diff Modified Properties; verify tenant ID |
| OperationName: Add a partner to cross-tenant access setting | A new organization-specific configuration was created | Confirm tenant is on approved list |
| OperationName: Update cross-tenant access setting | The DEFAULT policy (applies to all tenants) was changed | Highest blast radius — treat as SEV1 |
| Category: PolicyManagement | Directory policy object modified | Anchor filter for the query |
| Result: success | Change was applied to the tenant | Assume live until reverted |
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.
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.
- 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 / Value | Meaning | Analyst Action |
|---|---|---|
| isMfaAccepted: true | Your tenant now trusts the external tenant's MFA claim | SEV1 — MFA CA bypass live |
| isCompliantDeviceAccepted: true | External tenant's device-compliance claim honoured | SEV1 — device CA bypass |
| isHybridAzureADJoinedDeviceAccepted: true | Hybrid-joined claim from external tenant trusted | SEV1 — device CA bypass |
| automaticUserConsentSettings: inbound allowed | Automatic redemption on — no consent prompt for invited users | Removes last human checkpoint |
| b2bCollaborationInbound: allowed | Inbound B2B collaboration opened for this tenant | Confirm business justification |
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.
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.
- 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 / Value | Meaning | Analyst Action |
|---|---|---|
| allowInboundCrossTenantSync: true | Tenant accepts users pushed in by an external tenant | SEV1 — persistence vector |
| Add synchronization job / secret | New provisioning job or credential created | Identify owning SP + source tenant |
| OperationName: Process escrow ... provisioning | Provisioning engine created/updated a synced user | List all users created by the job |
| createdDateTime in incident window | External member appeared during the intrusion | Flag for containment |
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.
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.
- 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 / Value | Meaning | Analyst Action |
|---|---|---|
| CrossTenantAccessType: b2bCollaboration | External guest signing in via B2B collaboration | Verify source tenant is approved |
| CrossTenantAccessType: b2bDirectConnect | Direct-connect access (Teams shared channels) | Confirm intended connection |
| HomeTenantId ≠ ResourceTenantId | Sign-in originates from a different (external) tenant | Match HomeTenantId to allow-list |
| AuthenticationRequirement: singleFactorAuthentication | MFA satisfied externally / not challenged locally | Corroborate with trusted-MFA flip (I2) |
| ResultType: 0 | Sign-in succeeded | Scope resource access (I5) |
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.
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.
- 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.
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 Signals | False Positive Signals |
|---|---|
| Inbound MFA/device trust enabled toward a tenant NOT on the approved partner list | Change matches a documented change ticket naming this tenant and setting |
| Config change with no change ticket, outside business hours, or by a rarely-used admin | Trust enabled toward a long-standing, business-verified partner during a planned onboarding |
| Inbound cross-tenant sync enabled + external members auto-created | Provisioning 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 ACTIONDo 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.
- 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.
- 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.
- 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- 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.
- 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| Tier | Trigger Condition | Who to Notify | Action / Info to Bring |
|---|---|---|---|
| L1 → L2 | Cannot confirm TP vs FP within 30 min; change involves a privileged actor; any inbound trust boolean flipped | SOC L2 / Identity Team | Alert ID, actor UPN, tenant ID, exact setting changed, ticket status |
| L2 → IR | Confirmed unapproved trust/sync enabled; inbound B2B sign-ins from rogue tenant; external identities auto-provisioned | Incident Response Team / SOC Lead | Timeline, containment actions taken, list of external users + service principals, confidence level |
| IR → CISO | Sensitive/regulated data accessed by external identity; supply-chain partner tenant compromised; persistence confirmed across multiple objects | CISO / Management / Legal | Data-exposure scope, affected systems, regulatory exposure (GDPR/PCI/HIPAA), remediation status |
| External | Trusted partner tenant confirmed breached; third-party data exposed; law-enforcement or MSSP support required | Partner security contact / MSSP / forensics vendor / affected third parties / law enforcement | Signed 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.