-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAzure_Sentinel_analytics_rules.json
287 lines (287 loc) · 17 KB
/
Azure_Sentinel_analytics_rules.json
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/6e286e95-abb3-410a-ac34-e5db56aab419')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/6e286e95-abb3-410a-ac34-e5db56aab419')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "Azure Firewall : Detect Threat Intelligence DestinationIp from IDPS Event",
"description": "Detected Threat Intelligence DestinationIp Event from Azure Firewall IDPS.",
"severity": "Low",
"enabled": true,
"query": "let LocalNetworks=dynamic([\r\n \"10.0.0.0/8\",\r\n \"124.211.12.0/24\",\r\n \"124.215.217.0/24\",\r\n \"125.29.25.0/24\",\r\n \"134.144.0.0/16\",\r\n \"150.92.0.0/16\",\r\n \"151.175.0.0/16\",\r\n \"152.150.0.0/16\",\r\n \"156.31.0.0/16\",\r\n \"156.149.0.0/16\",\r\n \"158.161.0.0/16\",\r\n \"172.16.0.0/12\",\r\n \"192.168.0.0/16\"\r\n]);\r\nlet ioc_lookBack = 14d; // Look back 14 days for threat intelligence indicators\r\nAZFWIdpsSignature\r\n| where TimeGenerated > ago(1h)\r\n| extend SInt = ipv4_is_in_any_range(SourceIp,LocalNetworks)\r\n| extend DInt = ipv4_is_in_any_range(DestinationIp,LocalNetworks)\r\n| extend Direction = case(\r\n SInt == \"true\" and DInt == \"false\" , \"Outbound\",\r\n SInt == \"false\" and DInt == \"true\" , \"Inbound\",\r\n SInt == \"true\" and DInt == \"true\" , \"Internal\",\r\n \"Global\")\r\n| join kind=innerunique (\r\n ThreatIntelligenceIndicator\r\n | where TimeGenerated >= ago(ioc_lookBack)\r\n | summarize LatestIndicatorTime = arg_max(TimeGenerated, *) by IndicatorId\r\n | where Active == true and ExpirationDateTime > now()\r\n )\r\n on $left.DestinationIp == $right.NetworkSourceIP\r\n| project-away TenantId,Type, _ResourceId, SInt, DInt",
"queryFrequency": "PT1H",
"queryPeriod": "P14D",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT5H",
"suppressionEnabled": false,
"startTimeUtc": null,
"tactics": [],
"techniques": [],
"alertRuleTemplateName": null,
"incidentConfiguration": {
"createIncident": true,
"groupingConfiguration": {
"enabled": true,
"reopenClosedIncident": false,
"lookbackDuration": "PT1H",
"matchingMethod": "AllEntities",
"groupByEntities": [],
"groupByAlertDetails": [],
"groupByCustomDetails": []
}
},
"eventGroupingSettings": {
"aggregationKind": "AlertPerResult"
},
"alertDetailsOverride": {
"alertDisplayNameFormat": "{{Description}} from {{SourceIp}} to {{DestinationIp}}",
"alertDescriptionFormat": "{{Description}}. Please check Signature ID:{{SignatureId}}.\nTraffic direction is {{{Direction}}.",
"alertDynamicProperties": []
},
"customDetails": {
"Direction": "Direction"
},
"entityMappings": [
{
"entityType": "IP",
"fieldMappings": [
{
"identifier": "Address",
"columnName": "SourceIp"
}
]
},
{
"entityType": "IP",
"fieldMappings": [
{
"identifier": "Address",
"columnName": "DestinationIp"
}
]
}
],
"sentinelEntitiesMappings": null,
"templateVersion": null
}
},
{
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/f38b15d1-9313-4607-b8e1-cf6f4dcf7f5d')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/f38b15d1-9313-4607-b8e1-cf6f4dcf7f5d')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "Azure Firewall : Detect Threat Intelligence SourceIp from IDPS Event",
"description": "Detected Threat Intelligence SourceIp Event from Azure Firewall IDPS.",
"severity": "Low",
"enabled": true,
"query": "let LocalNetworks=dynamic([\r\n \"10.0.0.0/8\",\r\n \"124.211.12.0/24\",\r\n \"124.215.217.0/24\",\r\n \"125.29.25.0/24\",\r\n \"134.144.0.0/16\",\r\n \"150.92.0.0/16\",\r\n \"151.175.0.0/16\",\r\n \"152.150.0.0/16\",\r\n \"156.31.0.0/16\",\r\n \"156.149.0.0/16\",\r\n \"158.161.0.0/16\",\r\n \"172.16.0.0/12\",\r\n \"192.168.0.0/16\"\r\n]);\r\nlet ioc_lookBack = 14d; // Look back 14 days for threat intelligence indicators\r\nAZFWIdpsSignature\r\n| where TimeGenerated > ago(1h)\r\n| extend SInt = ipv4_is_in_any_range(SourceIp,LocalNetworks)\r\n| extend DInt = ipv4_is_in_any_range(DestinationIp,LocalNetworks)\r\n| extend Direction = case(\r\n SInt == \"true\" and DInt == \"false\" , \"Outbound\",\r\n SInt == \"false\" and DInt == \"true\" , \"Inbound\",\r\n SInt == \"true\" and DInt == \"true\" , \"Internal\",\r\n \"Global\")\r\n| join kind=innerunique (\r\n ThreatIntelligenceIndicator\r\n | where TimeGenerated >= ago(ioc_lookBack)\r\n | summarize LatestIndicatorTime = arg_max(TimeGenerated, *) by IndicatorId\r\n | where Active == true and ExpirationDateTime > now()\r\n )\r\n on $left.SourceIp == $right.NetworkSourceIP\r\n| project-away TenantId,Type, _ResourceId, SInt, DInt",
"queryFrequency": "PT1H",
"queryPeriod": "P14D",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT5H",
"suppressionEnabled": false,
"startTimeUtc": null,
"tactics": [],
"techniques": [],
"alertRuleTemplateName": null,
"incidentConfiguration": {
"createIncident": true,
"groupingConfiguration": {
"enabled": true,
"reopenClosedIncident": false,
"lookbackDuration": "PT1H",
"matchingMethod": "AllEntities",
"groupByEntities": [],
"groupByAlertDetails": [],
"groupByCustomDetails": []
}
},
"eventGroupingSettings": {
"aggregationKind": "AlertPerResult"
},
"alertDetailsOverride": {
"alertDisplayNameFormat": "{{Description}} from {{SourceIp}} to {{DestinationIp}}",
"alertDescriptionFormat": "{{Description}}. Please check Signature ID:{{SignatureId}}.\nTraffic direction is {{{Direction}}.",
"alertDynamicProperties": []
},
"customDetails": {
"Direction": "Direction"
},
"entityMappings": [
{
"entityType": "IP",
"fieldMappings": [
{
"identifier": "Address",
"columnName": "SourceIp"
}
]
},
{
"entityType": "IP",
"fieldMappings": [
{
"identifier": "Address",
"columnName": "DestinationIp"
}
]
}
],
"sentinelEntitiesMappings": null,
"templateVersion": null
}
},
{
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/49187b06-a981-425a-a6ec-f5d93f59f934')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/49187b06-a981-425a-a6ec-f5d93f59f934')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "Azure Firewall : Detect Several Medium Severity from IDPS Event",
"description": "Detected several Medium Severity (Severity : 2) Event from Azure Firewall IDPS.",
"severity": "Medium",
"enabled": true,
"query": "let LocalNetworks=dynamic([\r\n \"10.0.0.0/8\",\r\n \"124.211.12.0/24\",\r\n \"124.215.217.0/24\",\r\n \"125.29.25.0/24\",\r\n \"134.144.0.0/16\",\r\n \"150.92.0.0/16\",\r\n \"151.175.0.0/16\",\r\n \"152.150.0.0/16\",\r\n \"156.31.0.0/16\",\r\n \"156.149.0.0/16\",\r\n \"158.161.0.0/16\",\r\n \"172.16.0.0/12\",\r\n \"192.168.0.0/16\"\r\n]);\r\nlet thresholds = 10;\r\nAZFWIdpsSignature\r\n| where TimeGenerated > ago(1h)\r\n| extend SInt = ipv4_is_in_any_range(SourceIp,LocalNetworks)\r\n| extend DInt = ipv4_is_in_any_range(DestinationIp,LocalNetworks)\r\n| extend Direction = case(\r\n SInt == \"true\" and DInt == \"false\" , \"Outbound\",\r\n SInt == \"false\" and DInt == \"true\" , \"Inbound\",\r\n SInt == \"true\" and DInt == \"true\" , \"Internal\",\r\n \"Global\")\r\n| where Severity == \"2\"\r\n| summarize count() by SourceIp,DestinationIp,DestinationPort,Direction,SignatureId,Description\r\n| where count_ > thresholds",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT5H",
"suppressionEnabled": false,
"startTimeUtc": null,
"tactics": [],
"techniques": [],
"alertRuleTemplateName": null,
"incidentConfiguration": {
"createIncident": true,
"groupingConfiguration": {
"enabled": true,
"reopenClosedIncident": false,
"lookbackDuration": "PT1H",
"matchingMethod": "AllEntities",
"groupByEntities": [],
"groupByAlertDetails": [],
"groupByCustomDetails": []
}
},
"eventGroupingSettings": {
"aggregationKind": "AlertPerResult"
},
"alertDetailsOverride": {
"alertDisplayNameFormat": "{{Description}} from {{SourceIp}} to {{DestinationIp}}",
"alertDescriptionFormat": "{{Description}}. Please check Signature ID:{{SignatureId}}.\nTraffic direction is {{{Direction}}.",
"alertDynamicProperties": []
},
"customDetails": {
"Direction": "Direction"
},
"entityMappings": [
{
"entityType": "IP",
"fieldMappings": [
{
"identifier": "Address",
"columnName": "SourceIp"
}
]
},
{
"entityType": "IP",
"fieldMappings": [
{
"identifier": "Address",
"columnName": "DestinationIp"
}
]
}
],
"sentinelEntitiesMappings": null,
"templateVersion": null
}
},
{
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/04997854-623d-42c6-9e8f-e34ba888b299')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/04997854-623d-42c6-9e8f-e34ba888b299')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "Azure Firewall : Detect High Severity from IDPS Event",
"description": "Detected High Severity (Severity : 1) Event from Azure Firewall IDPS.",
"severity": "High",
"enabled": true,
"query": "let LocalNetworks=dynamic([\r\n \"10.0.0.0/8\",\r\n \"124.211.12.0/24\",\r\n \"124.215.217.0/24\",\r\n \"125.29.25.0/24\",\r\n \"134.144.0.0/16\",\r\n \"150.92.0.0/16\",\r\n \"151.175.0.0/16\",\r\n \"152.150.0.0/16\",\r\n \"156.31.0.0/16\",\r\n \"156.149.0.0/16\",\r\n \"158.161.0.0/16\",\r\n \"172.16.0.0/12\",\r\n \"192.168.0.0/16\"\r\n]);\r\nAZFWIdpsSignature\r\n| where TimeGenerated > ago(1h)\r\n| extend SInt = ipv4_is_in_any_range(SourceIp,LocalNetworks)\r\n| extend DInt = ipv4_is_in_any_range(DestinationIp,LocalNetworks)\r\n| extend Direction = case(\r\n SInt == \"true\" and DInt == \"false\" , \"Outbound\",\r\n SInt == \"false\" and DInt == \"true\" , \"Inbound\",\r\n SInt == \"true\" and DInt == \"true\" , \"Internal\",\r\n \"Global\")\r\n| where Severity == \"1\"\r\n| project-away TenantId,Type, _ResourceId, SInt, DInt",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT5H",
"suppressionEnabled": false,
"startTimeUtc": null,
"tactics": [],
"techniques": [],
"alertRuleTemplateName": null,
"incidentConfiguration": {
"createIncident": true,
"groupingConfiguration": {
"enabled": true,
"reopenClosedIncident": false,
"lookbackDuration": "PT1H",
"matchingMethod": "AllEntities",
"groupByEntities": [],
"groupByAlertDetails": [],
"groupByCustomDetails": []
}
},
"eventGroupingSettings": {
"aggregationKind": "AlertPerResult"
},
"alertDetailsOverride": {
"alertDisplayNameFormat": "{{Description}} from {{SourceIp}} to {{DestinationIp}}",
"alertDescriptionFormat": "{{Description}}. Please check Signature ID:{{SignatureId}}.\nTraffic direction is {{{Direction}}.",
"alertDynamicProperties": []
},
"customDetails": {
"Direction": "Direction"
},
"entityMappings": [
{
"entityType": "IP",
"fieldMappings": [
{
"identifier": "Address",
"columnName": "SourceIp"
}
]
},
{
"entityType": "IP",
"fieldMappings": [
{
"identifier": "Address",
"columnName": "DestinationIp"
}
]
}
],
"sentinelEntitiesMappings": null,
"templateVersion": null
}
}
]
}