{"id":"087790e3-3287-436c-bccf-cbd0184a7db1","title":"Potential CommandLine Path Traversal Via Cmd.EXE","description":"Detects potential path traversal attempt via cmd.exe. Could indicate possible command/argument confusion/hijacking","author":"xknow @xknow_infosec, Tim Shelton","status":"test","level":"high","date":"2020-06-11","modified":"2023-03-06","tags":["attack.execution","attack.t1059.003"],"technique_ids":["T1059.003"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Java tools are known to produce false-positive when loading libraries"],"references":["https://hackingiscool.pl/cmdhijack-command-argument-confusion-with-path-traversal-in-cmd-exe/","https://twitter.com/Oddvarmoe/status/1270633613449723905"],"source_path":"rules/windows/process_creation/proc_creation_win_cmd_path_traversal.yml","source_sha256":"669fcb6d30e0b4262649ccb9225c6e5efd822472f5470894cbec33d30a07c591","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_cmd_path_traversal.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Potential CommandLine Path Traversal Via Cmd.EXE\nid: 087790e3-3287-436c-bccf-cbd0184a7db1\nstatus: test\ndescription: Detects potential path traversal attempt via cmd.exe. Could indicate possible command/argument confusion/hijacking\nreferences:\n    - https://hackingiscool.pl/cmdhijack-command-argument-confusion-with-path-traversal-in-cmd-exe/\n    - https://twitter.com/Oddvarmoe/status/1270633613449723905\nauthor: xknow @xknow_infosec, Tim Shelton\ndate: 2020-06-11\nmodified: 2023-03-06\ntags:\n    - attack.execution\n    - attack.t1059.003\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - ParentImage|endswith: '\\cmd.exe'\n        - Image|endswith: '\\cmd.exe'\n        - OriginalFileName: 'cmd.exe'\n    selection_flags:\n        - ParentCommandLine|contains:\n              - '/c'\n              - '/k'\n              - '/r'\n        - CommandLine|contains:\n              - '/c'\n              - '/k'\n              - '/r'\n    selection_path_traversal:\n        - ParentCommandLine: '/../../'\n        - CommandLine|contains: '/../../'\n    filter_java:\n        CommandLine|contains: '\\Tasktop\\keycloak\\bin\\/../../jre\\bin\\java'\n    condition: all of selection_* and not 1 of filter_*\nfalsepositives:\n    - Java tools are known to produce false-positive when loading libraries\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059.003","id":"T1059.003","name":"Windows Command Shell","page":"techniques/enterprise/T1059.003/"}],"data_path":"data/detection-rules/087790e3-3287-436c-bccf-cbd0184a7db1.json","kind":"sigma"}
