Skip to content
WETNav

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.

Worst caseHigh

Subcommands

stop

Stops a running data collector or trace session.

Medium
delete

Deletes a data collector or trace session.

Medium
start

Starts a data collector or trace session.

Low
create

Creates a data collector or trace session.

Low
query

Lists data collectors and trace sessions.

Low
update

Changes an existing collector or session.

Low

Switches

-ets

Acts on Event Trace Sessions directly.

Medium

Command 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 regexlogman(\.exe)?\s+(stop|delete|update)\b.*(eventlog-|autologger|sysmon|defender|sense|diagtrack|wdatp)

    T1562.006

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.

  • High
    ETW 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

  • High
    Suspicious 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.