Sigma rule: Domain Trust Discovery Via Dsquery
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-5df7c26842c4, updated 2023-02-02T00:00:00.000Z.
Rule
- Title
- Domain Trust Discovery Via Dsquery
- Status
- test
- Level
- medium
- Author
- E.M. Anhaus, Tony Lambert, oscd.community, omkar72
- Date
- 2019-10-24
- Modified
- 2023-02-02
- File
- rules/windows/process_creation/proc_creation_win_dsquery_domain_trust_discovery.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects execution of "dsquery.exe" for domain trust discovery
Log source
- product
- windows
- category
- process_creation
Detection
selection_img:
- Image|endswith: '\dsquery.exe'
- OriginalFileName: 'dsquery.exe'
selection_cli:
CommandLine|contains: 'trustedDomain'
condition: all of selection_*False positives (as the rule lists them)
- Legitimate use of the utilities by legitimate user for legitimate reason
Tags
- attack.discovery
- attack.t1482
MITRE ATT&CK ids this rule names
Related rules
- b23fcb74-b1cb-4ff7-a31d-bfe2a7ba453b (similar)
- 77815820-246c-47b8-9741-e0def3f57308 (obsolete)
References
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1482/T1482.md
- https://posts.specterops.io/an-introduction-to-manual-active-directory-querying-with-dsquery-and-ldapsearch-84943c13d7eb?gi=41b97a644843
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_dsquery_domain_trust_discovery.yml
Sources and licences
SigmaHQ
"Domain Trust Discovery Via Dsquery" by E.M. Anhaus, Tony Lambert, oscd.community, omkar72 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_dsquery_domain_trust_discovery.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Domain Trust Discovery Via Dsquery",
entity page, dataset version ref-5df7c26842c4, updated 2023-02-02T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/3bad990e-4848-4a78-9530-b427d854aac0 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 3bad990e-4848-4a78-9530-b427d854aac0, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.