Defense evasion · Windows
logman.exe
Logman
Manages Event Trace Sessions and performance data collectors. Stopping or deleting an ETW trace that feeds logging or an EDR removes a telemetry source, so trace changes are worth checking.
Legitimate use
Admins use it to create and manage performance counters and ETW trace sessions.
Subcommands
Stops a running data collector or trace session.
MediumDeletes a data collector or trace session.
MediumStarts a data collector or trace session.
LowCreates a data collector or trace session.
LowLists data collectors and trace sessions.
LowChanges an existing collector or session.
LowSwitches
Acts on Event Trace Sessions directly.
MediumCommand lines to worry about
- High
Logging or EDR trace session stopped
Stopping or deleting an ETW session tied to event logging, Sysmon or an EDR cuts off its telemetry. Check the session name against your tooling.
Detection regex
logman(\.exe)?\s+(stop|delete|update)\b.*(eventlog-|autologger|sysmon|defender|sense|diagtrack|wdatp)
Where it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
Community detections
2 SigmaHQ rules for logman.exe. The explainer checks every pasted command line against all of them.
- HighETW Trace Evasion Activity
Detects command line activity that attempts to tamper with Event Tracing for Windows (ETW) by clearing or disabling trace logs or providers. Adversaries may target ETW to blind security tooling and evade detection by removing visibility into process activity, network connections, and other telemetry sources.
T1070T1685by @neu5ron, Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community
- HighSuspicious Windows Trace ETW Session Tamper Via Logman.EXE
Detects the execution of "logman" utility in order to disable or delete Windows trace sessions
T1685T1685.005by Florian Roth (Nextron Systems)
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.