2019-12-11 11:23:12 +01:00
|
|
|
---
|
2020-01-07 08:40:24 +01:00
|
|
|
Name: Dotnet.exe
|
2019-12-11 11:23:12 +01:00
|
|
|
Description: dotnet.exe comes with .NET Framework
|
|
|
|
Author: 'felamos'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2019-11-12
|
2019-12-11 11:23:12 +01:00
|
|
|
Commands:
|
|
|
|
- Command: dotnet.exe [PATH_TO_DLL]
|
|
|
|
Description: dotnet.exe will execute any dll even if applocker is enabled.
|
2022-09-11 05:53:21 +02:00
|
|
|
Usecase: Execute code bypassing AWL
|
2019-12-11 11:23:12 +01:00
|
|
|
Category: AWL Bypass
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1218
|
|
|
|
OperatingSystem: Windows 7 and up with .NET installed
|
|
|
|
- Command: dotnet.exe [PATH_TO_DLL]
|
|
|
|
Description: dotnet.exe will execute any DLL.
|
|
|
|
Usecase: Execute DLL
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1218
|
|
|
|
OperatingSystem: Windows 7 and up with .NET installed
|
2023-02-25 21:10:45 +01:00
|
|
|
- Command: dotnet.exe fsi
|
|
|
|
Description: dotnet.exe will open a console which allows for the execution of arbitrary F# commands
|
|
|
|
Usecase: Execute arbitrary F# code
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1059
|
|
|
|
OperatingSystem: Windows 10 and up with .NET SDK installed
|
2020-07-03 20:56:06 +02:00
|
|
|
- Command: dotnet.exe msbuild [Path_TO_XML_CSPROJ]
|
|
|
|
Description: dotnet.exe with msbuild (SDK Version) will execute unsigned code
|
2022-09-11 05:53:21 +02:00
|
|
|
Usecase: Execute code bypassing AWL
|
2020-07-03 20:56:06 +02:00
|
|
|
Category: AWL Bypass
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1218
|
2023-02-25 21:10:45 +01:00
|
|
|
OperatingSystem: Windows 10 and up with .NET Core installed
|
2019-12-11 11:23:12 +01:00
|
|
|
Full_Path:
|
|
|
|
- Path: 'C:\Program Files\dotnet\dotnet.exe'
|
2021-01-10 16:04:52 +01:00
|
|
|
Detection:
|
2023-10-18 17:30:34 +02:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/683b63f8184b93c9564c4310d10c571cbe367e1e/rules/windows/process_creation/proc_creation_win_lolbin_dotnet.yml
|
2021-11-15 14:19:03 +01:00
|
|
|
- BlockRule: https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-block-rules
|
2019-12-11 11:23:12 +01:00
|
|
|
- IOC: dotnet.exe spawned an unknown process
|
|
|
|
Resources:
|
|
|
|
- Link: https://twitter.com/_felamos/status/1204705548668555264
|
2020-07-03 20:56:06 +02:00
|
|
|
- Link: https://gist.github.com/bohops/3f645a7238d8022830ecf5511b3ecfbc
|
|
|
|
- Link: https://bohops.com/2019/08/19/dotnet-core-a-vector-for-awl-bypass-defense-evasion/
|
2023-02-25 21:10:45 +01:00
|
|
|
- Link: https://learn.microsoft.com/en-us/dotnet/fsharp/tools/fsharp-interactive/
|
2019-12-11 11:23:12 +01:00
|
|
|
Acknowledgement:
|
|
|
|
- Person: felamos
|
|
|
|
Handle: '@_felamos'
|
2020-07-03 20:56:06 +02:00
|
|
|
- Person: Jimmy
|
2021-01-10 16:04:52 +01:00
|
|
|
Handle: '@bohops'
|
2023-02-25 21:10:45 +01:00
|
|
|
- Person: yamalon
|
|
|
|
Handle: '@mavinject'
|