Dotnet.exe

type: OtherMSBinaries
dotnet.exe comes with .NET Framework

Full path

C:\Program Files\dotnet\dotnet.exe

Commands

  1. AWL BypassUser T1218

    Execute code bypassing AWL

    dotnet.exe {PATH:.dll}

    dotnet.exe will execute any DLL even if applocker is enabled.

    os: Windows 7 and up with .NET installed

    Execute: DLL (.NET)

  2. ExecuteUser T1218

    Execute DLL

    dotnet.exe {PATH:.dll}

    dotnet.exe will execute any DLL.

    os: Windows 7 and up with .NET installed

    Execute: DLL (.NET)

  3. ExecuteUser T1059

    Execute arbitrary F# code

    dotnet.exe fsi

    dotnet.exe will open a console which allows for the execution of arbitrary F# commands

    os: Windows 10 and up with .NET SDK installed

    Execute: FSharp

  4. AWL BypassUser T1218

    Execute code bypassing AWL

    dotnet.exe msbuild {PATH:.csproj}

    dotnet.exe with msbuild (SDK Version) will execute unsigned code

    os: Windows 10 and up with .NET Core installed

    Execute: CSharp

Detection

Resources

acknowledgement: felamos @_felamos, Jimmy @bohops, yamalon @mavinject