2018-10-25 04:48:45 +02:00
|
|
|
---
|
|
|
|
Name: Microsoft.Workflow.Compiler.exe
|
|
|
|
Description: A utility included with .NET that is capable of compiling and executing C# or VB.net code.
|
|
|
|
Author: 'Conor Richard'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2018-10-22
|
2018-10-25 04:48:45 +02:00
|
|
|
Commands:
|
2019-01-28 17:39:23 +01:00
|
|
|
- Command: Microsoft.Workflow.Compiler.exe tests.xml results.xml
|
2018-10-25 04:48:45 +02:00
|
|
|
Description: Compile and execute C# or VB.net code in a XOML file referenced in the test.xml file.
|
|
|
|
Usecase: Compile and run code
|
2018-12-10 14:28:12 +01:00
|
|
|
Category: Execute
|
2018-10-25 04:48:45 +02:00
|
|
|
Privileges: User
|
|
|
|
MitreID: T1127
|
|
|
|
MitreLink: https://attack.mitre.org/wiki/Technique/T1127
|
2018-10-25 21:24:55 +02:00
|
|
|
OperatingSystem: Windows 10S
|
2019-01-28 17:39:23 +01:00
|
|
|
- Command: Microsoft.Workflow.Compiler.exe tests.txt results.txt
|
2018-10-25 04:48:45 +02:00
|
|
|
Description: Compile and execute C# or VB.net code in a XOML file referenced in the test.txt file.
|
|
|
|
Usecase: Compile and run code
|
2018-10-25 21:24:55 +02:00
|
|
|
Category: Execute
|
2018-10-25 04:48:45 +02:00
|
|
|
Privileges: User
|
|
|
|
MitreID: T1127
|
|
|
|
MitreLink: https://attack.mitre.org/wiki/Technique/T1127
|
2021-01-10 16:04:52 +01:00
|
|
|
OperatingSystem: Windows 10S
|
2019-01-28 17:39:23 +01:00
|
|
|
- Command: Microsoft.Workflow.Compiler.exe tests.txt results.txt
|
2018-10-25 04:48:45 +02:00
|
|
|
Description: Compile and execute C# or VB.net code in a XOML file referenced in the test.txt file.
|
|
|
|
Usecase: Compile and run code
|
|
|
|
Category: AWL Bypass
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1127
|
|
|
|
MitreLink: https://attack.mitre.org/wiki/Technique/T1127
|
2021-01-10 16:04:52 +01:00
|
|
|
OperatingSystem: Windows 10S
|
2018-12-10 14:28:12 +01:00
|
|
|
Full_Path:
|
2018-10-25 21:24:55 +02:00
|
|
|
- Path: C:\Windows\Microsoft.Net\Framework64\v4.0.30319\Microsoft.Workflow.Compiler.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Code_Sample:
|
2018-10-25 04:48:45 +02:00
|
|
|
- Code:
|
2018-10-25 21:24:55 +02:00
|
|
|
Detection:
|
|
|
|
- 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.
|
2018-10-25 04:48:45 +02:00
|
|
|
Resources:
|
2018-10-25 21:24:55 +02:00
|
|
|
- Link: https://twitter.com/mattifestation/status/1030445200475185154
|
|
|
|
- Link: https://posts.specterops.io/arbitrary-unsigned-code-execution-vector-in-microsoft-workflow-compiler-exe-3d9294bc5efb
|
|
|
|
- Link: https://gist.github.com/mattifestation/3e28d391adbd7fe3e0c722a107a25aba#file-workflowcompilerdetectiontests-ps1
|
|
|
|
- Link: https://gist.github.com/mattifestation/7ba8fc8f724600a9f525714c9cf767fd#file-createcompilerinputxml-ps1
|
|
|
|
- Link: https://www.forcepoint.com/blog/security-labs/using-c-post-powershell-attacks
|
|
|
|
- Link: https://www.fortynorthsecurity.com/microsoft-workflow-compiler-exe-veil-and-cobalt-strike/
|
|
|
|
- Link: https://medium.com/@Bank_Security/undetectable-c-c-reverse-shells-fab4c0ec4f15
|
|
|
|
Acknowledgement:
|
2018-10-25 04:48:45 +02:00
|
|
|
- Person: Matt Graeber
|
|
|
|
Handle: '@mattifestation'
|
|
|
|
- Person: John Bergbom
|
|
|
|
Handle: '@BergbomJohn'
|
|
|
|
- Person: FortyNorth Security
|
|
|
|
Handle: '@FortyNorthSec'
|
|
|
|
- Person: Bank Security
|
|
|
|
Handle: '@Bank_Security'
|
2021-01-10 16:04:52 +01:00
|
|
|
---
|