Page 1 of 1

How to configure ossec.conf in windows agent for directory/file monitoring

Posted: Mon Jul 05, 2021 7:40 am
by krpiyush
Can anyone help me with how to configure ossec.conf in windows agent so that we can add a file or directory to be monitor.
for e.g: I want to monitor all the changes in the E drive.

i tried this,using this syntax <directories check_all="yes">E:\.</directories> but no-luck.

Thanks much.

Re: How to configure ossec.conf in windows agent for directory/file monitoring

Posted: Tue Jul 06, 2021 9:58 am
by cponton
<directories check_all="yes">E:\.</directories>

The \ should be a / so can you give that a try please?

<directories check all="yes">e:/<directories>

Re: How to configure ossec.conf in windows agent for directory/file monitoring

Posted: Wed Jul 07, 2021 5:09 am
by krpiyush
Hi, Cponton,

I tried the suggested syntax still, not working. It not even showing the changes for the default directory, not sure but It only shows the changes for the REGISTRY like below only.

+HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient
+HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W32Time\SecureTimeLimits\RunTime
+HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W32Time\SecureTimeLimits
+HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W32Time\Config

Re: How to configure ossec.conf in windows agent for directory/file monitoring

Posted: Wed Jul 07, 2021 3:55 pm
by mikeshinn
Whats your process for testing the agent?

Re: How to configure ossec.conf in windows agent for directory/file monitoring

Posted: Thu Jul 08, 2021 1:05 am
by krpiyush
Hi Mikeshinn,

For testing the agent in the windows machine, I tried to change the content of the file(which is added for the monitoring) by writing into it or deleting some content from it.

It is working fine in the Linux-based machine.

Mikeshinn, It is very helpful, if you can tell us, is this(file/directory monitoring) feature supported by the Windows OSSEC agent ??

Re: How to configure ossec.conf in windows agent for directory/file monitoring

Posted: Thu Jul 08, 2021 9:12 am
by scott
Yeah, works just fine on Windows, will detect and report changes in real time on windows for files and registries