Hi Jose,
Thanks for providing me with useful information. I am needing to create a rule that detects changes on a specific directory and the second condition is Mode : realtime.
1st :
<group name="ossec,">
<rule id="100550" level="12">
<if_sid>550</if_sid>
<match>/my/file/path/</match>
<match>Mode: realtime</match>
<description>Integrity checksum changed</description>
<group>syscheck,pci_dss_11.5,gpg13_4.11,gdpr_II_5.1.f,</group>
</rule>
</group>
2nd :
<group name="ossec,">
<rule id="100550" level="6">
<if_sid>550</if_sid>
<match>
/my/file/path/ </match>
<description>Integrity checksum changed</description>
<group>syscheck,pci_dss_11.5,gpg13_4.11,gdpr_II_5.1.f,</group>
</rule>
</group>
<group name="ossec,">
<rule id="200550" level="12">
<if_sid>100550</if_sid>
<match>Mode: realtime</match>
<description>Integrity checksum changed</description>
<group>syscheck,pci_dss_11.5,gpg13_4.11,gdpr_II_5.1.f,</group>
</rule>
</group>
But the first case <match>Mode : realtime</match> doesn't seem to work. the second case doesn't even generate a warning on either rule 100550 or 200550. Can you help me understand why and how?
Thank you very much...