Aspnet_Compiler.exe
ASP.NET Compilation Tool
Full path
c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exeCommands
Execute proxied payload with Microsoft signed binary to bypass application control solutions
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v none -p C:\users\cpl.internal\desktop\asptest\ -f C:\users\cpl.internal\desktop\asptest\none -uExecute C# code with the Build Provider and proper folder structure in place.
os: Windows 10, Windows 11
Detection
- BlockRule https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-block-rules
- Sigma https://github.com/SigmaHQ/sigma/blob/62d4fd26b05f4d81973e7c8e80d7c1a0c6a29d0e/rules/windows/process_creation/proc_creation_win_lolbin_aspnet_compiler.yml
Code samples
Resources
acknowledgement: cpl @cpl3h