s0p4L1n3 / Graylog_Content_Pack_Windows_Security

MIT License
6 stars 1 forks source link

Windows Security Content Pack for Graylog

Tested with Winlogbeat & Filebeat 7.12.1.0 / Windows 2022 / Windows 10 / Graylog 5.2.2

The Content Pack should be compatible with all Graylog 5.2.X version. This content pack contains configuration for Windows 10 Security Events, for Windows Server 2022 Security Event, For Active Directory, For Windows DNS & DHCP Server, for DFS Server.

Note this was built using filebeat and Winlogbeat as the log exporter. No inputs extractor were used, only pipeline rules.

Do not need additionnal Grok pattern, uses the default like WORD/GREEDYDATA etc..

Includes

Not included

You need to download manually the CSV.

Add it to your Graylog server in /srv. If different location, modify the content_pack.json to change location path (CTRL + F and replace all occurences with the desired path)

If you do not add it, some Dashboards will not display all infos, these CSV are used for Lookup Table to enrich data.

Requirements

Agents Configuration (Requirement)

Be careful, by default Graylog Sidecar 1.5.0 embedd two bad binary version of Filebeat and Winlogbeat which are 8.9.0 and OpenSearch 2.X is not compatible ! The latest compatible version is 7.12.1. Replace the two binary with the 7.12.1 version.

Download filebeat archive and extract .exe

Download winlogbeat archive and extract .exe

Create your Graylog Sidecar token API (Requirement)

You will need to generate an API Token for your Sidecar agent to be able to communicate with Graylog. Follow this Graylog guide if you don't know how.

Add the Winlogbeat modules to your Sidecar folder agent. (Requirement)

By default, Graylog Sidecar does not embedd the Winlogbeat modules

C:\Program Files\Graylog\sidecar\module
image

Download the module folder on this project and add it to your computer/server.

Visit for more info

Edit Windows-Security-Content-Pack.json (Requirement)

I've made some Dashboard based on Server names to filter in or out some event logged. You will need to adjust the filter based on your infrastructure.

Create Index for each stream

By default, the Content Pack can't embeed Index, I recommand you to create one in order to separate Filebeat and Winlogbeat and so on. I don't think you want to have all data in the same index. It is like eating all the meal ingredient at the same time, it's difficult to recognize the taste of each.

image

And change the Index for the Winlogbeat stream.

index_winlogbeat

Repeat the process for Filebeat.

Screenshots

image image

image

image

image

image

image

image

image

And so on...

References