Powershell download and execute file

powershell download file from internet and execute

Sigma rule (View on GitHub)

 1title: Powershell download and execute file  
 2status: experimental
 3description: powershell download file from internet and execute
 4author: Joe Security
 5date: 2019-11-19
 6id: 200028
 7threatname:
 8behaviorgroup: 1
 9classification: 8
10mitreattack:
11
12logsource:
13    category: process_creation
14    product: windows
15detection:
16    selection:
17        CommandLine:
18            - '*\powershell*DownloadFile((*),$*))*start-process $*'
19            - '*.downloadfile*start-process*'
20            - '*invoke-expression(new-object net.webclient*.invoke*'
21            - '*powershell iwr http*start-process*'
22    condition: selection
23level: critical
to-top