PowerShell Download Pattern
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects a Powershell process that contains download commands in its command line string
Severity
Trouble
Rule Requirement
Criteria
Action1:
actionname = "Process started" AND (PROCESSNAME endswith "\powershell.exe,\pwsh.exe" OR ORIGINALFILENAME = "PowerShell.EXE,pwsh.dll") AND ((COMMANDLINE contains "new-object" AND COMMANDLINE contains "net.webclient)." AND COMMANDLINE contains "download") AND COMMANDLINE contains "string(,file(")
select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME,Action1.DOMAIN,Action1.ORIGINALFILENAME,Action1.PARENTPROCESSID,Action1.PROCESSID,Action1.PRODUCT_NAME,Action1.SECURITYID
Detection
Execution Mode
realtime
Log Sources
Windows
Author
Florian Roth (Nextron Systems), oscd.community, Jonhnathan Ribeiro


