LOLBAS. GitHub
LIVING OFF THE LAND / OTHER MICROSOFT BINARIES

dotnet-counters.exe

View source

.NET diagnostic tool for monitoring performance counters of .NET applications in real-time. Installed via 'dotnet tool install --global dotnet-counters' (.NET SDK required).

01COMMAND EXAMPLES
01ATT&CK TECHNIQUES
00DETECTION RESOURCES
01CAPABILITIES
01 / TRADECRAFT

Command reference

1 examples

Execute1

EXAMPLE 01T1127

Launches the specified executable as a child process while collecting performance counter data for 1 second.

COMMAND
dotnet-counters.exe collect --duration 1 -- {PATH:.exe}
USE CASE
Execute a child process under the guise of a legitimate .NET diagnostic tool.
PRIVILEGES
User
OPERATING SYSTEM
Windows 10, Windows 11
Execute · EXE
02 / ON DISK

Known paths

C:\Users\<user>\.dotnet\tools\dotnet-counters.exe
03 / DEFENSIVE INTELLIGENCE

Detection & indicators

0 resources

Indicators & detection notes

  • IOC

    Process creation with command line containing "dotnet-counters collect" and "--"

REFERENCE IMPLEMENTATIONS

Code samples

FURTHER READING

Research & resources

COMMUNITY RESEARCH

Acknowledgements

Iván Cabrera@ivancabrera02