Library / Windows
dsquery.exe
Microsoft AD DS/LDS query command line utility · Microsoft Corporation
WindowsParsedSigma refs: 3
OriginalFilename
dsquery.exe
Query snippets
logsource:
category: process_creation
product: windows
detection:
selection:
- Image|endswith: '\dsquery.exe'
- OriginalFileName: 'dsquery.exe'
condition: selectionprocess_creation logsource. Sigma string matching is case-insensitive.
| tstats summariesonly=false count values(Processes.original_file_name) as original_file_name
from datamodel=Endpoint.Processes
where (Processes.original_file_name="dsquery.exe" OR Processes.process_name="dsquery.exe")
by Processes.dest Processes.process_name Processes.process_path Processes.process
| rename Processes.* as *Endpoint.Processes data model. On raw Sysmon events the field is OriginalFileName.
DeviceProcessEvents
| where ProcessVersionInfoOriginalFileName in~ ("dsquery.exe")
or FileName =~ "dsquery.exe"Microsoft Defender XDR advanced hunting. in~ and =~ are case-insensitive.
process where event.type == "start" and
(process.pe.original_file_name in~ ("dsquery.exe") or
process.name : "dsquery.exe")ECS process.pe.original_file_name is a keyword field: in~ is case-insensitive, Kibana KQL is not.
['dsquery.exe'].includes(String(OriginalFileName || '').toLowerCase())Filter expression (JavaScript) for events carrying Sysmon's OriginalFileName field.
Values across builds
| OriginalFilename | Builds | Arch | File version | Windows releases | Source | Sysmon |
|---|---|---|---|---|---|---|
| dsquery.exe | 3 | x64, x86 | 10.0.26100.7920 → 10.0.28000.1896 | Win11 24H2 → Win11 26H1 (2) | Winbindex |
All 3 parsed builds · 1 Windows release groups not verifiable
| SHA256 | Version | Arch | OriginalFilename | Windows releases | Signature | Source | Sysmon |
|---|---|---|---|---|---|---|---|
| 6e3f34696fc7… | 10.0.28000.1896 | x86 | dsquery.exe | Win11 26H1 | Winbindex | ||
| 5ffe4464a647… | 10.0.28000.1896 | x64 | dsquery.exe | Win11 26H1 | Winbindex | ||
| 11f7f1e8e0d3… | 10.0.26100.7920 | x64 | dsquery.exe | Win11 24H2 | Unsigned | Winbindex |
Winbindex builds link to the Microsoft symbol server copy that was hashed and parsed.