forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-Wildfire_Test.yml
1321 lines (1321 loc) · 28.7 KB
/
playbook-Wildfire_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
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
id: Wildfire Test
version: -1
name: Wildfire Test
description: |-
A test playbook for Wild Fire.
Does not test the deprecated detonate commands.
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: f28ada42-66bd-4b88-8303-f36ab2c389d8
type: start
task:
id: f28ada42-66bd-4b88-8303-f36ab2c389d8
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "10"
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
"6":
id: "6"
taskid: 7b533a1d-017d-4d13-875e-e63cc8b5a603
type: regular
task:
id: 7b533a1d-017d-4d13-875e-e63cc8b5a603
version: -1
name: wildfire-upload-file-url
description: Upload a URL of remote file to WildFire for analysis
script: '|||wildfire-upload-file-url'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
upload:
simple: http://www.pdf995.com/samples/pdf.pdf
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
"7":
id: "7"
taskid: ae094baf-b9ad-4e21-8bbe-00343b7167d9
type: regular
task:
id: ae094baf-b9ad-4e21-8bbe-00343b7167d9
version: -1
name: wildfire-report
description: Retrieve results for a file hash using WildFire
script: '|||wildfire-report'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "9"
scriptarguments:
format: {}
hash:
simple: ebb031c3945e884e695dbc63c52a5efcd075375046c49729980073585ee13c52
md5: {}
sha256: {}
verbose:
simple: "true"
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 545
}
}
note: false
timertriggers: []
ignoreworker: false
"9":
id: "9"
taskid: 034fe1de-9dbd-4b24-83cf-81688ddf5f1b
type: condition
task:
id: 034fe1de-9dbd-4b24-83cf-81688ddf5f1b
version: -1
name: test wildfire-report
description: Verifies context
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "13"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualNumber
left:
value:
complex:
root: DBotScore
accessor: Score
iscontext: true
right:
value:
simple: "1"
view: |-
{
"position": {
"x": 265,
"y": 720
}
}
note: false
timertriggers: []
ignoreworker: false
"10":
id: "10"
taskid: a0ec8492-aa5b-4027-866b-b17cdd5fda63
type: regular
task:
id: a0ec8492-aa5b-4027-866b-b17cdd5fda63
version: -1
name: DeleteContext
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "6"
scriptarguments:
all:
simple: "yes"
index: {}
key: {}
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
"13":
id: "13"
taskid: a2c8bca0-4796-4f11-88eb-d93cc369a94e
type: regular
task:
id: a2c8bca0-4796-4f11-88eb-d93cc369a94e
version: -1
name: wildfire-upload
description: Upload file to WildFire for analysis.
script: '|||wildfire-upload'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "18"
scriptarguments:
upload:
simple: ${InfoFile.EntryID}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 895
}
}
note: false
timertriggers: []
ignoreworker: false
"15":
id: "15"
taskid: d73c25ef-a475-4b40-8dc6-b0a89c437d0c
type: regular
task:
id: d73c25ef-a475-4b40-8dc6-b0a89c437d0c
version: -1
name: wildfire-report
description: Retrieve results for a file hash using WildFire
script: '|||wildfire-report'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "20"
scriptarguments:
format:
simple: xml
hash:
complex:
root: WildFire
accessor: Report.SHA256
md5: {}
sha256: {}
verbose:
simple: "true"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1245
}
}
note: false
timertriggers: []
ignoreworker: false
"17":
id: "17"
taskid: c16ea510-fc2d-4328-8d3c-b8780c2dda56
type: title
task:
id: c16ea510-fc2d-4328-8d3c-b8780c2dda56
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 6145
}
}
note: false
timertriggers: []
ignoreworker: false
"18":
id: "18"
taskid: 82eb1ada-e80f-4d78-8710-25d3fd79d9d0
type: condition
task:
id: 82eb1ada-e80f-4d78-8710-25d3fd79d9d0
version: -1
name: Search for hashes for report download
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "15"
"yes":
- "19"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: WildFire
accessor: Report.SHA256
transformers:
- operator: atIndex
args:
index:
value:
simple: "0"
iscontext: true
view: |-
{
"position": {
"x": 265,
"y": 1070
}
}
note: false
timertriggers: []
ignoreworker: false
"19":
id: "19"
taskid: f6ad491e-bb93-472e-8465-312f789e054c
type: regular
task:
id: f6ad491e-bb93-472e-8465-312f789e054c
version: -1
name: wildfire-report
description: Retrieve results for a file hash using WildFire
script: '|||wildfire-report'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "20"
scriptarguments:
format: {}
hash:
complex:
root: WildFire
accessor: Report.SHA256
transformers:
- operator: atIndex
args:
index:
value:
simple: "0"
md5: {}
verbose: {}
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 1245
}
}
note: false
timertriggers: []
ignoreworker: false
"20":
id: "20"
taskid: 9f74ff3c-4383-4742-80dd-8e2a1ff2b9c4
type: regular
task:
id: 9f74ff3c-4383-4742-80dd-8e2a1ff2b9c4
version: -1
name: wildfire-report - no network data
description: Retrieve results for a file hash using WildFire
script: '|||wildfire-report'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "41"
scriptarguments:
format:
simple: xml
hash:
simple: bf31789a028bfbc44e5c1ae05d8e412dd521bedc7f0c7ec6df3dc4078210a25e
md5: {}
sha256: {}
verbose: {}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 1420
}
}
note: false
timertriggers: []
ignoreworker: false
"21":
id: "21"
taskid: f08c6029-a877-4509-882d-0c340dbcbf13
type: regular
task:
id: f08c6029-a877-4509-882d-0c340dbcbf13
version: -1
name: http download test data file
description: Sends http request. Returns the response as json.
scriptName: http
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "22"
scriptarguments:
body: {}
filename:
simple: my_verdicts
headers: {}
insecure: {}
method:
simple: GET
password: {}
proxy: {}
saveAsFile:
simple: "yes"
unsecure: {}
url:
simple: https://raw.githubusercontent.com/demisto/content/master/TestData/verdicts_for_wildfire_test_pb.txt
username: {}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 2470
}
}
note: false
timertriggers: []
ignoreworker: false
"22":
id: "22"
taskid: 3c5545c5-3e96-4478-860d-44d1fcc3bb0f
type: regular
task:
id: 3c5545c5-3e96-4478-860d-44d1fcc3bb0f
version: -1
name: wildfire-get-verdicts
description: Get a verdict regarding multiple hashes
script: '|||wildfire-get-verdicts'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "24"
scriptarguments:
EntryID:
simple: ${File.EntryID}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 2645
}
}
note: false
timertriggers: []
ignoreworker: false
"23":
id: "23"
taskid: a35fe886-f7f0-494e-80c6-aca8089e532f
type: regular
task:
id: a35fe886-f7f0-494e-80c6-aca8089e532f
version: -1
name: Delete Context
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "21"
scriptarguments:
all:
simple: "yes"
index: {}
key: {}
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 2295
}
}
note: false
timertriggers: []
ignoreworker: false
"24":
id: "24"
taskid: 88d4fad7-d40e-4c7c-863c-5b78c77a2692
type: condition
task:
id: 88d4fad7-d40e-4c7c-863c-5b78c77a2692
version: -1
name: test wildfire-get-verdicts
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "30"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: WildFire
accessor: Verdicts
iscontext: true
view: |-
{
"position": {
"x": 265,
"y": 2820
}
}
note: false
timertriggers: []
ignoreworker: false
"25":
id: "25"
taskid: a002b378-fed8-475a-8857-97c4631c505d
type: regular
task:
id: a002b378-fed8-475a-8857-97c4631c505d
version: -1
name: DeleteContext
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "26"
scriptarguments:
all:
simple: "yes"
index: {}
key: {}
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 1770
}
}
note: false
timertriggers: []
ignoreworker: false
"26":
id: "26"
taskid: 07894136-5607-410e-81ed-3ce0112d29dc
type: regular
task:
id: 07894136-5607-410e-81ed-3ce0112d29dc
version: -1
name: wildfire-get-verdict
description: Get a verdict regarding a hash
script: '|||wildfire-get-verdict'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "27"
scriptarguments:
hash:
simple: afe6b95ad95bc689c356f34ec8d9094c495e4af57c932ac413b65ef132063acc
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 1945
}
}
note: false
timertriggers: []
ignoreworker: false
"27":
id: "27"
taskid: ad4a7fd8-b470-46e7-8624-dc323756d235
type: condition
task:
id: ad4a7fd8-b470-46e7-8624-dc323756d235
version: -1
name: test wildfire-get-verdict
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "23"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualNumber
left:
value:
complex:
root: DBotScore
accessor: Score
iscontext: true
right:
value:
simple: "3"
view: |-
{
"position": {
"x": 265,
"y": 2120
}
}
note: false
timertriggers: []
ignoreworker: false
"28":
id: "28"
taskid: e9fa97a1-6b91-4349-8580-daa2f19986d4
type: regular
task:
id: e9fa97a1-6b91-4349-8580-daa2f19986d4
version: -1
name: file (with sha1 value in the argument file)
description: Retrieve results for a file hash using WildFire
script: WildFire-v2|||file
type: regular
iscommand: true
brand: WildFire-v2
nexttasks:
'#none#':
- "29"
scriptarguments:
codeItemType: {}
delay: {}
file:
simple: a31986a65068af86dbfeddad3e63e05f759b2b32
long: {}
maxRetries: {}
md5: {}
retries: {}
sha256: {}
threshold: {}
wait: {}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 3170
}
}
note: false
timertriggers: []
ignoreworker: false
"29":
id: "29"
taskid: d92da024-988b-4b5b-8079-18284bb63b77
type: regular
task:
id: d92da024-988b-4b5b-8079-18284bb63b77
version: -1
name: commentsToContext
description: "Takes the comments of a given entry ID and stores them in the
incident context, under a provided context key. \nFor accessing the last executed
task's comments, provide ${lastCompletedTaskEntries.[0]} as the value for
the entryId input parameter."
scriptName: commentsToContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "31"
scriptarguments:
contextKey:
simple: checkFile
entryId:
simple: ${lastCompletedTaskEntries.[0]}
listSeperator: {}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 3345
}
}
note: false
timertriggers: []
ignoreworker: false
"30":
id: "30"
taskid: 7f57c5b7-cc18-46dd-8933-964da95e90f0
type: regular
task:
id: 7f57c5b7-cc18-46dd-8933-964da95e90f0
version: -1
name: DeleteContext
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "28"
scriptarguments:
all:
simple: "yes"
index: {}
key: {}
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 2995
}
}
note: false
timertriggers: []
ignoreworker: false
"31":
id: "31"
taskid: 50b553cd-c03c-494b-8ac8-044e0bbabd2e
type: condition
task:
id: 50b553cd-c03c-494b-8ac8-044e0bbabd2e
version: -1
name: test file with sha1 input
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "32"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: containsString
left:
value:
simple: checkFile
iscontext: true
right:
value:
simple: WildFire file hash reputation supports only MD5, SHA256
view: |-
{
"position": {
"x": 265,
"y": 3520
}
}
note: false
timertriggers: []
ignoreworker: false
"32":
id: "32"
taskid: ba16d27c-a964-47e4-845d-4902f579b186
type: regular
task:
id: ba16d27c-a964-47e4-845d-4902f579b186
version: -1
name: file_command_enrichment_test_script_helper
script: file_command_enrichment_test_script_helper
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "33"
reputationcalc: 2
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 3695
}
}
note: false
timertriggers: []
ignoreworker: false
"33":
id: "33"
taskid: 90f1e1a1-4467-4793-86b4-ddcd46494d57
type: condition
task:
id: 90f1e1a1-4467-4793-86b4-ddcd46494d57
version: -1
name: Test enrichment of md5 does exist
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "34"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
complex:
root: DBotScore
filters:
- - operator: stringHasLength
left:
value:
simple: DBotScore.Indicator
iscontext: true
right:
value:
simple: "32"
accessor: Indicator
iscontext: true
right:
value:
simple: 8cbf90aeab2c93b2819fcfd6262b2cdb
view: |-
{
"position": {
"x": 265,
"y": 3870
}
}
note: false
timertriggers: []
ignoreworker: false
"34":
id: "34"
taskid: c91990dd-bc80-4ab8-8950-ab4c472e7a2b
type: condition
task:
id: c91990dd-bc80-4ab8-8950-ab4c472e7a2b
version: -1
name: Test enrichment of sha1 does not exist
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "35"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotExists
left:
value:
complex:
root: DBotScore
filters:
- - operator: isEqualString
left:
value:
simple: DBotScore.Indicator
iscontext: true
right:
value:
simple: 74eb807ea392650562b43a0e326e5d14b86f43ce
- - operator: isEqualString
left:
value:
simple: DBotScore.Vendor
iscontext: true
right:
value:
simple: WildFire
iscontext: true
view: |-
{
"position": {
"x": 265,
"y": 4045
}
}
note: false
timertriggers: []
ignoreworker: false
"35":
id: "35"
taskid: 00d53aa9-a814-45f0-8ca2-ed0e69c84510
type: regular
task:
id: 00d53aa9-a814-45f0-8ca2-ed0e69c84510
version: -1
name: DeleteContext
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "36"
scriptarguments:
all:
simple: "yes"
index: {}
key: {}
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 4220
}
}
note: false
timertriggers: []
ignoreworker: false
"36":
id: "36"
taskid: afdddb48-288d-429d-86f8-fdafd9c5c734
type: regular
task:
id: afdddb48-288d-429d-86f8-fdafd9c5c734
version: -1
name: wildfire-get-sample
description: Retrieve a sample from WildFire
script: '|||wildfire-get-sample'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "37"
scriptarguments:
md5:
simple: 5af84a3db5883627bfdff909e210634e
sha256: {}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 4395
}
}
note: false
timertriggers: []
ignoreworker: false
"37":
id: "37"
taskid: b0601e85-2589-46cd-8192-cf68e7c51d75
type: condition
task:
id: b0601e85-2589-46cd-8192-cf68e7c51d75
version: -1
name: Test wildfire-get-sample
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "38"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: containsString
left:
value:
complex:
root: File
accessor: Name
iscontext: true
right:
value:
simple: 1d457069cb511af47a587287d59817148d404a2a7f39e1032d16094811f648e3.xlsx
view: |-
{
"position": {
"x": 265,
"y": 4570
}
}
note: false
timertriggers: []
ignoreworker: false
"38":
id: "38"
taskid: 5930f444-8e1e-4759-82f6-8e9bd1782588
type: regular