--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/6d664290-3a98-493a-9806-cb8b8ac62ab9n%40googlegroups.com.

Hello Jean-Marie,
To silence rules 5501 and 5715 for user bewing, you can use the following rule:
Add it to the customs rules file: /var/ossec/etc/rules/local_rules.xml and customize it according to your needs.
As this rule is level 0, no alerts will be logged. To test the rule, you can use /var/ossec/bin/wazuh-logtest:
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/37f3c2b7-757a-45a8-8615-eb990ce914ffn%40googlegroups.com.
Hello Jean-Marie,
The custom rule filters rules 5501 "PAM: Login session opened" and 5715 "sshd: authentication success" for user bewing. Besides these two rules, are there other alerts that you want to filter for this user?
Note that this change will only affect future events, not the old alerts.
To test the new rule, you should paste the corresponding ssh log in /var/ossec/bin/wazuh-logtest . For example,
Gives the following result:
If you want to see the path that the analysis engine takes to analyze the log you can use the verbose option /var/ossec/bin/wazuh-logtest-legacy -v . In this case, you can see how the log first matches rule 5501 and then it matches our custom rule 100002.
Let us know if you have any questions.
Cheers, Sandra
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/5a70b19d-fd77-41f4-9ef7-2034c68d2165n%40googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/d106435c-2d12-4108-a076-14bfcef5a503n%40googlegroups.com.