01 / TRADECRAFT
3 examplesCommand reference
Execute2
EXAMPLE 01T1127
Compile and execute C# or VB.net code in a XOML file referenced in the first argument (any extension accepted).
COMMAND
Microsoft.Workflow.Compiler.exe {PATH} {PATH:.log}EXAMPLE 02T1127
Compile and execute C# or VB.net code in a XOML file referenced in the test.txt file.
COMMAND
Microsoft.Workflow.Compiler.exe {PATH} {PATH:.log}AWL Bypass1
EXAMPLE 01T1127
Compile and execute C# or VB.net code in a XOML file referenced in the test.txt file.
COMMAND
Microsoft.Workflow.Compiler.exe {PATH} {PATH:.log}02 / ON DISK
Known paths
C:\Windows\Microsoft.Net\Framework64\v4.0.30319\Microsoft.Workflow.Compiler.exe03 / DEFENSIVE INTELLIGENCE
6 resourcesDetection & indicators
- Sigmaproc_creation_win_lolbin_workflow_compiler.ymlgithub.com
- Splunksuspicious_microsoft_workflow_compiler_usage.ymlgithub.com
- Splunksuspicious_microsoft_workflow_compiler_rename.ymlgithub.com
- Elasticdefense_evasion_unusual_process_network_connection.tomlgithub.com
- Elasticdefense_evasion_network_connection_from_windows_binary.tomlgithub.com
- BlockRulemicrosoft recommended block rulesdocs.microsoft.com
Indicators & detection notes
- IOC
Microsoft.Workflow.Compiler.exe would not normally be run on workstations.
- IOC
The presence of csc.exe or vbc.exe as child processes of Microsoft.Workflow.Compiler.exe
- IOC
Presence of "<CompilerInput" in a text file.
FURTHER READING
Research & resources
- READResearch by @mattifestationtwitter.com
- READarbitrary unsigned code execution vector in microsoft workflow compiler exe 3d9294bc5efbposts.specterops.io
- READCode & research by mattifestationgist.github.com
- READCode & research by mattifestationgist.github.com
- READusing c post powershell attackswww.forcepoint.com
- READmicrosoft workflow compiler exe veil and cobalt strikewww.fortynorthsecurity.com
- READundetectable c c reverse shells fab4c0ec4f15medium.com
COMMUNITY RESEARCH
Acknowledgements
Matt Graeber@mattifestation
John Bergbom@BergbomJohn
FortyNorth Security@FortyNorthSec
Bank Security@Bank_Security