dsquery is a command-line utility that can be used to query Active Directory for information from a system within a domain. technet.microsoft.com It is typically installed only on Windows Server versions but can be installed on non-server variants through the Microsoft-provided Remote Server Administration Tools bundle.
dsquery can be used to gather information on domain trusts with dsquery * -filter "(objectClass=trustedDomain)" -attr *.posts.specterops.io
Discovery31 detection rules
Standing S0105
Reach counts this tool’s techniques, tactics, groups and campaigns; coverage shows how well defended those techniques are, both compared with other ATT&CK software.
Reach
Techniques4Bottom 17%
17th percentile · 83% of 842 ATT&CK software entries have more Enterprise techniques.
Tactic1Bottom 6%
6th percentile · 94% of 842 ATT&CK software entries have more tactics spanned.
Threat groups262% tie · 22 values
62% of the population shares a single value across only 22 distinct values, so a percentile here would rank the tie, not the entity.
Campaigns386% tie · 8 values
86% of the population shares a single value across only 8 distinct values, so a percentile here would rank the tie, not the entity.
Coverage
Rules / technique43.5medTop 12%
88th percentile · 88% of 842 ATT&CK software entries have this many detection rules per technique or fewer.
Tests / technique20medTop 1%
99th percentile · 99% of 842 ATT&CK software entries have this many atomic tests per technique or fewer.
Data comps / technique3.5med53% tie · 11 values
53% of the population shares a single value across only 11 distinct values, so a percentile here would rank the tie, not the entity.
Mitigations / technique0.5medBottom 23%
23rd percentile · 77% of 842 ATT&CK software entries have more mitigations per technique.
5 of 8 axes carry an honest rank on this page. Coverage medians are taken across this tool’s 4 Enterprise techniques.
Range
Technique Campaign use over its cumulative rule count.
This analytic detects potential reconnaissance activities on Cisco ASA devices by identifying execution of multiple information-gathering "show" commands within a short timeframe. (...)
The following analytic detects the creation of specific AzureHound-related files, such as `*-azurecollection.zip` and various `.json` files, on disk. (...)
The following analytic detects the creation of files typically associated with SharpHound, a reconnaissance tool used for gathering domain and trust data. (...)
The following analytic detects the execution of the `Get-DomainGroupMember` cmdlet from PowerView, identified through PowerShell Script Block Logging (EventCode=4104). (...)
The following analytic detects the execution of `powershell.exe` with command-line arguments used to enumerate domain users via the `Get-ADUser` cmdlet. (...)
The following analytic detects the execution of `powershell.exe` with command-line arguments used to enumerate domain users via the `Get-DomainUser` command. (...)
The following analytic identifies the execution of the Get-DomainTrust command from PowerView using PowerShell, which is used to gather domain trust information. (...)
The following analytic detects the execution of the Get-DomainTrust command from PowerView using PowerShell Script Block Logging (EventCode=4104). (...)
The following analytic detects the execution of the Get-ForestTrust command via PowerShell, commonly used by adversaries to gather domain trust information. (...)
The following analytic detects the execution of the Get-ForestTrust command from PowerSploit using PowerShell Script Block Logging (EventCode=4104). (...)
The following analytic detects the execution of `powershell.exe` with the `Get-AdGroup` commandlet, which is used to query domain groups in a Windows Domain. (...)
The following analytic detects the execution of `powershell.exe` with command-line arguments that query for domain groups using `Get-DomainGroup`. (...)
The following analytic identifies the execution of `powershell.exe` with command-line arguments used to query domain groups via the `Get-WmiObject` cmdlet and the `-class ds_group` parameter. (...)
The following analytic detects the execution of the `Get-WmiObject` commandlet with the `DS_Group` parameter via PowerShell Script Block Logging (EventCode=4104). (...)
The following analytic detects the execution of `powershell.exe` with command-line arguments used to query domain users via the `Get-WmiObject` cmdlet and `-class ds_user` parameter. (...)
The following analytic detects the execution of the `Get-WmiObject` cmdlet with the `DS_User` class parameter via PowerShell Script Block Logging (EventCode=4104). (...)