> For the complete documentation index, see [llms.txt](https://faresbltagy.gitbook.io/footprintinglabs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://faresbltagy.gitbook.io/footprintinglabs/build-home-lab-soc-automation/install-and-configure-sysmon-for-deep-windows-event-logging.md).

# Install & configure Sysmon for deep Windows event logging

*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.

Let's start by installing Sysmon from the following link: [Sysmon Download](https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon)

We also need to download the Sysmon configuration file from the following URL: [Sysmon Modular Configuration](https://github.com/olafhartong/sysmon-modular/blob/master/sysmonconfig.xml).

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2F7GGjizKuVn6yMSnRSfjI%2FScreenshot(21).png?alt=media&amp;token=dbd70c9d-41ae-4e64-a68b-34e956098c25" alt=""><figcaption></figcaption></figure>

Next, let's extract the Sysmon compressed folder and place the Sysmon configuration file in the same directory as Sysmon.

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2FT3Ss0NqTOOMWVBKQ8Plf%2FScreenshot(22).png?alt=media&amp;token=fb11be98-c4c3-4779-9d2e-ca12cb311baa" alt=""><figcaption></figcaption></figure>

Next, we need to open PowerShell with administrative privileges to configure Sysmon.

```powershell
.\Sysmon64.exe -i .\sysmonconfig.xml
```

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2FXKorLoI8AdkoKzY0kGka%2FScreenshot(23).png?alt=media&amp;token=4c2941ea-1ac0-4903-9050-6e38d256166a" alt=""><figcaption></figcaption></figure>

Let's verify whether Sysmon is installed on the system.

```powershell
Get-Service Sysmon64
```

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2F2wXUORG5giN7LeOjPvBS%2FScreenshot(24).png?alt=media&amp;token=0c1b856b-fd84-4e78-ae29-4465ffa8426c" alt=""><figcaption></figcaption></figure>

We can also verify this using the Event Viewer.

```
Applications and Services Logs -> Microsoft -> Windows -> Sysmon
```

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2Fg4qzjp44eUMqxE6MEiQC%2FScreenshot(25).png?alt=media&amp;token=b42d0607-9034-4c7a-99bf-d40ff3fd6e6f" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://faresbltagy.gitbook.io/footprintinglabs/build-home-lab-soc-automation/install-and-configure-sysmon-for-deep-windows-event-logging.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
