-
Notifications
You must be signed in to change notification settings - Fork 15
/
Block_URL_-_Generic.yml
603 lines (602 loc) · 13 KB
/
Block_URL_-_Generic.yml
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
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
id: block_url_-_generic
version: 1
contentitemexportablefields:
contentitemfields:
packID: CommonPlaybooks
packName: Common Playbooks
itemVersion: 2.2.1
fromServerVersion: 5.0.0
toServerVersion: ""
definitionid: ""
vcShouldKeepItemLegacyProdMachine: false
name: Block URL - Generic
description: |-
This playbook blocks malicious URLs using all integrations that are enabled.
Supported integrations for this playbook:
* Palo Alto Networks Minemeld
* Palo Alto Networks PAN-OS
* Zscaler
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 59b1a1c8-41a6-4b2f-8bb4-24e4bd1036d8
type: start
task:
id: 59b1a1c8-41a6-4b2f-8bb4-24e4bd1036d8
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "8"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 377.5,
"y": 40
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"2":
id: "2"
taskid: 5ba81cb8-30c1-4d31-8af6-45f937d1d58b
type: title
task:
id: 5ba81cb8-30c1-4d31-8af6-45f937d1d58b
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 377.5,
"y": 1150
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"5":
id: "5"
taskid: 21e74ef4-5adb-44a4-874b-2bedbd59a051
type: title
task:
id: 21e74ef4-5adb-44a4-874b-2bedbd59a051
version: -1
name: Block URLs
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "16"
- "17"
- "18"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 377.5,
"y": 425
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"8":
id: "8"
taskid: 6685a431-51a7-4bf8-8679-5d079a8dca85
type: condition
task:
id: 6685a431-51a7-4bf8-8679-5d079a8dca85
version: -1
name: Is there a URL to block?
description: Verify that the playbook input includes at least one URL to block.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "2"
"yes":
- "5"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
simple: inputs.URL
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 377.5,
"y": 175
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"11":
id: "11"
taskid: 4576e191-0508-4140-8ed3-0503e6232d9b
type: playbook
task:
id: 4576e191-0508-4140-8ed3-0503e6232d9b
version: -1
name: Add Indicator to Miner - Palo Alto MineMeld
playbookName: Add Indicator to Miner - Palo Alto MineMeld
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
separatecontext: true
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 0
view: |-
{
"position": {
"x": 110,
"y": 710
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: true
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"12":
id: "12"
taskid: 4270c78b-8b35-44c8-832a-11b82fbbd9c4
type: condition
task:
id: 4270c78b-8b35-44c8-832a-11b82fbbd9c4
version: -1
name: Is Zscaler enabled?
description: Verify that there is a valid instance of Zscaler enabled.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "2"
"yes":
- "13"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: modules
filters:
- - operator: isEqualString
left:
value:
simple: modules.brand
iscontext: true
right:
value:
simple: Zscaler
ignorecase: true
- - operator: isEqualString
left:
value:
simple: modules.state
iscontext: true
right:
value:
simple: active
ignorecase: true
accessor: brand
iscontext: true
ignorecase: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 810,
"y": 730
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"13":
id: "13"
taskid: 6c17067d-ac81-454b-8c4b-77e38811443e
type: regular
task:
id: 6c17067d-ac81-454b-8c4b-77e38811443e
version: -1
name: Block URL with Zscaler
description: Block the URLS using Zscaler.
script: '|||zscaler-blacklist-url'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "2"
scriptarguments:
url:
complex:
root: inputs.URL
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 810,
"y": 980
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"14":
id: "14"
taskid: fa3391b8-020e-4f53-8576-7445bf741452
type: playbook
task:
id: fa3391b8-020e-4f53-8576-7445bf741452
version: -1
name: PAN-OS - Block URL - Custom URL Category
playbookName: PAN-OS - Block URL - Custom URL Category
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
separatecontext: true
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 0
view: |-
{
"position": {
"x": -800,
"y": 980
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: true
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"15":
id: "15"
taskid: 7cc51964-5d19-48ce-8bc3-7403438e6dfe
type: playbook
task:
id: 7cc51964-5d19-48ce-8bc3-7403438e6dfe
version: -1
name: PAN-OS - Block IP and URL - External Dynamic List
playbookName: PAN-OS - Block IP and URL - External Dynamic List
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
separatecontext: true
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 0
view: |-
{
"position": {
"x": -310,
"y": 980
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: true
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"16":
id: "16"
taskid: 258ee49c-7ea8-4d92-8054-dd0844396174
type: title
task:
id: 258ee49c-7ea8-4d92-8054-dd0844396174
version: -1
name: MineMeld
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "11"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 110,
"y": 570
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"17":
id: "17"
taskid: e92be57f-773d-496a-80f0-b1bc292b5355
type: title
task:
id: e92be57f-773d-496a-80f0-b1bc292b5355
version: -1
name: PAN-OS
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "19"
- "20"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -560,
"y": 570
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"18":
id: "18"
taskid: 18d080a9-f73c-4394-8f59-8cb602fd1604
type: title
task:
id: 18d080a9-f73c-4394-8f59-8cb602fd1604
version: -1
name: Zscaler
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "12"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 810,
"y": 570
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"19":
id: "19"
taskid: 663d099d-dde1-4521-8ff2-18fabf06d99e
type: condition
task:
id: 663d099d-dde1-4521-8ff2-18fabf06d99e
version: -1
name: Use EDL?
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "2"
"yes":
- "15"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
simple: inputs.EDLServerIP
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": -310,
"y": 710
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"20":
id: "20"
taskid: 61ddf243-2502-4c31-8ae3-9333c488d492
type: condition
task:
id: 61ddf243-2502-4c31-8ae3-9333c488d492
version: -1
name: Use Custom URL Category?
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "2"
"yes":
- "14"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
simple: inputs.type
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": -800,
"y": 710
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
system: true
view: |-
{
"linkLabelsPosition": {
"12_2_#default#": 0.48,
"8_2_#default#": 0.43
},
"paper": {
"dimensions": {
"height": 1175,
"width": 1990,
"x": -800,
"y": 40
}
}
}
inputs:
- key: URLBlacklistMiner
value: {}
required: false
description: The name of the URL block list Miner in Minemeld.
playbookInputQuery: null
- key: URL
value: {}
required: false
description: Array of malicious URLs to block.
playbookInputQuery: null
- key: URLListName
value:
simple: Demisto Remediation - URL EDL
required: false
description: URL list from the instance context with which to override the remote
file.
playbookInputQuery: null
- key: LogForwarding
value: {}
required: false
description: Log Forwarding object name.
playbookInputQuery: null
- key: EDLServerIP
value: {}
required: false
description: EDL server IP address.
playbookInputQuery: null
- key: AutoCommit
value:
simple: "No"
required: false
description: |-
This input establishes whether to commit the configuration automatically.
Yes - Commit automatically.
No - Commit manually.
playbookInputQuery: null
- key: CustomURLCategory
value:
simple: Demisto Remediation - Malicious URLs
required: false
description: Custom URL Category name.
playbookInputQuery: null
- key: type
value: {}
required: false
description: Custom URL category type. Insert "URL List"/ "Category Match".
playbookInputQuery: null
- key: device-group
value: {}
required: false
description: Device group for the Custom URL Category (Panorama instances).
playbookInputQuery: null
- key: categories
value: {}
required: false
description: The list of categories. Relevant from PAN-OS v9.x.
playbookInputQuery: null
outputs: []