I have a centralized agent conf that only watches the following dirs on Linux:
/etc/shadow, /etc/group, /etc/password, etc/sudoers
This is a group config that I assign to agents and the agent.conf gets merged with the default ossec.conf.
The problem is that the default ossec.conf file installed with the agent watches /etc/. In the documentation it states if paths are used... all paths are merged in the merge file. That means instead of overwriting the paths I wish to inspect with syscheck it simply adds to them.
Am I going to have to edit all my deployed agent's ossec.conf files and remove the default syscheck directories? Do I need to start installing agents with a custom ossec.conf that doesn't include the default paths? What is best practice here? Thanks.
- Cliftyman