-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathdeployui.json
More file actions
569 lines (569 loc) · 30.4 KB
/
deployui.json
File metadata and controls
569 lines (569 loc) · 30.4 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
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
{
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
"handler": "Microsoft.Azure.CreateUIDef",
"version": "0.1.2-preview",
"parameters": {
"config": {
"isWizard": true,
"basics": {
"description": "## Microsoft Sentinel Triage AssistanT (STAT) Deployment\nThe Microsoft Sentinel Triage AssistanT is designed to help build automated triages for Microsoft Sentinel Incidents to optimize the efficiency of your security operations. This deployment will allow you to deploy the necessary resources to use the STAT tool.\n ### Post Deployment \nAfter deploying this template, ensure to run the [GrantPermissions.ps1](https://github.com/briandelmsft/SentinelAutomationModules/blob/main/Deploy/GrantPermissions.ps1) script to grant permissions to the STAT modules. It may take up to 15 minutes for the permissions to become effective.",
"resourceGroup": {
"constraints": {
"validations": [
{
"permission": "Microsoft.Logic/workflows/write",
"message": "You must have permission to create and update Logic Apps"
},
{
"permission": "Microsoft.Web/sites/write",
"message": "You must have permission to create and update Azure Functions"
},
{
"permission": "Microsoft.Web/serverFarms/write",
"message": "You must have permission to create and update App Service Plans"
},
{
"permission": "Microsoft.Storage/storageAccounts/write",
"message": "You must have permission to create and update Storage Accounts"
}
]
}
},
"location": {
"label": "Location",
"toolTip": "Location for all resources",
"resourceTypes": [
"Microsoft.Logic",
"Microsoft.Web",
"Microsoft.Storage"
]
}
}
},
"basics": [],
"steps": [
{
"name": "namingStep",
"label": "Solution Naming",
"elements": [
{
"name": "namingTextBlock2",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Select how you want Azure resources named when deploying the Sentinel Triage AssistanT"
}
},
{
"name": "namingTextBlock3",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Using Default naming will create all elements with a prefix of stat and a random suffix, custom allows you to manually enter element names",
"link": {
"label": "Learn more",
"uri": "https://github.com/briandelmsft/SentinelAutomationModules/tree/main/Deploy"
}
}
},
{
"name": "naming",
"type": "Microsoft.Common.OptionsGroup",
"label": "Custom Naming for Azure Resource",
"defaultValue": "Default (recommended)",
"toolTip": "",
"constraints": {
"allowedValues": [
{
"label": "Default (recommended)",
"value": "default"
},
{
"label": "Custom",
"value": "custom"
}
],
"required": true
},
"visible": true
},
{
"name": "customNaming",
"type": "Microsoft.Common.Section",
"label": "Custom Names",
"elements": [
{
"name": "namingTextBlock",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Select how you want Azure resources named when deploying the Sentinel Triage AssistanT. Note: These names must be globally unique, but validation is not performed in this wizard."
}
},
{
"name": "statFunctionName",
"type": "Microsoft.Common.TextBox",
"label": "STAT Function Name",
"placeholder": "stat-uniquestring",
"defaultValue": "",
"toolTip": "Provide a globally unique name for your STAT function",
"constraints": {
"required": true,
"validations": [
{
"regex": "^[aA-zZ0-9-]{2,60}$",
"message": "Only alphanumerica characters and hyphens are allowed. The value must be 2-60 characters long and globally unique."
}
]
},
"visible": true
},
{
"name": "statStorageName",
"type": "Microsoft.Common.TextBox",
"label": "STAT Storage Account Name",
"placeholder": "statuniquestring",
"defaultValue": "",
"toolTip": "Provide a globally unique name for your STAT Storage Account",
"constraints": {
"required": true,
"validations": [
{
"regex": "^[a-z0-9]{3,24}$",
"message": "Only lowercase characters and numbers are allowed. The value must be 3-24 characters long and globally unique"
}
]
},
"visible": true
},
{
"name": "statConnectorName",
"type": "Microsoft.Common.TextBox",
"label": "STAT Connector Name",
"placeholder": "",
"defaultValue": "SentinelTriageAssistantv2",
"toolTip": "STAT Connector name as seen in resource group",
"constraints": {
"required": true,
"validations": [
{
"regex": "^[aA-zZ0-9-]{2,60}$",
"message": "Only alphanumerica characters and hyphens are allowed. The value must be 2-60 characters long."
}
]
},
"visible": true
},
{
"name": "statConnectorDisplayName",
"type": "Microsoft.Common.TextBox",
"label": "STAT Connector Display Name",
"placeholder": "",
"defaultValue": "STAT v2",
"toolTip": "STAT Connector name as seen in Azure Logic Apps",
"constraints": {
"required": true,
"validations": [
{
"regex": "^[aA-zZ0-9- ]{2,60}$",
"message": "Only alphanumerica characters, spaces and hyphens are allowed. The value must be 2-60 characters long."
}
]
},
"visible": true
}
],
"visible": "[if(equals(steps('namingStep').naming, 'custom'), true, false)]"
}
]
},
{
"name": "identityStep",
"label": "Identity Configuration",
"elements": [
{
"name": "idTextBlock2",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Microsoft Sentinel Triage AssistanT can authenticate to resources and APIs in a few different ways. While we recommend using System Assigned managed identities, certain scenarios such as MSSP usage may have different authentication requirements"
}
},
{
"name": "idType",
"type": "Microsoft.Common.OptionsGroup",
"label": "Identity Type",
"defaultValue": "System Assigned Managed Identity",
"toolTip": "",
"constraints": {
"allowedValues": [
{
"label": "System Assigned Managed Identity",
"value": "system"
},
{
"label": "User Assigned Managed Identity",
"value": "user"
},
{
"label": "Service Principal",
"value": "sp"
}
],
"required": true
},
"visible": true
},
{
"name": "tenantId",
"type": "Microsoft.Common.TextBox",
"label": "Azure AD Tenant Id",
"placeholder": "",
"defaultValue": "",
"toolTip": "The AAD Tenant Id where your identity will reside",
"constraints": {
"required": true
},
"visible": false
},
{
"name": "userId",
"type": "Microsoft.Common.Section",
"label": "User Assigned Managed Identity",
"elements": [
{
"name": "useridTextBlock",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Select an existing user assigned managed identity. The identity must already exist and will not be created by this setup."
}
},
{
"name": "clientId",
"type": "Microsoft.Common.TextBox",
"label": "User Assigned Managed Identity Client Id",
"placeholder": "",
"defaultValue": "",
"toolTip": "The Client Id of your User Assigned Managed Identity for use with STAT",
"constraints": {
"required": true
},
"visible": true
},
{
"name": "userIdResId",
"type": "Microsoft.Common.TextBox",
"label": "User Assigned Identity Resource Id",
"placeholder": "",
"defaultValue": "",
"toolTip": "The Azure Resource Manager Resource Id of the User Assigned Managed Identity for use with STAT",
"constraints": {
"required": true
},
"visible": true
}
],
"visible": "[if(equals(steps('identityStep').idType, 'user'), true, false)]"
},
{
"name": "spId",
"type": "Microsoft.Common.Section",
"label": "Service Principal Information",
"elements": [
{
"name": "spTextBlock",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Enter the information for your existing Service Principal"
}
},
{
"name": "clientId",
"type": "Microsoft.Common.TextBox",
"label": "Service Principal Client Id",
"placeholder": "",
"defaultValue": "",
"toolTip": "The Client Id of your Service Principal for use with STAT",
"constraints": {
"required": true
},
"visible": true
},
{
"name": "spSecret",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "Service Principal Secret",
"confirmPassword": "Service Principal Secret"
},
"toolTip": "The selected Service Principals secret",
"constraints": {
"required": true
},
"options": {
"hideConfirmation": true
},
"visible": true
}
],
"visible": "[if(equals(steps('identityStep').idType, 'sp'), true, false)]"
}
]
},
{
"name": "apiStep",
"label": "API Endpoint Configuration",
"elements": [
{
"name": "apiTextBlock2",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Select the API endpoints for the Microsoft Sentinel Triage AssistanT"
}
},
{
"name": "apiTextBlock3",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Using Default endpoints will configure STAT to use the Commercial instance of both Azure and Office 365. To use any other instances, select Custom.",
"link": {
"label": "Learn more",
"uri": "https://github.com/briandelmsft/SentinelAutomationModules/tree/main/Deploy"
}
}
},
{
"name": "api",
"type": "Microsoft.Common.OptionsGroup",
"label": "API Endpoint Type",
"defaultValue": "Default (recommended)",
"toolTip": "",
"constraints": {
"allowedValues": [
{
"label": "Default (recommended)",
"value": "default"
},
{
"label": "Custom",
"value": "custom"
}
],
"required": true
},
"visible": true
},
{
"name": "customApi",
"type": "Microsoft.Common.Section",
"label": "Custom API Endpoints",
"elements": [
{
"name": "namingTextBlock",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Enter the API endpoint you would like to use to access each service"
}
},
{
"name": "graphApi",
"type": "Microsoft.Common.TextBox",
"label": "Microsoft Graph API",
"placeholder": "graph.microsoft.com",
"defaultValue": "graph.microsoft.com",
"toolTip": "Microsoft Graph API Endpoint",
"constraints": {
"required": true,
"validations": [
{
"regex": "(^(?![hH][tT][tT][pP][sS]?:\/\/)).*",
"message": "Enter only the hostname, such as graph.microsoft.com, do not include the https:// prefix."
}
]
},
"visible": true
},
{
"name": "armApi",
"type": "Microsoft.Common.TextBox",
"label": "Azure Resource Manager API",
"placeholder": "management.azure.com",
"defaultValue": "management.azure.com",
"toolTip": "Azure Resource Manager API Endpoint",
"constraints": {
"required": true,
"validations": [
{
"regex": "(^(?![hH][tT][tT][pP][sS]?:\/\/)).*",
"message": "Enter only the hostname, such as management.azure.com, do not include the https:// prefix."
}
]
},
"visible": true
},
{
"name": "laApi",
"type": "Microsoft.Common.TextBox",
"label": "Azure Log Analytics API",
"placeholder": "api.loganalytics.io",
"defaultValue": "api.loganalytics.io",
"toolTip": "Azure Log Analytics API Endpoint",
"constraints": {
"required": true,
"validations": [
{
"regex": "(^(?![hH][tT][tT][pP][sS]?:\/\/)).*",
"message": "Enter only the hostname, such as api.loganalytics.io, do not include the https:// prefix."
}
]
},
"visible": true
},
{
"name": "m365Api",
"type": "Microsoft.Common.TextBox",
"label": "Microsoft 365 Defender API",
"placeholder": "api.security.microsoft.com",
"defaultValue": "api.security.microsoft.com",
"toolTip": "Microsoft 365 Defender API Endpoint",
"constraints": {
"required": true,
"validations": [
{
"regex": "(^(?![hH][tT][tT][pP][sS]?:\/\/)).*",
"message": "Enter only the hostname, such as api.security.microsoft.com, do not include the https:// prefix."
}
]
},
"visible": true
},
{
"name": "mdeApi",
"type": "Microsoft.Common.TextBox",
"label": "Microsoft Defender for Endpoint API",
"placeholder": "api.securitycenter.microsoft.com",
"defaultValue": "api.securitycenter.microsoft.com",
"toolTip": "Microsoft Defender for Endpoint API Endpoint",
"constraints": {
"required": true,
"validations": [
{
"regex": "(^(?![hH][tT][tT][pP][sS]?:\/\/)).*",
"message": "Enter only the hostname, such as api.securitycenter.microsoft.com, do not include the https:// prefix."
}
]
},
"visible": true
}
],
"visible": "[if(equals(steps('apiStep').api, 'custom'), true, false)]"
}
]
},
{
"name": "additionalStep",
"label": "Additional Options",
"elements": [
{
"name": "samples",
"type": "Microsoft.Common.Section",
"label": "Sample Playbooks",
"elements": [
{
"name": "DeployBasicSamplePlaybook",
"type": "Microsoft.Common.CheckBox",
"label": "Deploy the Basic Sample Incident Triage Playbook",
"toolTip": "",
"constraints": {},
"visible": true
},
{
"name": "BasicSamplePlaybookName",
"type": "Microsoft.Common.TextBox",
"label": "Basic Sample Triage Playbook Name",
"placeholder": "",
"defaultValue": "Sample-STAT-Triage",
"toolTip": "",
"constraints": {
"required": true,
"validations": []
},
"visible": "[steps('additionalStep').samples.DeployBasicSamplePlaybook]"
}
],
"visible": true
},
{
"name": "advanced",
"type": "Microsoft.Common.Section",
"label": "Advanced Settings",
"elements": [
{
"name": "showAdvanced",
"type": "Microsoft.Common.CheckBox",
"label": "Show Advanced Settings",
"toolTip": "",
"constraints": {},
"visible": true
},
{
"name": "functionPackage",
"type": "Microsoft.Common.TextBox",
"label": "STAT Function ZIP Package",
"placeholder": "",
"defaultValue": "https://github.com/briandelmsft/STAT-Function/releases/download/v2.2.0/stat.zip",
"toolTip": "Full path to the STAT Function ZIP deployment package",
"constraints": {
"required": true,
"validations": []
},
"visible": "[steps('additionalStep').advanced.showAdvanced]"
},
{
"name": "deploymentBranch",
"type": "Microsoft.Common.TextBox",
"label": "Deploy From Github Branch",
"placeholder": "",
"defaultValue": "main",
"toolTip": "Name of Github branch to deploy from",
"constraints": {
"required": true,
"validations": []
},
"visible": "[steps('additionalStep').advanced.showAdvanced]"
}
],
"visible": true
}
]
}
],
"outputs": {
"NamingType": "[steps('namingStep').naming]",
"STATFunctionName": "[coalesce(steps('namingStep').customNaming.statFunctionName, 'statfunction')]",
"STATStorageName": "[coalesce(steps('namingStep').customNaming.statStorageName, 'statstorage')]",
"STATConnectorName": "[coalesce(steps('namingStep').customNaming.statConnectorName, 'SentinelTriageAssistantv2')]",
"STATConnectorDisplayName": "[coalesce(steps('namingStep').customNaming.statConnectorDisplayName, 'STAT v2')]",
"storageAccountType": "Standard_LRS",
"FunctionPackage": "[coalesce(steps('additionalStep').advanced.functionPackage, 'https://github.com/briandelmsft/STAT-Function/releases/download/v2.2.0/stat.zip')]",
"MSGraphEndpoint": "[coalesce(steps('apiStep').customApi.graphApi,'graph.microsoft.com')]",
"M365Endpoint": "[coalesce(steps('apiStep').customApi.m365Api,'api.security.microsoft.com')]",
"MDEEndpoint": "[coalesce(steps('apiStep').customApi.mdeApi,'api.securitycenter.microsoft.com')]",
"LogAnalyticsEndpoint": "[coalesce(steps('apiStep').customApi.laApi,'api.loganalytics.io')]",
"AzureResourceManagerEndpoint": "[coalesce(steps('apiStep').customApi.armApi,'management.azure.com')]",
"ServicePrincipalClientId": "[coalesce(steps('identityStep').spId.clientId,steps('identityStep').userId.clientId, 'none')]",
"UserIdentityResourceId": "[coalesce(steps('identityStep').userId.userIdResId, 'none')]",
"ServicePrincipalSecret": "[coalesce(steps('identityStep').spId.spSecret, 'none')]",
"identityType": "[steps('identityStep').idType]",
"DeploymentBranch": "[coalesce(steps('additionalStep').advanced.deploymentBranch, 'main')]",
"DeployBasicSample": "[steps('additionalStep').samples.DeployBasicSamplePlaybook]",
"BasicSamplePlaybookName": "[coalesce(steps('additionalStep').samples.BasicSamplePlaybookName,'Sample-STAT-Triage')]",
"location": "[location()]"
}
}
}