Windows Domain Trust Discovery Using dsquery.exe TrustedDomain Queries

Flags Windows executions of dsquery.exe with trustedDomain to discover Active Directory domain trusts.

FreeReviewedSigma · Medium · v2
Product
windows
Category
process_creation
Author
E.M. Anhaus, Tony Lambert, oscd.community, omkar72 (SigmaHQ), DRL 1.1
Published
2019-10-24
Updated
2026-07-31

ATT&CK techniques

Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule identifies Windows executions of dsquery.exe where the command line includes the parameter string 'trustedDomain'. Attackers can use this information discovery behavior to enumerate domain trust relationships and map Active Directory connectivity. Telemetry relies on process creation events that include the executed image name/path and the full command line arguments.

Related detections9 linkedT1482 — drag to rearrange
Suspicious Discovery Command Spawned by Java Process
Uncommon Domain Trust Discovery via Nltest (via process_creation)
Suspicious SOAPHound Tautological LDAP Filter Enumeration
Suspicious Domain Trust Enumeration via Nltest
Suspicious Domain Controller and Trust Enumeration via Nltest
Suspicious Domain Trust Discovery via Nltest
Suspicious Active Directory Forest PowerShell Class Called from a Non Administrative Host (via powershell)
Windows File Events: ADExplorer .dat Snapshot Written by ADExp.exe or ADExplorer.exe
Windows: Sysinternals ADExplorer invoked with snapshot flag to create AD database snapshot
Windows Domain Trust Discovery Using dsquery.exe TrustedDomain Queries
Pivot detection · T1482 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.