Hello everyone
I have tried to use the field next to the “negate” on the following rule but apparently it does not work correctly, as the rule is completely disabled.
The version of wazuh I'm using is 4.7.0
I would like to know if I am doing something wrong, I have tried it two ways with no successful results.
Thanks for your help.
Test1
<rule id="31516" level="7" overwrite="yes">
<if_sid>31100</if_sid>
<url>.swp$|.bak$|/.htaccess|/server-status|/.ssh|/.history|/wallet.dat</url>
<field name="data.url" negate="yes">^test$</field>
<description>Suspicious URL access.</description>
<mitre>
<id>T1055</id>
</mitre>
<group>pci_dss_6.5,pci_dss_11.4,gdpr_IV_35.7.d,nist_800_53_SA.11,nist_800_53_SI.4,tsc_CC6.6,tsc_CC7.1,tsc_CC8.1,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
Test2
<rule id="31516" level="7" overwrite="yes">
<if_sid>31100</if_sid>
<url>.swp$|.bak$|/.htaccess|/server-status|/.ssh|/.history|/wallet.dat</url>
<field name="data.url" negate="yes">test</field>
<description>Suspicious URL access.</description>
<mitre>
<id>T1055</id>
</mitre>
<group>pci_dss_6.5,pci_dss_11.4,gdpr_IV_35.7.d,nist_800_53_SA.11,nist_800_53_SI.4,tsc_CC6.6,tsc_CC7.1,tsc_CC8.1,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>