Cross-source coverage
T1484.002 / ATT&CK
Domain or Tenant Policy Modification: Trust Modification
17 rules across 5 sources.
From MITRE ATT&CK 19.2
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. These trust objects may include accounts, credentials, and other authentication material applied to servers, tokens, and domains.
Manipulating these trusts may allow an adversary to escalate privileges and/or evade defenses by modifying settings to add objects which they control. For example, in Microsoft Active Directory (AD) environments, this may be used to forge SAML Tokens without the need to compromise the signing certificate to forge new credentials. Instead, an adversary can manipulate domain trusts to add their own signing certificate. An adversary may also convert an AD domain to a federated domain using Active Directory Federation Services (AD FS), which may enable malicious trust modifications such as altering the claim issuance rules to log in any valid set of credentials as a specified user.
An adversary may also add a new federated identity provider to an identity tenant such as Okta or AWS IAM Identity Center, which may enable the adversary to authenticate as any user of the tenant. This may enable the threat actor to gain broad access into a variety of cloud-based services that leverage the identity tenant. For example, in AWS environments, an adversary that creates a new identity provider for an AWS Organization will be able to federate into all of the AWS Organization member accounts without creating identities for each of the member accounts.
- Tactics
- Defense Impairment · Privilege Escalation
- Platforms
- Identity Provider · Windows
- Telemetry
-
WinEventLog:SecurityWinEventLog:Sysmonm365:unifiedazure:signinlogs
How MITRE says to detect it DET0458
Detection of Trust Relationship Modifications in Domain or Tenant Policies
Windows Analytic 1259
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.
WinEventLog:SecurityEventCode=5136WinEventLog:SecurityEventCode=4704WinEventLog:SysmonEventCode=1
Identity Provider Analytic 1260
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`.
m365:unifiedSet federation settings on domain|Set domain authentication|Add federated identity providerazure:signinlogsOperationName=SetDomainAuthentication OR Update-MsolFederatedDomain
elastic/detection-rules
9 rules| Detection | Severity | Format |
|---|---|---|
| AWS IAM OIDC Provider Created by Rare User | High | Elastic TOML |
| AWS IAM SAML Provider Created | High | Elastic TOML |
| Domain Added to Google Workspace Trusted Domains | High | Elastic TOML |
| Entra ID Domain Federation Configuration Change | High | Elastic TOML |
| Entra ID Federated Identity Credential Issuer Modified | High | Elastic TOML |
| Attempt to Deactivate an Okta Network Zone | Medium | Elastic TOML |
| AWS IAM SAML Provider Updated | Medium | Elastic TOML |
| New Okta Identity Provider (IdP) Added by Admin | Medium | Elastic TOML |
| M365 Exchange Federated Domain Created or Modified | Low | Elastic TOML |
splunk/security_content
3 rules| Detection | Severity | Format |
|---|---|---|
| Azure AD New Custom Domain Added | Undefined | SPL |
| Azure AD New Federated Domain Added | Undefined | SPL |
| O365 Cross-Tenant Access Change | Undefined | SPL |
SigmaHQ/sigma
2 rules| Detection | Severity | Format |
|---|---|---|
| New Federated Domain Added | Medium | Sigma |
| Okta Session Impersonation Granted From Untrusted Domain | Medium | Sigma |
panther-labs/panther-analysis
2 rules| Detection | Severity | Format |
|---|---|---|
| Wiz SAML Identity Provider Change | High | Panther Python |
| ZIA Trust Modification | Medium | Panther Python |
Azure/Azure-Sentinel
1 rule| Detection | Severity | Format |
|---|---|---|
| Federated domain added to Entra ID tenant | Undefined | KQL |