Hello, finally on Reddit a user (nazmur-sakib) help me tò fix
All logs go through this rule file. `0010-rules_config.xml` before matching other rules.
This rules in this files defines the category of the logs.
Due to the name of your custom rule file(00-sophosTest.xml) it comes before is rule file in alpha numeric order. And that is why it is saying it is missing(invalid) the catagory for this rule.
Change the rule file name to something like `0020-sophosTest.xml` that comes after 0010 and restart the manager and that should resolve the issue.
`mv /var/ossec/etc/rules/00-sophosTest.xml /var/ossec/etc/rules/0020-sophosTest.xml`
`systemctl restart wazuh-manager`