cscli scenarios install sigmahq/proc_creation_win_cmd_path_traversal1type: trigger2name: sigmahq/proc_creation_win_cmd_path_traversal3description: |4 Detects potential path traversal attempt via cmd.exe. Could indicate possible command/argument confusion/hijacking5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.ParentImage endsWith '\\cmd.exe' || evt.Parsed.Image endsWith '\\cmd.exe' || evt.Parsed.OriginalFileName == 'cmd.exe') && (evt.Parsed.ParentCommandLine contains '/c' || evt.Parsed.ParentCommandLine contains '/k' || evt.Parsed.ParentCommandLine contains '/r' || evt.Parsed.CommandLine contains '/c' || evt.Parsed.CommandLine contains '/k' || evt.Parsed.CommandLine contains '/r') && (evt.Parsed.ParentCommandLine == '/../../' || evt.Parsed.CommandLine contains '/../../') && not (evt.Parsed.CommandLine contains '\\Tasktop\\keycloak\\bin\\/../../jre\\bin\\java'))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t1059.0031516 label: "Potential CommandLine Path Traversal Via Cmd.EXE"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324