Detectionhightest

Potential Recon Activity Using DriverQuery.EXE

Detect usage of the "driverquery" utility to perform reconnaissance on installed drivers

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Nasreddine Bencherchali (Nextron Systems)Created Thu Jan 19Updated Fri Sep 299fc3072c-dc8f-4bf7-b231-18950000faddwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_img:
        - Image|endswith: 'driverquery.exe'
        - OriginalFileName: 'drvqry.exe'
    selection_parent:
        - ParentImage|endswith:
              - '\cscript.exe'
              - '\mshta.exe'
              - '\regsvr32.exe'
              - '\rundll32.exe'
              - '\wscript.exe'
        - ParentImage|contains:
              - '\AppData\Local\'
              - '\Users\Public\'
              - '\Windows\Temp\'
    condition: all of selection_*
False Positives

Legitimate usage by some scripts might trigger this as well

Testing & Validation

Regression Tests

by SigmaHQ Team
Positive Detection Testevtx

Microsoft-Windows-Sysmon

MITRE ATT&CK
Rule Metadata
Rule ID
9fc3072c-dc8f-4bf7-b231-18950000fadd
Status
test
Level
high
Type
Detection
Created
Thu Jan 19
Modified
Fri Sep 29
Path
rules/windows/process_creation/proc_creation_win_driverquery_recon.yml
Raw Tags
attack.discovery
View on GitHub