cscli scenarios install sigmahq/proc_creation_win_whoami_priv_discovery
1type: trigger2name: sigmahq/proc_creation_win_whoami_priv_discovery3description: |4 Detects a whoami.exe executed with the /priv command line flag instructing the tool to show all current user privileges. This is often used after a privilege escalation attempt.5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.Image endsWith '\\whoami.exe' || evt.Parsed.OriginalFileName == 'whoami.exe') && (evt.Parsed.CommandLine contains ' /priv' || evt.Parsed.CommandLine contains ' -priv'))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t10331516 label: "Security Privileges Enumeration Via Whoami.EXE"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324