dotnet-counters.exe
.NET diagnostic tool for monitoring performance counters of .NET applications in real-time. Installed via ‘dotnet tool install –global dotnet-counters’ (.NET SDK required).
Full path
C:\Users\<user>\.dotnet\tools\dotnet-counters.exeCommands
Execute a child process under the guise of a legitimate .NET diagnostic tool.
dotnet-counters.exe collect --duration 1 -- {PATH:.exe}Launches the specified executable as a child process while collecting performance counter data for 1 second.
os: Windows 10, Windows 11
Detection
- IOCProcess creation with command line containing "dotnet-counters collect" and "--"
Code samples
Resources
acknowledgement: Iván Cabrera @ivancabrera02