Created a new federated domain within the victim Microsoft Entra tenant using Global Administrator level access to establish a persistent backdoor for later use.12
Trust Modification T1484.002
- Platforms
- Identity Provider, Windows
- Version
- 3.0
- Created
- 28 December 2020
- Last modified
- 12 May 2026
- Contributors
- Blake Strom, Microsoft 365 Defender; Praetorian; Obsidian Security
Adversaries may add new domain trusts, modify the properties of existing domain trusts, or otherwise change the configuration of trust relationships between domains and tenants to evade defenses and/or elevate privileges.Trust details, such as whether or not user identities are federated, allow authentication and authorization properties to apply between domains or tenants for the purpose of accessing shared resources.[1] These trust objects may include accounts, credentials, and other authentication material applied to servers, tokens, and domains.
Trust Modification MITRE reference T1484.002
2 groups have been recorded using this technique. Newest first; each entry carries MITRE’s procedure text and a link to the group’s full record. Click a name to filter the rules below.
Adds a federated identity provider to the victim’s SSO tenant and activates automatic account linking.1
All 2 groups for this technique
1 campaign has been recorded using this technique. Listed newest first; dates are year-granularity and attribution is MITRE’s.
During the SolarWinds Compromise, APT29 changed domain federation trust settings using Azure AD administrative permissions to configure the domain to accept authorization tokens signed by their own SAML signing certificate.12
All 1 campaigns for this technique
1 software entry is documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
Can create a backdoor by converting a domain to a federated domain which will be able to authenticate any user across the tenant. AADInternals can also modify DesktopSSO information.12
All 1 software entries for this technique
Offense vs defense T1484.002
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
How it got here
Adversary activity (campaign spans) over cumulative rule output. Each source is plotted independently from zero, so neither line includes the other. Campaign dates are year-granularity.
Trust Modification detection strategy DET0458
MITRE names one behaviour worth catching for this technique and breaks it into 2 analytics, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detection of Trust Relationship Modifications in Domain or Tenant Policies
AN1259 · Windows
Adversary modifies Active Directory domain trust settings via netdom, nltest, or PowerShell to add new domain trust or alter federation. Modifications occur in AD object attributes like trustDirection, trustType, trustAttributes, often paired with SeEnableDelegationPrivilege or certificate injection.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| User Account ModificationDC0010 | WinEventLog:Security | EventCode=4704 |
| Process CreationDC0032 | WinEventLog:Sysmon | EventCode=1 |
| Active Directory Object ModificationDC0066 | WinEventLog:Security | EventCode=5136 |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| ObjectType | Focus on trustedDomain or foreignSecurityPrincipal AD objects in trust containers. |
| AttributeModified | Monitor attributes like trustPartner, trustDirection, trustType, msDS-TrustForestTrustInfo. |
| TimeWindow | Correlate trust creation with unusual logon events or certificate modifications. |
| UserContext | Flag rare accounts or non-standard admin users performing trust changes. |
AN1260 · Identity Provider
Adversary adds federated identity provider (IdP) or modifies tenant domain authentication from Managed to Federated. Detected via API, PowerShell, or Admin Portal through federation events like Set domain authentication, Add federated identity provider, or Update-MsolFederatedDomain.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Application Log ContentDC0038 | m365:unified | Set federation settings on domain|Set domain authentication|Add federated identity provider |
| Command ExecutionDC0064 | azure:signinlogs | OperationName=SetDomainAuthentication OR Update-MsolFederatedDomain |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| OperationName | Identify rare trust-modification operations (SetDomainAuthentication, Update-MsolFederatedDomain). |
| InitiatedBy | Flag federated trust changes performed by unknown users, service principals, or tokens. |
| UserAgent | Separate scripted/API interactions from GUI-based administrative changes. |
| TimeWindow | Correlate trust change to federated login or SAML token injection within short window. |
Use the principal of least privilege and protect administrative access to domain trusts and identity tenants.
In cloud environments, limit permissions to create new identity providers to only those accounts that require them. In AWS environments, consider using Service Control policies to limit the use of API calls such as CreateSAMLProvider or CreateOpenIDConnectProvider.
Tests from Atomic Red Team (MIT licence) · technique definition