Sigma rule: Suspicious RunAs-Like Flag Combination

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-c0fd87d8ad41, updated 2022-11-11T00:00:00.000Z.

Rule

Title
Suspicious RunAs-Like Flag Combination
Status
test
Level
medium
Author
Florian Roth (Nextron Systems)
Date
2022-11-11
File
rules/windows/process_creation/proc_creation_win_susp_privilege_escalation_cli_patterns.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects suspicious command line flags that let the user set a target user and command as e.g. seen in PsExec-like tools

Log source

product
windows
category
process_creation

Detection

selection_user:
    CommandLine|contains:
        - ' -u system '
        - ' --user system '
        - ' -u NT'
        - ' -u "NT'
        - " -u 'NT"
        - ' --system '
        - ' -u administrator '
selection_command:
    CommandLine|contains:
        - ' -c cmd'
        - ' -c "cmd'
        - ' -c powershell'
        - ' -c "powershell'
        - ' --command cmd'
        - ' --command powershell'
        - ' -c whoami'
        - ' -c wscript'
        - ' -c cscript'
condition: all of selection*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.privilege-escalation

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_susp_privilege_escalation_cli_patterns.yml

Sources and licences

  • SigmaHQ

    "Suspicious RunAs-Like Flag Combination" by Florian Roth (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_susp_privilege_escalation_cli_patterns.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Suspicious RunAs-Like Flag Combination",
entity page, dataset version ref-c0fd87d8ad41, updated 2022-11-11T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/50d66fb0-03f8-4da0-8add-84e77d12a020 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 50d66fb0-03f8-4da0-8add-84e77d12a020, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.