Windows Process Creation: Suspicious RunAs-Like Command-Line Flag Combination

Flags Windows processes with both target-user and target-command flags in the same command line.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-11-11
Updated
2026-07-30

What it detects

This rule flags Windows process creation events whose command line simultaneously contains user-setting flags (e.g., specifying system or administrator) and command-execution flags (e.g., cmd, powershell, whoami, wscript, cscript). Such flag combinations are commonly used by legitimate admin utilities but can also indicate attempts to impersonate or execute commands under a different target user. It relies on process creation telemetry and string matches against the CommandLine field for the relevant flag patterns.

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