Suspicious Microsoft Workflow Compiler Proxy Execution
The Microsoft Workflow Compiler (microsoft.workflow.compiler.exe) is being abused as a living-off-the-land technique to execute arbitrary code or maintain persistence via proxy execution.
Microsoft.Workflow.Compiler.exe is a legitimate component of the .NET Framework, typically located within the C:\Windows\Microsoft.NET\Framework64\v4.0.30319 directory. Because this executable is rarely utilized in standard administrative or user workflows, it has become a target for adversaries seeking to bypass security controls. By leveraging this trusted utility, attackers can perform proxy execution to launch arbitrary code or establish persistence mechanisms, effectively blending in with legitimate system activity. Defenders should monitor for any execution of this binary, as standard environments rarely require its use, making it a high-fidelity indicator of potential Living off the Land (LotL) activity.
Attack Chain
- Attacker drops an arbitrary payload or malicious workflow definition file onto the target system.
- Attacker identifies the location of the legitimate Microsoft.Workflow.Compiler.exe binary.
- Attacker executes microsoft.workflow.compiler.exe via command line or automated script.
- The binary is invoked to compile and execute the malicious workflow or linked payload.
- The compiler executes the arbitrary code as a child process or in the context of the compiler.
- Persistence or secondary stage execution is established on the host.
Impact
Successful exploitation allows for arbitrary code execution within a trusted process context, facilitating defense evasion, persistence, and potential escalation of privileges. While specific victim counts are not provided, this technique is used across various sectors to minimize the forensic footprint of malicious operations on Windows endpoints.
Recommendation
- Deploy the Sigma rules below to monitor for any process execution of microsoft.workflow.compiler.exe.
- Enable Sysmon Event ID 1 (Process Creation) or Windows Event ID 4688 to capture the full command-line arguments used during execution.
- Alert on any occurrence of this binary and perform baseline analysis to rule out legitimate administrative activity, such as specific SCCM-related tasks.
Immediate actions
Deploy Sigma detection rule to SIEM
Threat Hunt
Search historic process logs for microsoft.workflow.compiler.exe
Data: Process execution logs
Mitigations
Restrict execution permissions for the compiler binary to authorized service accounts only
Proxy execution via T1127
Detection coverage 1
Detect Suspicious Microsoft Workflow Compiler Execution
mediumDetects execution of microsoft.workflow.compiler.exe, which is rarely used and often abused for proxy execution.
Detection queries are available on the platform. Get full rules →