cscli scenarios install sigmahq/proc_creation_win_forfiles_child_process_masquerading1type: trigger2name: sigmahq/proc_creation_win_forfiles_child_process_masquerading3description: |4 Detects the execution of "forfiles" from a non-default location, in order to potentially spawn a custom "cmd.exe" from the current working directory.5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.ParentCommandLine endsWith '.exe' || evt.Parsed.ParentCommandLine endsWith '.exe"') && evt.Parsed.Image endsWith '\\cmd.exe' && evt.Parsed.CommandLine startsWith '/c echo "' && not ((evt.Parsed.ParentImage contains ':\\Windows\\System32\\' || evt.Parsed.ParentImage contains ':\\Windows\\SysWOW64\\') && evt.Parsed.ParentImage endsWith '\\forfiles.exe' && (evt.Parsed.Image contains ':\\Windows\\System32\\' || evt.Parsed.Image contains ':\\Windows\\SysWOW64\\') && evt.Parsed.Image endsWith '\\cmd.exe'))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t10361516 label: "Forfiles.EXE Child Process Masquerading"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324