Hello David,
In the event you send, it is verified that the Wazuh Manager is processing the events that come from Amazon VPC flow and are matching with alerts. In this case with a level 4 rule alert.
By default, Wazuh will create an alert when a log matches a rule with a level higher or equal to 3.
The alerting rule is the rule with ID "80402". Since the integration is being done from the Manager. The reports will come from the agent with ID "000" which is the Manager by default.
These events can be checked from:
Wazuh Menu> Modules> Security Events.
Or also from:
Kibana> Discover> Searching by "Vpc".
Regarding your requirement, if you don't want to see the "Reject" events. What you could do in this case is to lower the level of this rule that Wazuh has by default. At a level less than 3 so that it is not sent to Kibana.
The default rules are located at: /var/ossec/ruleset/rules/. Specifically, those from Amazon in the file "0350-amazon_rules.xml". Rules should not be edited in that location because they are overwritten when you upgrade Wazuh manager or perform a Wazuh Ruleset update.
Custom changes to the ruleset must be done within files in the /var/ossec/etc/rules/ folder. In order to change a default rule, then the overwrite = "yes" option must be used when declaring the rule.
Here I'll explain to you the procedure:
1. Copy the existing rule "80402" from /var/ossec/ruleset/rules/0350-amazon_rules.xml
3. Paste it into /var/ossec/etc/rules/local_rules.xml
4. Change the level to a lower level than 3 and add the tag "overwrite=yes" the rule should look like this:
<group name="amazon,aws,">
<rule id="80402" level="2" overwrite="yes">
<if_sid>80400</if_sid>
<field name="aws.action">REJECT</field>
<description>AWS VPC Flow: [$(aws.action)] - Interface: $(aws.interface_id) - Protocol: $(aws.protocol)</description>
<group>aws_vpcflow,</group>
<options>no_full_log</options>
</rule>
</group>
Make sure to insert it before the closing </group> tag, as all rules must be located inside of a <group> section.
5.After this a restart of the Manager is necessary to save the changes:
Sytemctl restart wazuh-manager.service.
I leave you this guide as a reference:
https://documentation.wazuh.com/3.11/learning-wazuh/replace-stock-rule.htmlI hope this helps. Please let me know if you have any other questions!
Regards.
Alexander Bohorquez