Course contentsShow
← Security
Lesson 1512 of 3,05230. Operating System Security - MonitoringFree lesson

Sysmon Installation and Configuration

Installing Sysmon, understanding event IDs, and using XML configuration files for tailored monitoring.

Sysmon Installation and Configuration

What you'll learn: How to install Sysmon and configure it with XML files to gain deep visibility into Windows system activity.

What is Sysmon?

Sysmon (System Monitor) is a free Windows system service from Microsoft Sysinternals that logs detailed system activity beyond what native Windows Event Logging provides. While Windows logs authentication and policy changes, Sysmon tracks process creation, network connections, file modifications, registry changes, and driver loads—exactly the behaviors attackers use.

Think of Sysmon as installing security cameras in all the rooms Windows Event Log doesn't cover. You get to decide which rooms to monitor and how closely.

Installation Basics

Installing Sysmon is straightforward:

sysmon64.exe -accepteula -i

This installs with a basic default configuration. However, Sysmon's real power comes from XML configuration files that define exactly what to monitor.

XML Configuration Files

A Sysmon configuration file uses XML to specify filtering rules. You can create a file (e.g., sysmonconfig.xml) that includes or excludes specific events:

<Sysmon schemaversion="4.70">
  <EventFiltering>
    <ProcessCreate onmatch="include">
      <Image condition="contains">powershell</Image>
    </ProcessCreate>
  </EventFiltering>
</Sysmon>

Apply the configuration:

sysmon64.exe -c sysmonconfig.xml

Understanding Event IDs

Sysmon generates events with specific IDs in the Windows Event Log under Applications and Services Logs > Microsoft > Windows > Sysmon/Operational:

  • Event ID 1: Process creation
  • Event ID 3: Network connection
  • Event ID 11: File creation
  • Event ID 13: Registry value modification

These IDs let you build precise detection rules and correlate activity across your environment.

Key Takeaway: Sysmon extends Windows logging with granular process, network, and file activity tracking through customizable XML configurations, providing critical visibility for threat detection and incident response.