Configure Wazuh Alerts

We have to start with Wazuh config file. our intension is to configure mimikatz alert to the Wazuh server.

You can find the Wazuh agent configurations under the C:\Program Files (x86)\ossec-agent

We are trying to edit the file called ossec.conf

ossec.conf file

Before we are going to do any modifications, we have to backup the ossec.conf file. I will simply go ahead and make a copy and name that file as “ ossec-backp.conf.”

After you open the ossec.conf file just scroll down and then you will see the log analysis file tag.

That part is the important part to us for this demo.

ossec.conf file log analysis tag

In here what we are going to do is copy the local file tag and past under the local file tag. We want add the Sysmon (which we have installed initially) as our application location.

ossec.conf Local File Tag

We have to replace that application name with the Sysmon application name. How we can find the name ?

It is relatively easy, please follow the following path to find the real name.

Windows even viewer — >Application and services —> Microsoft —> Windows —> Sysmon —>operational —> right click on the operational go to properties and copy the full name

Sysmon Application Path
Sysmon Application Path
Sysmon Application Full Name

Now paste the copied Full name under the application location in ossc.config file.

Also I'll remove the duplicated application name security and system file tags and save it. This means it will no longer forward the event logs to the Wazuh manager.

ossec.conf File Configurations

Next step is restart the Wazuh service in our client PC ( same PC). go ahead and open the windows services— > find the Wazuh service and restart.

Wazuh Agent Service Restart

If you have changed the configuration, then you must restart the service.

Come back to the Wazuh dashboard, open security events and go inside. Then click events and under events search Sysmon. Some times this might take time to retrieve the Sysmon logs. Be patient and wait until you receive the logs.

Wazuh Sysmon Logs

Our next step is to download the Mimikatz to the client machine. (Windows 10 VM). Make sure that you have disabled the windows defender before download the Mimikatz, cause that will detect and delete the Mimikatz.

once downloaded, extract the Mimikatz like this

Mimikatz

Last updated