Skip to main content Link Search Menu Expand Document (external link)

Microsoft (Windows) Sysmon

Table of contents
  1. Sysmon
  2. Background
    1. Fluency - NXLog - Sysmon
  3. Installation
    1. Download
      1. Installation pkg
      2. Configuration file
    2. Installation
    3. NXLog (Log Forwarder) Installation
    4. Un-install Sysmon

Sysmon

System Monitor (Sysmon) is a Windows system service and device driver that, once installed on a system, remains resident across system reboots to monitor and log system activity to the Windows event log. It provides detailed information about process creations, network connections, and changes to file creation time. By collecting the events it generates using Windows Event Collection or SIEM agents and subsequently analyzing them, you can identify malicious or anomalous activity and understand how intruders and malware operate on your network.

Note: that Sysmon does not provide analysis of the events it generates, nor does it attempt to protect or hide itself from attackers.

Background

Fluency - NXLog - Sysmon

Fluency collects logs from Windows Servers via the NXLog log collection agent. For Windows systems with NXLog installed and configured, the Sysmon data can be uploaded as a part of the regular log collection. (See the Fluency NXLog Config Wizard plugin for more information on NXLog . Ensure that the Sysmon option is checked when generating the nxlog.conf file.)

Installation

Sysmon installation has two parts.

  1. The first portion is the creation/download of the Sysmon config file.
  2. The second portion is the driver installation via command line, with this Sysmon configuration file.

Download

Installation pkg

Download the installation package from the Microsoft Sysinternals website, or a copy from the Fluency instance:

Sysmon installation pkg: https://download.sysinternals.com/files/Sysmon.zip

Configuration file

The Recommended Sysmon configuation file can be downloaded from our AWS repository:

AWS repo: https://s3.us-east-1.amazonaws.com/SecurityDo/public/sysmonconfig.xml

Installation

Download the two required items from your Fluency instance, or from the links above.

Unpack the Sysmon.zip file, and create/copy the installation package folder to the desired location:

C:\Program Files\Sysmon

Copy file

Copy/move the sysmonconfig.xml file to the same directory:

Copy config

From the Start Menu, search for and Run Command Prompt as Administrator:

Open CMD

Once in the Command Prompt, change the working path to the Sysmon installation folder:

cd "C:\Program Files\Sysmon"

CD working dir

Run the Sysmon executable. (Choose the one that matches the architecture of your system, likely Sysmon64.exe):

Sysmon64.exe -accepteula -i sysmonconfig.xml

Sysmon install cmd

Wait for the tool to complete the installation. Sysmon will start automatically:

Copy file

NXLog (Log Forwarder) Installation

Please ensure that a log collection agent, such as NXLog, is also installed on the system. Sysmon is a log generator, and by itself does not export logs.

NXLog Installation Guide

Once the logs are collected, they should show up in Fluency as Windows AD events, under the Channel:

Microsoft-Windows-Sysmon/Operational

Un-install Sysmon

Sysmon can be removed with the following command, run from the Sysmon installation directory:

Sysmon64.exe -accepteula -u

Remove

Version: 2022 Jun 02