cscli scenarios install sigmahq/proc_creation_win_hktl_sharp_impersonation1type: trigger2name: sigmahq/proc_creation_win_hktl_sharp_impersonation3description: |4 Detects execution of the SharpImpersonation tool. Which can be used to manipulate tokens on a Windows computers remotely (PsExec/WmiExec) or interactively5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && (evt.Parsed.Image endsWith '\\SharpImpersonation.exe' || evt.Parsed.OriginalFileName == 'SharpImpersonation.exe' || evt.Parsed.CommandLine contains ' user:' && evt.Parsed.CommandLine contains ' binary:' || evt.Parsed.CommandLine contains ' user:' && evt.Parsed.CommandLine contains ' shellcode:' || evt.Parsed.CommandLine contains ' technique:CreateProcessAsUserW' || evt.Parsed.CommandLine contains ' technique:ImpersonateLoggedOnuser')7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t1134.00115 - attack.t1134.0031617 label: "HackTool - SharpImpersonation Execution"18 behavior : "windows:audit"19 remediation: false2021scope:22 type: ParentProcessId23 expression: evt.Parsed.ParentProcessId2425