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

18 catalog events are tagged with this technique by at least one rule.

Authoring guide

These 66 rules share fields, values, and exclusions.

Fields filtered most (37 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
CommandLine23contains 17, regex_match 4, in 2 oudmp , (?i)(objectcategory|trustdmp|member\s(.*)?-list), -sc u:, --CollectionMethods Session , --Loop --Loopduration
EventID14eq 144104, 4688, 4103, 4662, 4799
OriginalFileName14eq 14AdExp, nltestrk.exe, AdFind.exe, dsquery.exe, SharpHound.exe
Image12ends_with 11, contains 2, eq 1, is_null 1, starts_with 1\ADExp.exe, \ADExplorer.exe, \ADExplorer64.exe, \nltest.exe,
process_basename11eq 9, wildcard 2dsquery.exe, nltest.exe, ADExplorer*.exe, AdFind*.exe, AdFind.exe
ScriptBlockText8contains 5, in 3, eq 1*ConvertTo-AADIntBackdoor*, *get-domaintrust*, *get-foresttrust*, .GetGPOReport(), ::GetIPGlobalProperties()
process.Ext.api.name8eq 8ldap_search
process.Ext.api.parameters.search_filter8eq 4, wildcard 4(&(&(objectCategory=person)(objectClass=user))(|(descript..., (&(objectCategory=Computer)(ms-MCS-AdmPwd=?)), (&(objectCategory=group)(name=Domain Admins)), (&(objectCategory=person)(lastLogon>=*, (&(objectCategory=person)(objectClass=user)(directReports...
event.type5eq 5start
user.id4ne 4S-1-5-18
Description3eq 2, contains 1Active Directory Editor, SharpHound
Product3eq 2, contains 1Sysinternals ADExplorer, SharpHound
event.category3eq 3process
event_count3gt 30
process.args3contains 1, eq 1, wildcard 1(objectcategory=attributeschema), (objectcategory=computer), (objectcategory=group), *objectClass=trustedDomain*, /BDC_QUERY:*

Top indicator values (1523 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
process.Ext.api.nameeq
ldap_search
814
EventIDeq
4104
7269
EventIDeq
4688
3284
event.typeeq
start
51036
user.idne
S-1-5-18
437
Imageends_with
\ADExp.exe
33
Imageends_with
\ADExplorer.exe
34
Imageends_with
\ADExplorer64.exe
34
Imageends_with
\ADExplorer64a.exe
34
OriginalFileNameeq
nltestrk.exe
34
event.categoryeq
process
3105
event_countgt
0
33
process_basenameeq
dsquery.exe
312
process_basenameeq
nltest.exe
312
CommandLinecontains
oudmp
22
CommandLinecontains
*get-domaintrust*
22
CommandLinecontains
*get-foresttrust*
22
CommandLinecontains
-sc u:
22
CommandLinecontains
-subnets -f
22
CommandLinecontains
Find-GPOLocation
22
CommandLinecontains
adinfo
22
CommandLinecontains
computer_pwdnotreqd
22
CommandLinecontains
computers_active
22
CommandLinecontains
computers_pwdnotreqd
22
CommandLinecontains
dcmodes
22
CommandLinecontains
domainlist
22
CommandLinecontains
domainncs
22
CommandLinecontains
dompol
22
CommandLinecontains
fspdmp
22
CommandLinecontains
gpodmp
22

Exclusions (80 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
Imagewildcard
?:\Program Files\Azure Advanced Threat Protection Sensor\*\Microsoft.Tri.Sensor.exe
7
Imagewildcard
?:\Windows\ADFS\Microsoft.IdentityServer.ServiceHost.exe
7
Imagewildcard
?:\Windows\ADWS\Microsoft.ActiveDirectory.WebServices.exe
5
Imagewildcard
?:\Windows\System32\lsass.exe
4
process.code_signature.trustedeq
true
3
user.idin
S-1-5-18
3
user.idin
S-1-5-19
3
user.idin
S-1-5-20
3
user.idin
S-1-5-18
2
user.idin
S-1-5-19
2
Computereq
%admin_workstation%
1
Computereq
%domain_controllers%
1
EventDatacontains
gc_service.exe
1
EventDatacontains
gc_worker.exe
1
Imagecontains
:\Program Files (x86)\
1

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 18 rules

Elastic 17 rules

Splunk 25 rules

Kusto 6 rules