Skip to content
WETNav

Defense evasionHigh

Sysmon tampering

Also known as Sysmon unload, SysmonDrv unload

Stopping Sysmon or unloading its driver to kill endpoint telemetry. Sysmon 4 and 16, and a fltmc unload of SysmonDrv, mark it.

Signals in the logs

  1. 01Sysmon4Sysmon Service State ChangedAny host

    The Sysmon service state changed to stopped.

    State
    Stopped
  2. 02Sysmon16Sysmon Configuration ChangeAny host

    The Sysmon configuration was changed, possibly to an empty ruleset.

    Configuration
    path or inline config applied
    ConfigurationFileHash
    hash of the new config
  3. 03Security4688A new process has been createdAny host

    fltmc.exe unloading the Sysmon minifilter driver.

    NewProcessName
    C:\Windows\System32\fltmc.exe
    CommandLine
    fltmc unload SysmonDrv
  4. 04System7036Service entered the running or stopped stateAny host

    The Sysmon service (Sysmon64/Sysmon) entered the stopped state via the Service Control Manager.

    param1
    Sysmon64
    param2
    stopped

What happens

Where Sysmon is deployed it is often the richest endpoint telemetry available, so an intruder with administrative rights tries to silence it. The service can be stopped, its configuration can be swapped for an empty one that logs nothing, or its minifilter driver can be unloaded directly with fltmc unload SysmonDrv, which severs collection without touching the service object. Sysmon records some of this against itself: event 4 reports service state changes (started or stopped), and event 16 reports a configuration change with the new configuration hash. An unload of the driver stops events arriving, so the clearest sign is often the sudden end of Sysmon output combined with a Security 4688 or System record of fltmc.exe running with an unload argument.

Logging you need

  • Sysmon must be installed with a non-empty configuration; its events 4 and 16 are always generated regardless of config.
  • Catching fltmc.exe or the stop command needs Security 4688 with command-line auditing, or forwarding of Sysmon 1 before it was unloaded.
  • A baseline of normal Sysmon volume per host makes the silence after an unload detectable.

Hunt queries

Starting points. Tune thresholds and exclusions to your environment before alerting on them.

Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-Sysmon/Operational'; Id=4,16}

Benign look-alikes

  • Planned Sysmon upgrades, which stop the service and apply a new configuration (events 4 and 16 together).
  • Administrators pushing a tuned configuration during rollout.
  • Host reboots and patch cycles, which stop and restart the service normally.

Notes

  • The driver name SysmonDrv and service name Sysmon64 (or Sysmon on 32-bit) are stable targets; alert on either appearing in an unload or stop command.
  • Forward Sysmon events off-host so that silencing the agent does not also destroy the record of it being silenced.

References