Hi,I'm monitoring my /var dir
<directories realtime="yes"
check_all="yes">/etc,/root,/var,/home,/tmp,/bin,/sbin,/usr</directories>
and I can use the <ignore> statement to ignore subfolders/files without problems.
Now I'm trying to ignore all .pdf|.odt|.jpg ecc ecc in a specific folder and
relative subfolders. So i wrote this rule:
<rule id="100004" level="0">
<if_matched_group>syscheck</if_matched_group>
<regex>^/var/lib/tomcat7/OFFLINE/\.*pdf$</regex>
<description>Ignore OFFLINE documents</description>
</rule>
but I still receive alerts like these:
Rule: 550 (level 7) -> 'Integrity checksum changed.'
Integrity checksum changed for: '/var/lib/tomcat7/OFFLINE/test.pdf'
Size changed from '54' to '94'
Old md5sum was: '9b26b668284325b02520b0f34281d63b'
New md5sum is : '22edde5ccec5fb0120b63cae421d013e'
or alerts for new files creations (i have overwritten rule 554 according to this
faq [0]).
How can I archieve my goal? And, is this approach (rule creation)
efficient (i want to add some or to specify multiple files extension in this rule) ?
I'm using ossec version 2.8.3-3jessie (from
http://ossec.wazuh.com/repos/apt/debian) and the wazuh's ruleset [1]
Thank you :)
[0]
http://ossec-docs.readthedocs.org/en/latest/manual/syscheck/#why-aren-t-new-files-creating-an-alert
[1]
https://github.com/wazuh/ossec-rules