Hello Arav, thanks for reaching out.
I understand you want to create a rule with same behaviour as rule 40112 but only for specific IPs, and also it should lower the level to 10 for this IPs.
For this, a child of rule 40112 is to be created, and then a srcip filter will be added. (For this, I suggest you take a look at the
srcip field documentation for rules syntax. ) For every different IP, add a new srcip tag with the corresponding IP, as I show in the example below with IP1.IP1.IP1.IP1 and IP2.IP2.IP2.IP2
The resulting rule should be added in your wazuh manager /var/ossec/etc/rules/local_rules.xml path and should be something like this:
<rule id="99999" level="10" timeframe="240">
<if_sid>40112</if_sid>
<description>Multiple authentication failures followed: level 10 rule for specific IPs</description>
<srcip>IP1.IP1.IP1.IP1</srcip>
<srcip>IP2.IP2.IP2.IP2</srcip>
</rule>
I hope this helps
Best regards!