Suspicious PowerShell IEX Execution Patterns
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects suspicious ways to run Invoke-Execution using IEX alias
Severity
Trouble
Rule Requirement
Criteria
Action1:
actionname = "Process started" AND ((PROCESSNAME endswith "\powershell.exe,\pwsh.exe" AND COMMANDLINE contains " | iex;, | iex , | iex}, | IEX ;, | IEX -Error, | IEX (new,);IEX ") AND COMMANDLINE contains "::FromBase64String,.GetString([System.Convert]::") OR COMMANDLINE contains ")|iex;$,);iex($,);iex $, | IEX | , | iex""
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), Nasreddine Bencherchali (Nextron Systems)


