forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-PolySwarm-Test.yml
930 lines (930 loc) · 19.2 KB
/
playbook-PolySwarm-Test.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
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
id: PolySwarm-Test
version: -1
name: PolySwarm-Test
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: d10bea22-663c-4598-8fe0-a1ef2be558ce
type: start
task:
id: d10bea22-663c-4598-8fe0-a1ef2be558ce
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 130
}
}
note: false
timertriggers: []
ignoreworker: false
"1":
id: "1"
taskid: b3d2492f-2fe1-46c5-8a4a-9629c18c456b
type: regular
task:
id: b3d2492f-2fe1-46c5-8a4a-9629c18c456b
version: -1
name: PolySwarm `ip`
description: Queries Polyswarm for IP reputation info
script: PolySwarm|||ip
type: regular
iscommand: true
brand: PolySwarm
nexttasks:
'#none#':
- "2"
scriptarguments:
fullResponse: {}
ip:
simple: 8.8.8.8
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 280
}
}
note: false
timertriggers: []
ignoreworker: false
"2":
id: "2"
taskid: c9f93017-e7c8-4115-89df-aef65fd527eb
type: condition
task:
id: c9f93017-e7c8-4115-89df-aef65fd527eb
version: -1
name: Task Test
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "21"
"yes":
- "3"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: PolySwarm.Positives
iscontext: true
right:
value:
simple: "0"
view: |-
{
"position": {
"x": 450,
"y": 460
}
}
note: false
timertriggers: []
ignoreworker: false
"3":
id: "3"
taskid: 72695860-9274-4847-8e14-979590741a45
type: regular
task:
id: 72695860-9274-4847-8e14-979590741a45
version: -1
name: PolySwarm `polyswarm-get-report`
description: Lookup results from UUID
script: PolySwarm|||polyswarm-get-report
type: regular
iscommand: true
brand: PolySwarm
nexttasks:
'#none#':
- "4"
scriptarguments:
scan_uuid:
simple: ${PolySwarm.Scan_UUID}
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 635
}
}
note: false
timertriggers: []
ignoreworker: false
"4":
id: "4"
taskid: e5483828-abda-4986-8df8-da77c32efd67
type: condition
task:
id: e5483828-abda-4986-8df8-da77c32efd67
version: -1
name: Task Test
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "22"
"yes":
- "30"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: PolySwarm.Positives
iscontext: true
right:
value:
simple: "0"
view: |-
{
"position": {
"x": 450,
"y": 800
}
}
note: false
timertriggers: []
ignoreworker: false
"7":
id: "7"
taskid: dd4710e2-89c8-4732-8f2d-b0e8e7698784
type: condition
task:
id: dd4710e2-89c8-4732-8f2d-b0e8e7698784
version: -1
name: Task Test
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "23"
"yes":
- "8"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: PolySwarm.Positives
iscontext: true
right:
value:
simple: "0"
view: |-
{
"position": {
"x": 450,
"y": 1170
}
}
note: false
timertriggers: []
ignoreworker: false
"8":
id: "8"
taskid: 85a84803-26eb-4d42-8ace-14bcd428358f
type: regular
task:
id: 85a84803-26eb-4d42-8ace-14bcd428358f
version: -1
name: PolySwarm `domain`
description: Queries Polyswarm for Domain reputation info
script: PolySwarm|||domain
type: regular
iscommand: true
brand: PolySwarm
nexttasks:
'#none#':
- "9"
scriptarguments:
domain:
simple: google.com
fullResponse: {}
long: {}
retries: {}
sampleSize: {}
threshold: {}
wait: {}
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 1390
}
}
note: false
timertriggers: []
ignoreworker: false
"9":
id: "9"
taskid: 50a057dc-ba6d-45ea-8db8-53b7886cc9db
type: condition
task:
id: 50a057dc-ba6d-45ea-8db8-53b7886cc9db
version: -1
name: Task Test
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "24"
"yes":
- "10"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: PolySwarm.Positives
iscontext: true
right:
value:
simple: "0"
view: |-
{
"position": {
"x": 450,
"y": 1570
}
}
note: false
timertriggers: []
ignoreworker: false
"10":
id: "10"
taskid: 0fb862f0-b228-4911-828f-52e2dba728fe
type: regular
task:
id: 0fb862f0-b228-4911-828f-52e2dba728fe
version: -1
name: url-scan
description: Load a URL to Polyswarm and retrieve analysis results
script: PolySwarm|||url-scan
type: regular
iscommand: true
brand: PolySwarm
nexttasks:
'#none#':
- "11"
scriptarguments:
url:
simple: https://google.com
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 1780
}
}
note: false
timertriggers: []
ignoreworker: false
"11":
id: "11"
taskid: e5c9b9c3-2823-46c1-8d23-642bda0594bd
type: condition
task:
id: e5c9b9c3-2823-46c1-8d23-642bda0594bd
version: -1
name: Task Test
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "25"
"yes":
- "14"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: PolySwarm.Positives
iscontext: true
right:
value:
simple: "0"
view: |-
{
"position": {
"x": 450,
"y": 1960
}
}
note: false
timertriggers: []
ignoreworker: false
"12":
id: "12"
taskid: 0bc5354a-2ad4-47bc-82b3-b3d3176379f9
type: regular
task:
id: 0bc5354a-2ad4-47bc-82b3-b3d3176379f9
version: -1
name: file-rescan
description: Run a rescan in uploaded artifact by hash
script: PolySwarm|||file-rescan
type: regular
iscommand: true
brand: PolySwarm
nexttasks:
'#none#':
- "13"
scriptarguments:
hash:
simple: ${File.SHA256}
separatecontext: false
view: |-
{
"position": {
"x": 440,
"y": 2825
}
}
note: false
timertriggers: []
ignoreworker: false
"13":
id: "13"
taskid: 68aa8f6b-4c31-4e39-89a9-70445b4791c5
type: condition
task:
id: 68aa8f6b-4c31-4e39-89a9-70445b4791c5
version: -1
name: Test Task
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "28"
"yes":
- "18"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: PolySwarm.Positives
iscontext: true
right:
value:
simple: "0"
view: |-
{
"position": {
"x": 440,
"y": 3000
}
}
note: false
timertriggers: []
ignoreworker: false
"14":
id: "14"
taskid: 08177524-e863-4fd1-8555-19637b89cf18
type: regular
task:
id: 08177524-e863-4fd1-8555-19637b89cf18
version: -1
name: get-file
description: Downloads a file from Polyswarm
script: PolySwarm|||get-file
type: regular
iscommand: true
brand: PolySwarm
nexttasks:
'#none#':
- "16"
scriptarguments:
hash:
simple: 7e6a5ea394e04d3ad5c3c456773b146bd8064cd81fd92e1bfa0655580a4b3d90
separatecontext: false
view: |-
{
"position": {
"x": 440,
"y": 2140
}
}
note: false
timertriggers: []
ignoreworker: false
"15":
id: "15"
taskid: 33d17b74-e20c-4b7b-8ae9-1fbe55ac4f8b
type: regular
task:
id: 33d17b74-e20c-4b7b-8ae9-1fbe55ac4f8b
version: -1
name: file-scan
description: Upload a file to Polyswarm and retrieve analysis results
script: PolySwarm|||file-scan
type: regular
iscommand: true
brand: PolySwarm
nexttasks:
'#none#':
- "17"
scriptarguments:
entryID:
simple: ${File.EntryID}
separatecontext: false
view: |-
{
"position": {
"x": 440,
"y": 2500
}
}
note: false
timertriggers: []
ignoreworker: false
"16":
id: "16"
taskid: 767c6f5f-6fd8-4e84-80d8-388041163978
type: condition
task:
id: 767c6f5f-6fd8-4e84-80d8-388041163978
version: -1
name: Task Test
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "26"
"yes":
- "15"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: File.SHA256
iscontext: true
right:
value:
simple: 7e6a5ea394e04d3ad5c3c456773b146bd8064cd81fd92e1bfa0655580a4b3d90
view: |-
{
"position": {
"x": 440,
"y": 2285
}
}
note: false
timertriggers: []
ignoreworker: false
"17":
id: "17"
taskid: b01a69fb-6aee-4a92-8340-f2d60ebc4358
type: condition
task:
id: b01a69fb-6aee-4a92-8340-f2d60ebc4358
version: -1
name: Task Test
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "27"
"yes":
- "12"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: PolySwarm.Positives
iscontext: true
right:
value:
simple: "0"
view: |-
{
"position": {
"x": 440,
"y": 2665
}
}
note: false
timertriggers: []
ignoreworker: false
"18":
id: "18"
taskid: 16b4a1fc-fbe7-4041-8eac-1adcb848a13f
type: regular
task:
id: 16b4a1fc-fbe7-4041-8eac-1adcb848a13f
version: -1
name: file
description: Queries Polyswarm for file reputation info
script: PolySwarm|||file
type: regular
iscommand: true
brand: PolySwarm
nexttasks:
'#none#':
- "19"
scriptarguments:
hash:
simple: ${File.SHA256}
separatecontext: false
view: |-
{
"position": {
"x": 440,
"y": 3170
}
}
note: false
timertriggers: []
ignoreworker: false
"19":
id: "19"
taskid: ee5cc511-c690-4bb8-883d-8fe6ac7391fd
type: condition
task:
id: ee5cc511-c690-4bb8-883d-8fe6ac7391fd
version: -1
name: Test Task
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "29"
"yes":
- "20"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: PolySwarm.Positives
iscontext: true
right:
value:
simple: "0"
view: |-
{
"position": {
"x": 440,
"y": 3340
}
}
note: false
timertriggers: []
ignoreworker: false
"20":
id: "20"
taskid: f03f9821-d09a-4546-8b58-b653f726cf5f
type: title
task:
id: f03f9821-d09a-4546-8b58-b653f726cf5f
version: -1
name: closeInvestigation
description: Close the current incident
type: title
iscommand: false
brand: builtin
separatecontext: false
view: |-
{
"position": {
"x": 440,
"y": 3580
}
}
note: false
timertriggers: []
ignoreworker: false
"21":
id: "21"
taskid: 3200d4c1-974d-4569-8864-8ebf368ba8b1
type: regular
task:
id: 3200d4c1-974d-4569-8864-8ebf368ba8b1
version: -1
name: PrintErrorEntry
description: Prints an error entry with a given message
scriptName: PrintErrorEntry
type: regular
iscommand: false
brand: ""
scriptarguments:
message:
simple: Error with Endpoint.
separatecontext: false
view: |-
{
"position": {
"x": 970,
"y": 635
}
}
note: false
timertriggers: []
ignoreworker: false
"22":
id: "22"
taskid: aee596ca-03d9-4026-8f35-47ba8147dc2f
type: regular
task:
id: aee596ca-03d9-4026-8f35-47ba8147dc2f
version: -1
name: PrintErrorEntry
description: Prints an error entry with a given message
scriptName: PrintErrorEntry
type: regular
iscommand: false
brand: ""
scriptarguments:
message:
simple: Error with Endpoint.
separatecontext: false
view: |-
{
"position": {
"x": 970,
"y": 1010
}
}
note: false
timertriggers: []
ignoreworker: false
"23":
id: "23"
taskid: 3bd1651d-9d85-410a-8db1-5bf5758daee5
type: regular
task:
id: 3bd1651d-9d85-410a-8db1-5bf5758daee5
version: -1
name: PrintErrorEntry
description: Prints an error entry with a given message
scriptName: PrintErrorEntry
type: regular
iscommand: false
brand: ""
scriptarguments:
message:
simple: Error with Endpoint.
separatecontext: false
view: |-
{
"position": {
"x": 960,
"y": 1390
}
}
note: false
timertriggers: []
ignoreworker: false
"24":
id: "24"
taskid: 29005849-2d00-44ed-8376-a528dde00567
type: regular
task:
id: 29005849-2d00-44ed-8376-a528dde00567
version: -1
name: PrintErrorEntry
description: Prints an error entry with a given message
scriptName: PrintErrorEntry
type: regular
iscommand: false
brand: ""
scriptarguments:
message:
simple: Error with Endpoint.
separatecontext: false
view: |-
{
"position": {
"x": 960,
"y": 1770
}
}
note: false
timertriggers: []
ignoreworker: false
"25":
id: "25"
taskid: 61aa3fdb-c820-448c-80d0-90d8aea9faec
type: regular
task:
id: 61aa3fdb-c820-448c-80d0-90d8aea9faec
version: -1
name: PrintErrorEntry
description: Prints an error entry with a given message
scriptName: PrintErrorEntry
type: regular
iscommand: false
brand: ""
scriptarguments:
message:
simple: Error with Endpoint.
separatecontext: false
view: |-
{
"position": {
"x": 960,
"y": 2140
}
}
note: false
timertriggers: []
ignoreworker: false
"26":
id: "26"
taskid: fa7f756e-4b2e-4789-84ee-c1b7d0cf3f1c
type: regular
task:
id: fa7f756e-4b2e-4789-84ee-c1b7d0cf3f1c
version: -1
name: PrintErrorEntry
description: Prints an error entry with a given message
scriptName: PrintErrorEntry
type: regular
iscommand: false
brand: ""
scriptarguments:
message:
simple: Error with Endpoint.
separatecontext: false
view: |-
{
"position": {
"x": 960,
"y": 2500
}
}
note: false
timertriggers: []
ignoreworker: false
"27":
id: "27"
taskid: 1dfce526-698b-4926-808f-1d552a05e9ca
type: regular
task:
id: 1dfce526-698b-4926-808f-1d552a05e9ca
version: -1
name: PrintErrorEntry
description: Prints an error entry with a given message
scriptName: PrintErrorEntry
type: regular
iscommand: false
brand: ""
scriptarguments:
message:
simple: Error with Endpoint.
separatecontext: false
view: |-
{
"position": {
"x": 960,
"y": 2825
}
}
note: false
timertriggers: []
ignoreworker: false
"28":
id: "28"
taskid: e4792f0f-5e38-4f2e-8836-36af3de022b0
type: regular
task:
id: e4792f0f-5e38-4f2e-8836-36af3de022b0
version: -1
name: PrintErrorEntry
description: Prints an error entry with a given message
scriptName: PrintErrorEntry
type: regular
iscommand: false
brand: ""
scriptarguments:
message:
simple: Error with Endpoint.
separatecontext: false
view: |-
{
"position": {
"x": 960,
"y": 3170
}
}
note: false
timertriggers: []
ignoreworker: false
"29":
id: "29"
taskid: 4a59cc17-d1e1-4ddf-8f31-5f790dbaf1de
type: regular
task:
id: 4a59cc17-d1e1-4ddf-8f31-5f790dbaf1de
version: -1
name: PrintErrorEntry
description: Prints an error entry with a given message
scriptName: PrintErrorEntry
type: regular
iscommand: false
brand: ""
scriptarguments:
message:
simple: Error with Endpoint.
separatecontext: false
view: |-
{
"position": {
"x": 990,
"y": 3565
}
}
note: false
timertriggers: []
ignoreworker: false
"30":
id: "30"
taskid: 593c1ec0-7fb2-42aa-8de5-46412f600ec5
type: regular
task:
id: 593c1ec0-7fb2-42aa-8de5-46412f600ec5
version: -1
name: url
description: Queries Polyswarm for url reputation info
script: PolySwarm|||url
type: regular
iscommand: true
brand: PolySwarm
nexttasks:
'#none#':
- "7"
scriptarguments:
url:
simple: https://google.com
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 1010
}
}
note: false
timertriggers: []
ignoreworker: false
view: |-
{
"linkLabelsPosition": {
"9_10_yes": 0.36
},
"paper": {
"dimensions": {
"height": 3530,
"width": 930,
"x": 440,
"y": 130
}
}
}
inputs: []
outputs: []