Windows query.exe used to enumerate sessions and processes (possible data exfil staging)

Detects query.exe runs that request session and process output, matching patterns consistent with staged data collection.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-08-01
Updated
2026-07-30

What it detects

This rule flags process executions of the Windows system binary query.exe when the command line contains output redirection patterns for sessions and processes ("session >" and "process >"). Enumerating these artifacts can support later collection or staging of sensitive host information for exfiltration. The detection relies on Windows process creation telemetry including the executable path and command-line contents.

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