← cd ..OtherMSBinaries

dotnet-trace.exe

.NET diagnostic tool for collecting runtime traces from .NET applications. Installed via ‘dotnet tool install –global dotnet-trace’ (.NET SDK required).

Full path

C:\Users\<user>\.dotnet\tools\dotnet-trace.exe

Commands

  1. ExecuteUser T1127

    Execute a child process under the guise of a legitimate .NET diagnostic tool.

    dotnet-trace.exe collect --duration 00:00:01 -- {PATH:.exe}

    Launches the specified executable as a child process while collecting runtime trace data for 1 second during execution.

    os: Windows 10, Windows 11

    Execute: EXE

Detection

  • IOCProcess creation with command line containing "dotnet-trace collect" and "--"

Code samples

Resources

acknowledgement: Iván Cabrera @ivancabrera02