2019-11-11 23:02:13 +03:00
title : Domain Trust Discovery
2019-12-19 23:56:36 +01:00
id : 3bad990e-4848-4a78-9530-b427d854aac0
2021-07-09 16:41:03 +02:00
related :
- id : 77815820 -246c-47b8-9741-e0def3f57308
type : obsoletes
2019-11-11 23:02:13 +03:00
description : Identifies execution of nltest.exe and dsquery.exe for domain trust discovery. This technique is used by attackers to enumerate Active Directory trusts.
2019-10-28 11:59:49 +01:00
status : experimental
2021-02-24 14:43:13 +00:00
author : E.M. Anhaus (originally from Atomic Blue Detections, Tony Lambert), oscd.community, omkar72
2019-10-28 11:59:49 +01:00
date : 2019 /10/24
2021-07-09 16:41:03 +02:00
modified : 2021 /07/09
2019-11-11 23:02:13 +03:00
references :
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1482/T1482.md
- https://eqllib.readthedocs.io/en/latest/analytics/03e231a6-74bc-467a-acb1-e5676b0fb55e.html
2020-10-30 13:15:11 +05:30
- https://thedfirreport.com/2020/10/18/ryuk-in-5-hours/
- https://redcanary.com/blog/how-one-hospital-thwarted-a-ryuk-ransomware-outbreak/
2021-09-30 19:26:14 +02:00
- https://www.harmj0y.net/blog/redteaming/a-guide-to-attacking-domain-trusts/
2019-10-28 11:59:49 +01:00
tags :
- attack.discovery
- attack.t1482
2020-01-19 22:34:16 +01:00
logsource :
category : process_creation
product : windows
2019-10-28 11:59:49 +01:00
detection :
2021-07-09 16:41:03 +02:00
selection_nltest_v1 :
Image|endswith : '\nltest.exe'
2020-10-30 13:15:11 +05:30
CommandLine|contains :
- 'domain_trusts'
- 'all_trusts'
2021-09-30 18:12:19 +02:00
- '/trusted_domains'
2020-10-30 13:15:11 +05:30
- '/dclist'
2021-07-09 16:41:03 +02:00
selection_dsquery_v1 :
Image|endswith : '\dsquery.exe'
2019-11-11 23:02:13 +03:00
CommandLine|contains : 'trustedDomain'
2021-07-09 16:41:03 +02:00
selection_dsquery_v2 :
Image|endswith : '\dsquery.exe'
CommandLine|contains|all :
- '-filter'
- 'trustedDomain'
2022-01-11 10:59:57 +01:00
condition : 1 of selection*
2019-10-28 11:59:49 +01:00
falsepositives :
2019-11-11 23:02:13 +03:00
- Legitimate use of the utilities by legitimate user for legitimate reason
2020-01-19 22:34:16 +01:00
level : medium