Suspicious PowerShell Download and Execute Pattern
Description
Detects suspicious PowerShell download patterns that are often used in malicious scripts, stagers or downloaders (make sure that your backend applies the strings case-insensitive)
Query · sigma
selection:
CommandLine|contains:
- IEX ((New-Object Net.WebClient).DownloadString
- IEX (New-Object Net.WebClient).DownloadString
- IEX((New-Object Net.WebClient).DownloadString
- IEX(New-Object Net.WebClient).DownloadString
- ' -command (New-Object System.Net.WebClient).DownloadFile('
- ' -c (New-Object System.Net.WebClient).DownloadFile('
condition: selection
Known false positives
- Software installers that pull packages from remote systems and execute them