Microsoft Intune Management Extension: Potential AgentExecutor.exe abuse
The Intune management utility AgentExecutor.exe can be leveraged as a living-off-the-land binary (LOLBIN) to execute arbitrary PowerShell scripts with bypassed execution policies.
Triage facts
Revision 1- Applicability
- Intune Management Extension
- Evidence
- Unknown
- Severity
- Medium
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 7, 03:05 UTC
- Detection
- 1 rule
- Source quality
- A2Likely
AgentExecutor.exe is a component of the Microsoft Intune Management Extension used for executing remediation and management scripts. Security research indicates that this binary can be abused to launch PowerShell instances with the execution policy set to "Bypass" when specific parameters are provided, allowing for the execution of unauthorized scripts. This activity is normally associated with the parent process Microsoft.Management.Services.IntuneWindowsAgent.exe; executions originating from other parent processes or occurring with unexpected arguments should be considered suspicious.
Impact
Unauthorized execution of PowerShell scripts on systems managed by Intune, potentially leading to privilege escalation, persistence, or code execution in the context of the management agent.
Recommendation
- Deploy the detection rule below to identify non-standard usage of AgentExecutor.exe.
- Baseline legitimate management script activity originating from the Microsoft.Management.Services.IntuneWindowsAgent.exe parent process to minimize false positives.
- Investigate any instance of AgentExecutor.exe spawned by processes other than the primary Intune agent.
Immediate actions
Deploy Sigma rule to identify anomalous AgentExecutor execution
Threat Hunt
Search for any process executions of AgentExecutor.exe where the ParentImage is NOT the Intune Management Extension
Data: Process creation logs
Detection coverage 1
Detect AgentExecutor PowerShell Execution
mediumDetects execution of the AgentExecutor.exe binary being used to launch PowerShell scripts with potentially bypassed execution policies, excluding legitimate Intune agent activity.
Detection queries are available on the platform. Get full rules →