Suspicious AgentExecutor PowerShell Execution
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects execution of the AgentExecutor.exe binary. Which can be abused as a LOLBIN to execute powershell scripts with the ExecutionPolicy "Bypass" or any binary named "powershell.exe" located in the path provided by 6th positional argument
Severity
Trouble
Rule Requirement
Criteria
Action1: actionname = "Process started" AND ((PROCESSNAME endswith "\AgentExecutor.exe" OR ORIGINALFILENAME = "AgentExecutor.exe") AND COMMANDLINE contains " -powershell, -remediationScript") AND (COMMANDLINE notcontains "C:\Windows\System32\WindowsPowerShell\v1.0\,C:\Windows\SysWOW64\WindowsPowerShell\v1.0" AND PARENTPROCESSNAME notendswith "\Microsoft.Management.Services.IntuneWindowsAgent.exe") select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME
Detection
Execution Mode
realtime
Log Sources
Windows
Author
Nasreddine Bencherchali (Nextron Systems), memory-shards


