Detection logic
Original SigmaHQ detection and related fields from the pinned file. The source file includes its full metadata.
logsource:
category: process_creation
product: windows
detection:
selection_cmd:
- Image|endswith: '\cmd.exe'
- OriginalFileName: Cmd.Exe
selection_cli:
CommandLine|contains|windash: '-s'
CommandLine|contains: 'dir '
filter_main_rmdir:
CommandLine|contains: 'rmdir'
condition: all of selection_* and not 1 of filter_main_*
falsepositives:
- Likely