Skip to content

Updating wazuh custom rules pr devel 2.x #2483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: devel-2.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions roles/debian/wazuh/files/custom_wazuh_rules.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
<!-- Local rules -->
<group name="local,">
<!-- Rule to detect a single 401 error -->
<rule id="100100" level="5">
<description>HTTP 401 response code</description>
<decoded_as>web-accesslog</decoded_as>
<match>" 401 </match>
</rule>

<!-- Frequency rule to detect multiple 401 errors -->
<rule id="100101" level="10" frequency="200" timeframe="3600">
<if_matched_sid>100100</if_matched_sid>
<!-- Custom rules -->
<group name="web,accesslog">
<rule id="31151" level="10" frequency="200" timeframe="3600" overwrite="yes">
<if_matched_sid>31101</if_matched_sid>
<same_source_ip />
<description>Multiple 401 errors from same source IP (possible brute force attempt)</description>
<options>no_full_log</options>
<description>Multiple web server 400 error codes</description>
<description>from the same source IP.</description>
<mitre>
<id>T1595.002</id>
</mitre>
<group>web_scan,recon,pci_dss_6.5,pci_dss_11.4,gdpr_IV_35.7.d,nist_800_53_SA.11,nist_800_53_SI.4,tsc_CC6.6,tsc_CC7.1,tsc_CC8.1,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
</group>

Expand Down