Catalog LOLBAS

LOL · Binary

Msbuild.exe

5 techniques WindowsLOLBAS GPL-3.0

AWL Bypass

AWL / Policy Bypass Windows

Build and execute a C# project stored in the target XML file.

Use Compile and run code

msbuild.exe {PATH:.xml}
Context
user
Native
AWL Bypass
Detection
IOC: Msbuild.exe should not normally be executed on workstations

Execute

Execution Windows

Build and execute a C# project stored in the target csproj file.

Use Compile and run code

msbuild.exe {PATH:.csproj}
Context
user
Native
Execute
Detection
IOC: Msbuild.exe should not normally be executed on workstations

Execute

Execution Windows

Executes generated Logger DLL file with TargetLogger export.

Use Execute DLL

msbuild.exe /logger:TargetLogger,{PATH_ABSOLUTE:.dll};MyParameters,Foo
Context
user
Native
Execute
Detection
IOC: Msbuild.exe should not normally be executed on workstations

Execute

Execution Windows

Execute JScript/VBScript code through XML/XSL Transformation. Requires Visual Studio MSBuild v14.0+.

Use Execute project file that contains XslTransformation tag parameters

msbuild.exe {PATH:.proj}
Context
user
Native
Execute
Detection
IOC: Msbuild.exe should not normally be executed on workstations

Execute

Execution Windows

By putting any valid msbuild.exe command-line options in an RSP file and calling it as above will interpret the options as if they were passed on the command line.

Use Bypass command-line based detections

msbuild.exe @{PATH:.rsp}
Context
user
Native
Execute
MITRE
T1036
Detection
IOC: Msbuild.exe should not normally be executed on workstations