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_parent_7zip:
ParentImage|endswith: '\7z*.exe'
CommandLine|contains: '\AppData\local\temp\7z*\'
selection_parent_winrar:
ParentImage|endswith: '\winrar.exe'
CommandLine|contains: '\AppData\local\temp\rar*\'
selection_parent_explorer:
ParentImage|endswith: '\explorer.exe'
CommandLine|contains:
- '\AppData\local\temp\*.rar\'
- '\AppData\local\temp\*.zip\'
selection_child:
Image|endswith:
- '\cscript.exe'
- '\mshta.exe'
- '\powershell.exe'
- '\pwsh.exe'
- '\wscript.exe'
CommandLine|endswith:
- '.hta'
- '.js'
- '.jse'
- '.ps1'
- '.vbe'
- '.vbs'
- '.wsf'
- '.wsh'
condition: 1 of selection_parent_* and selection_child
falsepositives:
- Batch files may produce a lot of noise, as many applications appear to bundle them as part of their installation process. You should baseline your environment and generate a new query excluding the noisy and expected activity. Some false positives may come up depending on your environment. All results should be investigated thoroughly before filtering out results.