-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal_rules.xml
More file actions
108 lines (95 loc) · 4.76 KB
/
local_rules.xml
File metadata and controls
108 lines (95 loc) · 4.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!-- Wazuh custom rules -->
<!-- WIZ Exercise - Attack Chain Detection Rules -->
<!-- Custom rules for detecting demo attack patterns with HIGH/CRITICAL severity -->
<group name="attack_chain,">
<!-- Phase 1: SSM Parameter Enumeration (Recon) -->
<rule id="100001" level="10">
<if_sid>80200</if_sid>
<field name="aws.eventName">DescribeParameters</field>
<field name="aws.sourceIPAddress" negate="yes">204.111.196.200</field>
<description>HIGH: AWS SSM Parameter Enumeration Detected (WIZ Attack Chain Phase 1 - Recon)</description>
<group>aws,recon,attack_chain,pci_dss_10.6.1,</group>
</rule>
<!-- Phase 1: EC2 Instance Enumeration (Recon) -->
<rule id="100002" level="8">
<if_sid>80200</if_sid>
<field name="aws.eventName">DescribeInstances</field>
<field name="aws.sourceIPAddress" negate="yes">204.111.196.200</field>
<description>MEDIUM: AWS EC2 Instance Enumeration (WIZ Attack Chain Phase 1 - Recon)</description>
<group>aws,recon,attack_chain,</group>
</rule>
<!-- Phase 2: Unauthenticated S3 Bucket Listing -->
<rule id="100003" level="12">
<if_sid>80200</if_sid>
<field name="aws.eventName">ListBucket</field>
<field name="aws.userIdentity.type">AWSAccount</field>
<field name="aws.sourceIPAddress" negate="yes">204.111.196.200</field>
<description>HIGH: Unauthenticated S3 Bucket Listing (WIZ Attack Chain Phase 2 - Exfil)</description>
<group>aws,exfiltration,attack_chain,pci_dss_10.6.1,</group>
</rule>
<!-- Phase 2: Unauthenticated S3 Object Download -->
<rule id="100004" level="14">
<if_sid>80200</if_sid>
<field name="aws.eventName">GetObject</field>
<field name="aws.userIdentity.type">AWSAccount</field>
<field name="aws.sourceIPAddress" negate="yes">204.111.196.200</field>
<description>CRITICAL: Unauthenticated S3 Object Download (WIZ Attack Chain Phase 2 - Data Exfiltration)</description>
<group>aws,exfiltration,attack_chain,pci_dss_10.6.1,gdpr_IV_35.7.d,</group>
</rule>
<!-- Phase 3: SSH Private Key Retrieval from SSM -->
<rule id="100005" level="15">
<if_sid>80200</if_sid>
<field name="aws.eventName">GetParameter</field>
<regex>ssh-private-key</regex>
<field name="aws.sourceIPAddress" negate="yes">204.111.196.200</field>
<description>CRITICAL: SSH Private Key Retrieved from SSM Parameter Store (WIZ Attack Chain Phase 3 - Credential Theft)</description>
<group>aws,credential_theft,attack_chain,pci_dss_8.2.1,</group>
</rule>
<!-- Phase 4: Overprivileged IAM - MongoDB role doing EC2 enumeration -->
<rule id="100006" level="12">
<if_sid>80200</if_sid>
<field name="aws.eventName">DescribeInstances</field>
<regex>mongodb-role</regex>
<field name="aws.sourceIPAddress" negate="yes">204.111.196.200</field>
<description>HIGH: EC2 Enumeration from MongoDB Instance Role (WIZ Attack Chain Phase 4 - Privilege Abuse)</description>
<group>aws,privilege_escalation,attack_chain,pci_dss_10.2.5,</group>
</rule>
<!-- Phase 4: IMDS Credential Theft - curl to metadata service -->
<rule id="100010" level="15">
<if_group>syslog</if_group>
<match>169.254.169.254</match>
<match>security-credentials</match>
<description>CRITICAL: IMDS Credential Theft Attempt Detected (WIZ Attack Chain Phase 4 - Privilege Escalation)</description>
<group>imds,credential_theft,attack_chain,pci_dss_8.2.1,</group>
</rule>
<!-- Phase 3: SSH Lateral Movement - Accepted SSH to MongoDB -->
<rule id="100011" level="10">
<if_sid>5715</if_sid>
<match>mongodb</match>
<description>HIGH: SSH Lateral Movement to MongoDB Instance (WIZ Attack Chain Phase 3)</description>
<group>ssh,lateral_movement,attack_chain,pci_dss_10.2.4,</group>
</rule>
<!-- Phase 3: SSH Lateral Movement - SSH from Red Team instance -->
<rule id="100012" level="10">
<if_sid>5715</if_sid>
<match>redteam</match>
<description>HIGH: SSH Connection from Red Team Instance (WIZ Attack Chain Phase 3)</description>
<group>ssh,lateral_movement,attack_chain,</group>
</rule>
<!-- Generic: Suspicious AWS API call patterns -->
<rule id="100020" level="8">
<if_sid>80200</if_sid>
<field name="aws.eventName">GetSecretValue</field>
<field name="aws.sourceIPAddress" negate="yes">204.111.196.200</field>
<description>MEDIUM: AWS Secrets Manager Access Detected</description>
<group>aws,credential_access,attack_chain,</group>
</rule>
<!-- Generic: AWS GuardDuty findings (if integrated) -->
<rule id="100021" level="12">
<if_sid>80200</if_sid>
<field name="aws.eventSource">guardduty.amazonaws.com</field>
<field name="aws.sourceIPAddress" negate="yes">204.111.196.200</field>
<description>HIGH: AWS GuardDuty Finding Detected</description>
<group>aws,guardduty,attack_chain,</group>
</rule>
</group>