cscli scenarios install sigmahq/proc_creation_win_hktl_powersploit_empire_default_schtasks1type: trigger2name: sigmahq/proc_creation_win_hktl_powersploit_empire_default_schtasks3description: |4 Detects the creation of a schtask via PowerSploit or Empire Default Configuration.5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.ParentImage endsWith '\\powershell.exe' || evt.Parsed.ParentImage endsWith '\\pwsh.exe') && evt.Parsed.Image endsWith '\\schtasks.exe' && evt.Parsed.CommandLine contains '/Create' && evt.Parsed.CommandLine contains 'powershell.exe -NonI' && evt.Parsed.CommandLine contains '/TN Updater /TR' && (evt.Parsed.CommandLine contains '/SC ONLOGON' || evt.Parsed.CommandLine contains '/SC DAILY /ST' || evt.Parsed.CommandLine contains '/SC ONIDLE' || evt.Parsed.CommandLine contains '/SC HOURLY'))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t1053.00515 - attack.t1059.0011617 label: "HackTool - Default PowerSploit/Empire Scheduled Task Creation"18 behavior : "windows:audit"19 remediation: false2021scope:22 type: ParentProcessId23 expression: evt.Parsed.ParentProcessId2425