Domain Trust Discovery T1482
Tactic: Discovery
Adversaries may attempt to gather information on domain trust relationships that may be used to identify lateral movement opportunities in Windows multi-domain/forest environments. Domain trusts provide a mechanism for a domain to allow access to resources based on the authentication procedures of another domain. Domain trusts allow the users of the trusted domain to access resources in the trusting domain. The information discovered may help the adversary conduct SID-History Injection, Pass the Ticket, and Kerberoasting. Domain trusts can be enumerated using the `DSEnumerateDomainTrusts()` Win32 API call, .NET methods, and LDAP. The Windows utility Nltest is known to be used by adversaries to enumerate domain trusts.
Events covered
17 catalog events are tagged with this technique by at least one rule.
| Provider | Event | Title |
|---|---|---|
| Sysmon | Event ID 1 | Process creation |
| Sysmon | Event ID 3 | Network connection |
| Sysmon | Event ID 11 | FileCreate |
| Sysmon | Event ID 22 | DNSEvent (DNS query) |
| Security-Auditing | Event ID 4662 | An operation was performed on an object. |
| Security-Auditing | Event ID 4688 | A new process has been created. |
| Security-Auditing | Event ID 4799 | A security-enabled local group membership was enumerated. |
| Defender-DeviceEvents | LdapSearch | LDAP search |
| Defender-DeviceInfo | any | Device information |
| Defender-DeviceNetworkEvents | any | Network activity |
| Defender-DeviceNetworkInfo | any | Device network configuration |
| Defender-DeviceProcessEvents | any | Process activity |
| Defender-IdentityQueryEvents | LDAP query | LDAP query |
| LDAP-Client | Event ID 30 | LDAP search request |
| PowerShell | Event ID 4103 | Payload Context: ContextInfo User Data: UserData. |
| PowerShell | Event ID 4104 | Creating Scriptblock text (MessageNumber of MessageTotal). |
| PowerShell | Event ID 800 | Event ID 800 |
Authoring guide
These 66 rules share fields, values, and exclusions.
Fields filtered most (44 distinct)
These fields appear most often in rule filters.
Top indicator values (1525 distinct)
These values appear most often in rule predicates.
Exclusions (79 distinct)
These values appear most often in top-level exclusions.
Rules under this technique
These vendors publish rules tagged with this technique.
Sigma 18 rules
- Active Directory Database Snapshot Via ADExplorer
- Active Directory Forest PowerShell class called from a non administrative host
- ADExplorer Writing Complete AD Snapshot Into .dat File
- BloodHound Collection Files
- DNS Server Discovery Via LDAP Query
- Domain Trust Discovery Via Dsquery
- HackTool - Bloodhound/Sharphound Execution
- HackTool - SharpView Execution
- HackTool - TruffleSnout Execution
- Malicious PowerShell Commandlets - PoshModule
- Malicious PowerShell Commandlets - ProcessCreation
- Malicious PowerShell Commandlets - ScriptBlock
- Nltest.EXE Execution
- Potential Active Directory Reconnaissance/Enumeration Via LDAP
- Potential Recon Activity Via Nltest.EXE
- PUA - AdFind Suspicious Execution
- Renamed AdFind Execution
- Suspicious Active Directory Database Snapshot Via ADExplorer
Elastic 17 rules
- Active Directory Data Collection via LDAP
- Active Directory Discovery using AdExplorer
- AD Certificate Services Enumeration via LDAP
- AdFind Command Activity
- Deprecated - PowerShell Script with Discovery Capabilities
- Domain Accounts Enumeration via LDAP Search
- Domain Trust and Schema Enumeration via LDAP
- Enumerating Domain Trusts via DSQUERY.EXE
- Enumerating Domain Trusts via NLTEST.EXE
- Group and Privileged Accounts Discovery via LDAP
- Potential PowerShell HackTool Script by Function Names
- PowerShell Suspicious Discovery Related Windows API Functions
- Sensitive Attributes Discovery via LDAP
- Suspicious Access to LDAP Attributes
- Suspicious Enumeration via LDAP Search
- Suspicious JetBrains TeamCity Child Process
- Suspicious Kerberos Enumeration via LDAP Search
Splunk 25 rules
- Adfind Commands (PowerShell)
- Adfind Commands (Sysmon)
- Adfind Commands (Windows Event Log)
- Adfind Execution (PowerShell)
- Adfind Execution (Sysmon)
- Adfind Execution (Windows Event Log)
- Detect AzureHound Command-Line Arguments
- Detect AzureHound File Modifications
- Detect SharpHound Command-Line Arguments
- Detect SharpHound File Modifications
- Detect SharpHound Usage
- Domain Trust Discovery Commands - Windows (PowerShell)
- Domain Trust Discovery Commands - Windows (Sysmon)
- Domain Trust Discovery Commands - Windows (Windows Event Log)
- DSQuery Domain Discovery
- Get-DomainTrust with PowerShell
- Get-DomainTrust with PowerShell Script Block
- Get-ForestTrust with PowerShell
- Get-ForestTrust with PowerShell Script Block
- Network Traffic to Active Directory Web Services Protocol
- NLTest Domain Trust Discovery
- SharpHound Enumeration (Windows Event Log)
- SharpHound Keywords (PowerShell)
- Windows ConvertTo-AADIntBackdoor Execution Via PowerShell Script
- Windows SOAPHound Binary Execution