This section will go over how I forward logs from machine to machine, as well as how to configure windows audit policies for logs you may want included in your Kibana. In the Microsoft documentation it states:

In the Windows operating systems, security auditing is the features and services for an administrator to log and review events for specified security-related activities.
  1. First open up Group Policy on your Windows Server Virtual Machine:

    Untitled

  2. Then we go to our Default Domain Controllers Policy: Forest: dancemoms.org -> Domains -> Domain Controllers -> Default Domain Controllers Policy -> edit

    Untitled

  3. If you click on one of the policies here you can see the different subcategories that it has. And as you can see it is not configured.

    Untitled

  4. We can also see what is being enforced if we look at the Group Policy Management:

    Untitled

    Untitled

  5. To get all different security polices we can use this PowerShell command too: auditpol /get /category:*

  6. From there we can enforce it by right clicking the policy on the right hand side:

    Untitled

Sysmon Configuration/Audit Configuration on Windows

Windows logging is hard to understand so, we have Sysmon to make it easier to understand and get the information.

  1. Download Sysmon, Microsoft hosts it (You can search sysmon installation lol)

  2. Extract it and you should see a few executables and the EULA for using sysmon:

    Untitled

  3. Then we download the sysmon config from Swiftonsecurity, this gives us a template to work with: https://github.com/SwiftOnSecurity/sysmon-config

    Untitled

  4. Then we can run Sysmon with the new export using the command: .\Downloads\Sysmon\Sysmon64.exe -accepteula -i .\Downloads\sysmonconfig-export.xml , if you downloaded Sysmon or the config file then you would use different paths to execute and import the config file.

    Untitled

  5. Then you can repeat this process for every windows device that you want Sysmon on!

Log Ingestion

Now how do we centralize the logs to Kibana? We can do this with Elastic Beats, specifically WinLogBeat.

  1. First we will download Winlogbeat

    Untitled

  2. Once the zip file is downloaded, rename it to Winlogbeat and put it in Program Files

    Untitled