Dear Team
I have integrated the huawei firewall with wazuh, Logs are coming and can be view using tcpdump. See Picture below
But the logs are not showing on GUI/Web Wazuh.
I have created Decoders and rule for the below mentioned log sample.
kindly help me ASAP.
Decoders
<decoder name="huawei-custom">
<prematch>^Msg:\s\w\w\w\s\d\d\s\d\d\d\d \d\d:\d\d:\d\d SITFW6390DCP01FWEDGE </prematch>
</decoder>
<decoder name="huawei-custom1">
<parent>huawei-custom</parent>
<regex>source-ip="(\S+)"|source-ip=(\S+)</regex>
<order>srcip</order>
</decoder>
<decoder name="huawei-custom1">
<parent>huawei-custom</parent>
<regex offset="after_parent">source-port="(\S+)"|source-port=(\S+)</regex>
<order>srcport</order>
</decoder>
<decoder name="huawei-custom1">
<parent>huawei-custom</parent>
<regex offset="after_parent">destination-ip="(\S+)"|destination-ip=(\S+)</regex>
<order>dstip</order>
</decoder>
<decoder name="huawei-custom1">
<parent>huawei-custom</parent>
<regex offset="after_parent">destination-port="(\S+)"|destination-port=(\S+)</regex>
<order>dstport</order>
</decoder>
<decoder name="huawei-custom1">
<parent>huawei-custom</parent>
<regex offset="after_parent">destination-zone="(\S+)"|destination-zone=(\S+)</regex>
<order>dst-zone</order>
</decoder>
<decoder name="huawei-custom1">
<parent>huawei-custom</parent>
<regex offset="after_parent">source-zone="(\S+)"|source-zone=(\S+)</regex>
<order>src-zone</order>
</decoder>
<decoder name="huawei-custom1">
<parent>huawei-custom</parent>
<regex offset="after_parent">rule-name="(\S+)"|rule-name=(\S+)</regex>
<order>FW-RuleName</order>
</decoder>
<decoder name="huawei-custom1">
<parent>huawei-custom</parent>
<regex offset="after_parent">application-name="(\S+)"|application-name=(\S+)</regex>
<order>Application Name</order>
</decoder>
<decoder name="huawei-custom1">
<parent>huawei-custom</parent>
<regex offset="after_parent">vsys="(\S+)"|vsys=(\S+)</regex>
<order>VSYS</order>
</decoder>
<decoder name="huawei-custom1">
<parent>huawei-custom</parent>
<regex offset="after_parent">SITFW"(\S+)"|SITFW(\S+)</regex>
<order>devid</order>
</decoder>
Rules:
<group name="network_security,pci_dss,gdpr,hipaa,nist_800_53,tsc_CC7.3">
<rule id="100003" level="7">
<decoded_as>huawei-custom</decoded_as>
<description>Huawei Rules.</description>
</rule>
</group>
<group name="network_security,pci_dss,gdpr,hipaa,nist_800_53,tsc_CC7.3">
<rule id="100004" level="7">
<decoded_as>huawei-custom</decoded_as>
<field name="application-name=">SMB</field>
<description>Huawei Rule Triggered</description>
</rule>
</group>
Sample Log
Msg: Jun 21 2023 13:57:52 SITFW6390DCP01FWEDGE %%01POLICY/6/POLICYPERMIT(l):vsys=public, protocol=6, source-ip=10.150.21.21, source-port=54172, destination-ip=191.233.241.31, destination-port=443, time=2023/6/21 10:57:52, source-zone=trust, destination-zone=untrust, application-name=HTTPS, rule-name=P_Fx_UNTRUST.\0x00
Note: Looking forward to your reply ASAP..
----------------------------------------------------------------------------------