Detection rules › Sigma
Potential CommandLine Path Traversal Via Cmd.EXE
Detects potential path traversal attempt via cmd.exe. Could indicate possible command/argument confusion/hijacking
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1059.003 Command and Scripting Interpreter: Windows Command Shell |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
Stages and Predicates
Stage 1: all of selection_img
or:
Image|endswith: '\cmd.exe'
OriginalFileName: cmd.exe
ParentImage|endswith: '\cmd.exe'
Stage 2: all of selection_flags
or:
CommandLine|contains: '/c'
CommandLine|contains: '/k'
CommandLine|contains: '/r'
ParentCommandLine|contains: '/c'
ParentCommandLine|contains: '/k'
ParentCommandLine|contains: '/r'
Stage 3: all of selection_path_traversal
or:
CommandLine|contains: '/../../'
ParentCommandLine: '/../../'
Stage 4: not 1 of filter_java
CommandLine|contains: '\Tasktop\keycloak\bin\/../../jre\bin\java'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
Image | ends_with |
|
OriginalFileName | eq |
|
ParentCommandLine | eq |
|
ParentCommandLine | match |
|
ParentImage | ends_with |
|