-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook-Select_App-ID_Payload_Results.yml
758 lines (757 loc) · 16.6 KB
/
playbook-Select_App-ID_Payload_Results.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
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
id: 0be8c783-78e7-43ec-89ea-2bfa19592e3b
inputs: []
name: Select App-ID Payload Results
outputs: []
starttaskid: "0"
tasks:
"0":
id: "0"
ignoreworker: false
nexttasks:
'#none#':
- "2"
note: false
quietmode: 0
separatecontext: false
skipunavailable: false
task:
brand: ""
id: 4cb7a2c8-618b-4408-8060-170cb70e374a
iscommand: false
name: ""
version: -1
taskid: 4cb7a2c8-618b-4408-8060-170cb70e374a
timertriggers: []
type: start
view: |-
{
"position": {
"x": 450,
"y": 50
}
}
"1":
form:
description: ""
expired: false
questions:
- defaultrows: []
fieldassociated: ""
gridcolumns: []
id: "0"
label: ""
labelarg:
simple: 'Select Ascii Results:'
options: []
optionsarg:
- simple: |-
Ascii Result 1:
${incident.asciiresult1}
- simple: |-
Ascii Result 2:
${incident.asciiresult2}
- simple: |-
Ascii Result 3:
${incident.asciiresult3}
- simple: |-
Ascii Result 4:
${incident.asciiresult4}
- simple: |-
Ascii Result 5:
${incident.asciiresult5}
- simple: |-
Ascii Result 6:
${incident.asciiresult6}
- simple: |-
Ascii Result 7:
${incident.asciiresult7}
- simple: |-
Ascii Result 8:
${incident.asciiresult8}
- simple: |-
Ascii Result 9:
${incident.asciiresult9}
- simple: |-
Ascii Result 10:
${incident.asciiresult10}
placeholder: ""
readonly: false
required: false
tooltip: ""
type: multiSelect
sender: ""
title: 'Select Ascii Results:'
totalanswers: 0
id: "1"
ignoreworker: false
message:
bcc: null
body: null
cc: null
format: ""
methods: []
subject: null
timings:
completeafterreplies: 1
retriescount: 2
retriesinterval: 360
to: null
nexttasks:
'#none#':
- "3"
note: false
quietmode: 0
separatecontext: false
skipunavailable: false
task:
brand: ""
id: 3e4f9a5a-53a2-49be-8c8a-d84c2f912bb6
iscommand: false
name: Select Ascii Results
type: collection
version: -1
taskid: 3e4f9a5a-53a2-49be-8c8a-d84c2f912bb6
timertriggers: []
type: collection
view: |-
{
"position": {
"x": 150,
"y": 680
}
}
"2":
id: "2"
ignoreworker: false
nexttasks:
'#none#':
- "7"
note: false
quietmode: 0
scriptarguments:
all:
simple: "yes"
index: {}
key: {}
keysToKeep: {}
subplaybook: {}
separatecontext: false
skipunavailable: false
task:
brand: ""
description: Delete field from context
id: a0075f26-5dfa-4cde-8fcc-677235b0707d
iscommand: false
name: Clear Context
script: DeleteContext
type: regular
version: -1
taskid: a0075f26-5dfa-4cde-8fcc-677235b0707d
timertriggers: []
type: regular
view: |-
{
"position": {
"x": 450,
"y": 170
}
}
"3":
form:
description: ""
expired: false
questions:
- defaultrows: []
fieldassociated: ""
gridcolumns: []
id: "0"
label: ""
labelarg:
simple: 'Select Hex Results:'
options: []
optionsarg:
- simple: |-
Hex Result 1:
${incident.hexresult1}
- simple: |-
Hex Result 2:
${incident.hexresult2}
- simple: |-
Hex Result 3:
${incident.hexresult3}
- simple: |-
Hex Result 4:
${incident.hexresult4}
- simple: |-
Hex Result 5:
${incident.hexresult5}
- simple: |-
Hex Result 6:
${incident.hexresult6}
- simple: |-
Hex Result 7:
${incident.hexresult7}
- simple: |-
Hex Result 8:
${incident.hexresult8}
- simple: |-
Hex Result 9:
${incident.hexresult9}
- simple: |-
Hex Result 10:
${incident.hexresult10}
placeholder: ""
readonly: false
required: false
tooltip: ""
type: multiSelect
sender: ""
title: 'Select Hex Results:'
totalanswers: 0
id: "3"
ignoreworker: false
message:
bcc: null
body: null
cc: null
format: ""
methods: []
subject: null
timings:
completeafterreplies: 1
retriescount: 2
retriesinterval: 360
to: null
nexttasks:
'#none#':
- "4"
note: false
quietmode: 0
separatecontext: false
skipunavailable: false
task:
brand: ""
id: af5e4315-aea0-480c-8739-61b798b422ad
iscommand: false
name: Select Hex Results
type: collection
version: -1
taskid: af5e4315-aea0-480c-8739-61b798b422ad
timertriggers: []
type: collection
view: |-
{
"position": {
"x": 150,
"y": 855
}
}
"4":
id: "4"
ignoreworker: false
nexttasks:
'#none#':
- "5"
note: false
quietmode: 0
separatecontext: false
skipunavailable: false
task:
brand: ""
id: 6c026129-b678-4b5e-8510-373de8a6e6f2
iscommand: false
name: Build Custom AppID
script: c6273e6d-1f5e-4835-81f6-7688efae4c82
type: regular
version: -1
taskid: 6c026129-b678-4b5e-8510-373de8a6e6f2
timertriggers: []
type: regular
view: |-
{
"position": {
"x": 150,
"y": 1020
}
}
"5":
id: "5"
ignoreworker: false
nexttasks:
'#none#':
- "6"
note: false
quietmode: 0
scriptarguments:
action:
simple: set
category: {}
cmd: {}
command: {}
dst: {}
element:
simple: ${appidxml}
from: {}
job-id: {}
key: {}
log-type: {}
pcap-id: {}
period: {}
query: {}
reportname: {}
reporttype: {}
search-time: {}
serialno: {}
target: {}
to: {}
type:
simple: config
using:
simple: rlemm_labfw
where: {}
xpath:
simple: ${appidxpath}
separatecontext: false
skipunavailable: false
task:
brand: Panorama
description: Run any command supported in the API.
id: 515c9e44-4c39-4865-8f05-aee3c334bfcf
iscommand: true
name: Push Change
script: Panorama|||panorama
type: regular
version: -1
taskid: 515c9e44-4c39-4865-8f05-aee3c334bfcf
timertriggers: []
type: regular
view: |-
{
"position": {
"x": 150,
"y": 1170
}
}
"6":
id: "6"
ignoreworker: false
nexttasks:
'#none#':
- "9"
note: false
quietmode: 0
scriptarguments:
using:
simple: rlemm_labfw
separatecontext: false
skipunavailable: false
task:
brand: Panorama
description: Commits a configuration to Palo Alto Firewall or Panorama, but
does not validate if the commit was successful. Committing to Panorama does
not push the configuration to the Firewalls. To push the configuration, run
the panorama-push-to-device-group command.
id: dfda4d88-7ff9-42f5-8f5e-e325e4e8f12b
iscommand: true
name: Commit Changes
script: Panorama|||panorama-commit
type: regular
version: -1
taskid: dfda4d88-7ff9-42f5-8f5e-e325e4e8f12b
timertriggers: []
type: regular
view: |-
{
"position": {
"x": 150,
"y": 1330
}
}
"7":
id: "7"
ignoreworker: false
nexttasks:
"No":
- "13"
"Yes":
- "14"
note: false
quietmode: 0
separatecontext: false
skipunavailable: false
task:
brand: ""
id: eb407407-7547-4781-8a52-ced2a62d6448
iscommand: false
name: Build AppID (Yes/No)
type: condition
version: -1
taskid: eb407407-7547-4781-8a52-ced2a62d6448
timertriggers: []
type: condition
view: |-
{
"position": {
"x": 450,
"y": 315
}
}
"8":
id: "8"
ignoreworker: false
note: false
quietmode: 0
separatecontext: false
skipunavailable: false
task:
brand: ""
id: 4bbc4ffe-0bd5-4a60-8402-954a3b5a1231
iscommand: false
name: Done
type: title
version: -1
taskid: 4bbc4ffe-0bd5-4a60-8402-954a3b5a1231
timertriggers: []
type: title
view: |-
{
"position": {
"x": 830,
"y": 720
}
}
"9":
id: "9"
ignoreworker: false
loop:
exitCondition: ""
iscommand: false
max: 100
wait: 1
nexttasks:
'#none#':
- "10"
note: false
quietmode: 0
scriptarguments:
AdditionalPollingCommandArgNames:
simple: using
AdditionalPollingCommandArgValues:
simple: rlemm_labfw
Ids:
complex:
accessor: JobID
filters:
- - left:
iscontext: true
value:
simple: Panorama.Commit.Status
operator: isEqualString
right:
value:
simple: Pending
root: Panorama.Commit
Interval:
simple: "1"
PollingCommandArgName:
simple: job_id
PollingCommandName:
simple: panorama-commit-status
Timeout:
simple: "60"
dt:
simple: Panorama.Commit(val.Status != 'Completed' && val.Status != 'Failed').JobID
separatecontext: true
skipunavailable: false
task:
brand: ""
description: |-
Use this playbook as a sub-playbook to block execution of the master playbook until a remote action is complete.
This playbook implements polling by continuously running the command in Step \#2 until the operation completes.
The remote action should have the following structure:
1. Initiate the operation.
2. Poll to check if the operation completed.
3. (optional) Get the results of the operation.
id: db811876-3fbd-4d37-8e18-7b8491602490
iscommand: false
name: GenericPolling
playbookId: GenericPolling
type: playbook
version: -1
taskid: db811876-3fbd-4d37-8e18-7b8491602490
timertriggers: []
type: playbook
view: |-
{
"position": {
"x": 150,
"y": 1490
}
}
"10":
id: "10"
ignoreworker: false
nexttasks:
'#none#':
- "11"
note: false
quietmode: 0
scriptarguments:
job_id:
simple: ${Panorama.Commit.JobID}
using:
simple: rlemm_labfw
separatecontext: false
skipunavailable: false
task:
brand: Panorama
description: Returns commit status for a configuration.
id: 711feb4a-11c0-4773-88dc-b05f7bda7ad0
iscommand: true
name: panorama-commit-status
script: Panorama|||panorama-commit-status
type: regular
version: -1
taskid: 711feb4a-11c0-4773-88dc-b05f7bda7ad0
timertriggers: []
type: regular
view: |-
{
"position": {
"x": 150,
"y": 1640
}
}
"11":
conditions:
- condition:
- - left:
iscontext: true
value:
simple: Panorama.Commit.Status
operator: isEqualString
right:
value:
simple: Completed
label: "yes"
id: "11"
ignoreworker: false
nexttasks:
"yes":
- "12"
note: false
quietmode: 0
separatecontext: false
skipunavailable: false
task:
brand: ""
id: 3493d8f3-7a39-4fac-8c59-8d136d1163ec
iscommand: false
name: Was Commit Successful
type: condition
version: -1
taskid: 3493d8f3-7a39-4fac-8c59-8d136d1163ec
timertriggers: []
type: condition
view: |-
{
"position": {
"x": 150,
"y": 1880
}
}
"12":
id: "12"
ignoreworker: false
nexttasks:
'#none#':
- "8"
note: false
quietmode: 0
scriptarguments:
assetid: {}
closeNotes:
simple: AppID created for ${incident.appidname}
closeReason: {}
code42alerttype: {}
emailclassification: {}
id:
simple: ${incident.id}
phishingconfirmationstatus: {}
phishingsubtype: {}
separatecontext: false
skipunavailable: false
task:
brand: Builtin
description: commands.local.cmd.close.inv
id: e4ee1105-cc3c-477b-832a-657a1e0d1cfa
iscommand: true
name: Close Incident
script: Builtin|||closeInvestigation
type: regular
version: -1
taskid: e4ee1105-cc3c-477b-832a-657a1e0d1cfa
timertriggers: []
type: regular
view: |-
{
"position": {
"x": 820,
"y": 1750
}
}
"13":
id: "13"
ignoreworker: false
nexttasks:
'#none#':
- "8"
note: false
quietmode: 0
scriptarguments:
assetid: {}
closeNotes:
simple: Admin declined AppID for ${incident.appidname}
closeReason: {}
code42alerttype: {}
emailclassification: {}
id:
simple: ${incident.id}
phishingconfirmationstatus: {}
phishingsubtype: {}
separatecontext: false
skipunavailable: false
task:
brand: Builtin
description: commands.local.cmd.close.inv
id: 6e4696de-9929-42a5-8a00-0bf3b8418a28
iscommand: true
name: Close Incident
script: Builtin|||closeInvestigation
type: regular
version: -1
taskid: 6e4696de-9929-42a5-8a00-0bf3b8418a28
timertriggers: []
type: regular
view: |-
{
"position": {
"x": 830,
"y": 520
}
}
"14":
conditions:
- condition:
- - left:
iscontext: true
value:
simple: incident.appidname
operator: match
right:
value:
simple: \S+
- - left:
iscontext: true
value:
simple: incident.appidsignaturescope
operator: isNotEmpty
- - left:
iscontext: true
value:
simple: incident.appidsignaturename
operator: match
right:
value:
simple: \S+
- - left:
iscontext: true
value:
simple: incident.patternmatchcontext
operator: isNotEmpty
- - left:
iscontext: true
value:
simple: incident.appidcategory
operator: isNotEmpty
- - left:
iscontext: true
value:
simple: incident.appidsubcategory
operator: isNotEmpty
- - left:
iscontext: true
value:
simple: incident.appidtechnology
operator: isNotEmpty
- - left:
iscontext: true
value:
simple: incident.appidrisk
operator: isNotEmpty
label: "yes"
id: "14"
ignoreworker: false
nexttasks:
'#default#':
- "15"
"yes":
- "1"
note: false
quietmode: 0
separatecontext: false
skipunavailable: false
task:
brand: ""
id: 4210c61f-8b05-4757-8505-2989115b56fe
iscommand: false
name: Check for Required Fields
type: condition
version: -1
taskid: 4210c61f-8b05-4757-8505-2989115b56fe
timertriggers: []
type: condition
view: |-
{
"position": {
"x": 150,
"y": 520
}
}
"15":
id: "15"
ignoreworker: false
note: false
quietmode: 0
separatecontext: false
skipunavailable: false
task:
brand: ""
id: f2c03f22-1b51-4605-860c-c435b08d0587
iscommand: false
name: Please complete required fields
type: title
version: -1
taskid: f2c03f22-1b51-4605-860c-c435b08d0587
timertriggers: []
type: title
view: |-
{
"position": {
"x": -360,
"y": 460
}
}
version: -1
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 1925,
"width": 1570,
"x": -360,
"y": 50
}
}
}