Parsers for modsecurity?

456 views
Skip to first unread message

Blason R

unread,
Apr 2, 2021, 2:41:11 AM4/2/21
to Wazuh mailing list
Hi Team,

Wondering if any parsers or rules are written for modsecurity audit logs to monitor application level attacks? I am seeing if those are readily available or do I need to write those from scratch?

Jonathan Martín Valera

unread,
Apr 5, 2021, 2:52:54 AM4/5/21
to Wazuh mailing list

Hi,

Well, first of all, what I would do would be to test the desired log in the wazuh-logtest tool to see if the log is decoded correctly and matches any rules. You can find the related information here https://documentation.wazuh.com/current/user-manual/capabilities/wazuh-logtest/how-it-works.html#use-cases-test-log-from-wazuh-logtest-tool

If the log is not decoded or has not matched any rule, then it will be necessary to create the necessary decoder and/or rule that fits your use case.

Here are links to help you in the process of creating decoders and rules:

• Creating decoders and rules from scratch: https://wazuh.com/blog/creating-decoders-and-rules-from-scratch/
• Sibling decoders: flexible extraction of information: https://wazuh.com/blog/sibling-decoders-flexible-extraction-of-information/
• Custom rules and decoders: https://documentation.wazuh.com/4.0/user-manual/ruleset/custom.html
• Testing decoders and rules: https://documentation.wazuh.com/4.0/user-manual/ruleset/testing.html

On the other hand, you can also take a look at the wazuh-ruleset repository where you will find the decoders and rules that wazuh comes with by default. https://github.com/wazuh/wazuh-ruleset

https://github.com/wazuh/wazuh-ruleset/blob/master/rules/0260-nginx_rules.xml#L85

Note: The files in that repository will be migrated in future versions to the wazuh/wazuh repository itself https://github.com/wazuh/wazuh/tree/master/ruleset.

If you need more help, you can share some log and alert conditions about your use case, and I can check it.

Best regards.

Blason R

unread,
Apr 6, 2021, 1:01:28 AM4/6/21
to Jonathan Martín Valera, Wazuh mailing list
Thanks man !!

--
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/0a3455d9-ce85-433d-8ebd-33a12f07d4f0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages