Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit df532f3

Browse files
Merge pull request #2575 from codeenigma/this_should_be_optional_still-PR-devel-2.x
This should be optional still pr devel 2.x
2 parents b7cc5b9 + 5cc30c0 commit df532f3

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

roles/aws/aws_admin_tools/defaults/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
aws_admin_tools_enable: true
21
aws_admin_tools:
32
runtime: "python3.12" # Version of pythn for functions
43
timeout: 20 # Global timeout for all functions

roles/debian/wazuh/files/custom_wazuh_rules.xml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
<!-- Custom rules -->
22
<group name="web,accesslog">
3-
<rule id="31151" level="10" frequency="200" timeframe="3600" overwrite="yes">
4-
<if_matched_sid>31101</if_matched_sid>
3+
<!-- Disable original 31151 rule -->
4+
<rule id="31151" level="0" overwrite="yes">
5+
<description>Disabled to prevent false positives.</description>
6+
</rule>
7+
8+
<!-- Match HTTP 401 Unauthorized responses using regex -->
9+
<rule id="41101" level="5">
10+
<if_sid>31151</if_sid>
11+
<regex type="pcre2">^\S+\s+-\s+(?!-)\S+\s+\[.*?\]\s+".*?"\s+401\s</regex>
12+
<description>HTTP 401 Unauthorized response</description>
13+
<group>web,accesslog</group>
14+
</rule>
15+
16+
<!-- Correlation rule for multiple 401s -->
17+
<rule id="41151" level="10" frequency="200" timeframe="3600">
18+
<if_matched_sid>41101</if_matched_sid>
519
<same_source_ip />
6-
<description>Multiple web server 400 error codes</description>
7-
<description>from the same source IP.</description>
20+
<description>Multiple 401 Unauthorized responses from the same source IP</description>
821
<mitre>
922
<id>T1595.002</id>
1023
</mitre>
11-
<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>
24+
<group>web_scan,recon</group>
1225
</rule>
1326
</group>
1427

15-
<group name="whitelist,">
28+
<group name="whitelist">
1629
<rule id="100102" level="0">
1730
<if_sid>521</if_sid>
1831
<match>scantem</match>

0 commit comments

Comments
 (0)