-
Notifications
You must be signed in to change notification settings - Fork 15
/
File_Reputation.yml
904 lines (904 loc) · 20.4 KB
/
File_Reputation.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
id: File Reputation
version: 1
contentitemexportablefields:
contentitemfields:
packID: CommonPlaybooks
packName: Common Playbooks
itemVersion: 2.2.1
fromServerVersion: 6.6.0
toServerVersion: ""
definitionid: ""
vcShouldKeepItemLegacyProdMachine: false
name: File Reputation
description: "This playbook checks the file reputation and sets the verdict as a new
context key.\n\nThe verdict is composed by 3 main components:\n\n* VirusTotal detection
rate\n* Digital certificate signers\n* NSRL DB\n\nNote: a user can provide a list
of trusted signers of his own using the playbook inputs\n "
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 0036bf78-bb71-4cc0-8147-c1dcb446f610
type: start
task:
id: 0036bf78-bb71-4cc0-8147-c1dcb446f610
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "7"
- "4"
- "18"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -700,
"y": -600
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"3":
id: "3"
taskid: 9a0d46f3-35a0-4022-833b-6e33cda9114b
type: title
task:
id: 9a0d46f3-35a0-4022-833b-6e33cda9114b
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -700,
"y": 530
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"4":
id: "4"
taskid: d188fc98-26aa-4ad3-8c92-d603b765f6ec
type: title
task:
id: d188fc98-26aa-4ad3-8c92-d603b765f6ec
version: -1
name: VirusTotal Reputation
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "5"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -700,
"y": -440
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"5":
id: "5"
taskid: 20ddd027-f0d2-4ee8-864e-c90c9f8697bb
type: regular
task:
id: 20ddd027-f0d2-4ee8-864e-c90c9f8697bb
version: -1
name: File enrichment
description: Retrieve results for a file hash using WildFire.
script: '|||file'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "24"
scriptarguments:
file:
complex:
root: inputs.FileSHA256
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -700,
"y": -300
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"7":
id: "7"
taskid: 728d695a-84e4-41a4-8de6-2e8b792c24ee
type: title
task:
id: 728d695a-84e4-41a4-8de6-2e8b792c24ee
version: -1
name: NSRL
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "10"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 670,
"y": -440
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"8":
id: "8"
taskid: 58df7ac3-e6e9-4da5-88ec-3a6b8268872b
type: condition
task:
id: 58df7ac3-e6e9-4da5-88ec-3a6b8268872b
version: -1
name: Check file detections
description: Check file detections.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "17"
Benign:
- "14"
separatecontext: false
conditions:
- label: Benign
condition:
- - operator: lessThan
left:
value:
complex:
root: VirusTotal.SearchResults.attributes.last_analysis_stats
accessor: malicious
iscontext: true
right:
value:
complex:
root: inputs.DetectionThreshold
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": -250,
"y": 90
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"10":
id: "10"
taskid: 657cdfbc-0d99-4fc1-8130-541ac61a46de
type: regular
task:
id: 657cdfbc-0d99-4fc1-8130-541ac61a46de
version: -1
name: Check the file hash against NSRL DB
description: Sends http request. Returns the response as json.
scriptName: http
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "11"
scriptarguments:
ignore-outputs:
simple: "false"
method:
simple: GET
saveAsFile:
simple: test.txt
url:
simple: https://hashlookup.circl.lu/lookup/sha256/${inputs.FileSHA256}
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 670,
"y": -300
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"11":
id: "11"
taskid: 83169b11-c3c4-452c-8a9b-e8cbb65740ce
type: regular
task:
id: 83169b11-c3c4-452c-8a9b-e8cbb65740ce
version: -1
name: Parse HTTP response body
description: 'Parse a given JSON string "value" to a representative object.
Example: ''{"a": "value"}'' => {"a": "value"}.'
scriptName: ParseJSON
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "12"
scriptarguments:
extend-context:
simple: NSRLCheckResults=
ignore-outputs:
simple: "true"
value:
complex:
root: HttpRequest.Response
accessor: Body
transformers:
- operator: Stringify
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 670,
"y": -120
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"12":
id: "12"
taskid: 0daec705-f44f-4630-872a-ecfa3227ddab
type: condition
task:
id: 0daec705-f44f-4630-872a-ecfa3227ddab
version: -1
name: Check NSRL search results
description: Check NSRL search results.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "21"
Found Results:
- "13"
separatecontext: false
conditions:
- label: Found Results
condition:
- - operator: isNotEqualString
left:
value:
complex:
root: NSRLCheckResults
accessor: message
iscontext: true
right:
value:
simple: Non existing SHA-256
ignorecase: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 670,
"y": 90
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"13":
id: "13"
taskid: afa05da2-350f-4d09-85f1-7d9ddb31477c
type: regular
task:
id: afa05da2-350f-4d09-85f1-7d9ddb31477c
version: -1
name: Set file verdict - NSRL
description: Set a value in context under the key you entered.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
key:
simple: NSRLFileVerdict
value:
simple: IsNSRL
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 460,
"y": 350
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"14":
id: "14"
taskid: 52efc87e-ca13-4c85-855d-83a4f04374b9
type: regular
task:
id: 52efc87e-ca13-4c85-855d-83a4f04374b9
version: -1
name: Set file verdict - VT-Benign
description: Set a value in context under the key you entered.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
key:
simple: VTFileVerdict
value:
simple: Benign
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -40,
"y": 350
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"15":
id: "15"
taskid: df8ccfaa-c452-4c35-837c-4e80a383b1d1
type: condition
task:
id: df8ccfaa-c452-4c35-837c-4e80a383b1d1
version: -1
name: Check file signature
description: Check file signature.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "22"
Trusted Signers:
- "16"
separatecontext: false
conditions:
- label: Trusted Signers
condition:
- - operator: inList
left:
value:
complex:
root: VirusTotal.SearchResults.attributes.trusted_verdict
accessor: organization
iscontext: true
right:
value:
complex:
root: inputs.TrustedPublishers
iscontext: true
ignorecase: true
- - operator: isEqualString
left:
value:
complex:
root: VirusTotal.SearchResults.attributes.trusted_verdict
accessor: verdict
iscontext: true
right:
value:
simple: goodware
ignorecase: true
continueonerrortype: ""
view: |-
{
"position": {
"x": -1170,
"y": 90
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"16":
id: "16"
taskid: bc1bdba5-711c-417d-8e1b-beb3c358ea82
type: regular
task:
id: bc1bdba5-711c-417d-8e1b-beb3c358ea82
version: -1
name: Set file verdict - VT-TrustedSigners
description: Set a value in context under the key you entered.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
key:
simple: VTFileSigners
value:
simple: Trusted
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -960,
"y": 350
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"17":
id: "17"
taskid: 7088e81b-b654-427a-83be-8f89bf00a1e2
type: regular
task:
id: 7088e81b-b654-427a-83be-8f89bf00a1e2
version: -1
name: Set file verdict - VT-Malicious
description: Set a value in context under the key you entered.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
key:
simple: VTFileVerdict
value:
simple: Malicious
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -460,
"y": 350
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"18":
id: "18"
taskid: d51edea1-e13a-4342-83a1-804f7e2df09e
type: title
task:
id: d51edea1-e13a-4342-83a1-804f7e2df09e
version: -1
name: Cortex XDR
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "19"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -2070,
"y": -440
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"19":
id: "19"
taskid: 96728cac-a5cf-41e5-8cde-43882c9dd70f
type: condition
task:
id: 96728cac-a5cf-41e5-8cde-43882c9dd70f
version: -1
name: Check file signature
description: Check file signature.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "23"
Trusted Signers:
- "20"
separatecontext: false
conditions:
- label: Trusted Signers
condition:
- - operator: inList
left:
value:
complex:
root: PaloAltoNetworksXDR.Incident.alerts
accessor: action_process_signature_vendor
transformers:
- operator: append
args:
item:
value:
simple: ${PaloAltoNetworksXDR.Incident.alerts.os_actor_process_signature_vendor}
iscontext: true
- operator: append
args:
item:
value:
simple: ${PaloAltoNetworksXDR.Incident.alerts.actor_process_signature_vendor}
iscontext: true
- operator: append
args:
item:
value:
simple: ${PaloAltoNetworksXDR.Incident.alerts.causality_actor_process_signature_vendor}
iscontext: true
iscontext: true
right:
value:
complex:
root: inputs.TrustedPublishers
iscontext: true
ignorecase: true
continueonerrortype: ""
view: |-
{
"position": {
"x": -2070,
"y": 90
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"20":
id: "20"
taskid: 7d95a4cb-4bf2-4ab5-8c7f-f3c97d5ea43f
type: regular
task:
id: 7d95a4cb-4bf2-4ab5-8c7f-f3c97d5ea43f
version: -1
name: Set file verdict - XDR-TrustedSigners
description: Set a value in context under the key you entered.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
key:
simple: XDRFileSigners
value:
simple: Trusted
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -1860,
"y": 350
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"21":
id: "21"
taskid: bb096e6a-72b8-43f3-81a3-14633d6a58d3
type: regular
task:
id: bb096e6a-72b8-43f3-81a3-14633d6a58d3
version: -1
name: Set file verdict - NSRL
description: Set a value in context under the key you entered.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
key:
simple: NSRLFileVerdict
value:
simple: IsNotNSRL
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 880,
"y": 350
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"22":
id: "22"
taskid: 02ee8e00-beda-4648-8360-5cfd3d0317db
type: regular
task:
id: 02ee8e00-beda-4648-8360-5cfd3d0317db
version: -1
name: Set file verdict - VT-TrustedSigners
description: Set a value in context under the key you entered.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
key:
simple: VTFileSigners
value:
simple: UnTrusted
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -1380,
"y": 350
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"23":
id: "23"
taskid: 9bc117b9-97ee-4aa4-81b5-e2ca1e5c9549
type: regular
task:
id: 9bc117b9-97ee-4aa4-81b5-e2ca1e5c9549
version: -1
name: Set file verdict - XDR-TrustedSigners
description: Set a value in context under the key you entered.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
key:
simple: XDRFileSigners
value:
simple: UnTrusted
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -2280,
"y": 350
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"24":
id: "24"
taskid: 5205d32a-2c3a-42ca-8586-04680de9bc5b
type: condition
task:
id: 5205d32a-2c3a-42ca-8586-04680de9bc5b
version: -1
name: Check for VT results
description: Checks whether there are results from VirusTotal.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "3"
"yes":
- "15"
- "8"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
complex:
root: VirusTotal
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": -700,
"y": -120
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
system: true
view: |-
{
"linkLabelsPosition": {
"12_13_Found Results": 0.64,
"12_21_#default#": 0.84,
"15_16_Trusted Signers": 0.64,
"15_22_#default#": 0.8,
"19_20_Trusted Signers": 0.66,
"19_23_#default#": 0.81,
"8_14_Benign": 0.78,
"8_17_#default#": 0.8
},
"paper": {
"dimensions": {
"height": 1195,
"width": 3540,
"x": -2280,
"y": -600
}
}
}
inputs:
- key: DetectionThreshold
value:
simple: "5"
required: false
description: The minimum number of positive engines needed to mark file as malicious.
playbookInputQuery: null
- key: TrustedPublishers
value:
simple: |-
Microsoft Root Authority,Microsoft Timestamping Service,
Microsoft Code Signing PCA, Microsoft Corporation
required: false
description: A list of trusted publishers
playbookInputQuery: null
- key: FileSHA256
value: {}
required: false
description: The file SHA256.
playbookInputQuery: null
outputs:
- contextPath: VTFileVerdict
description: VirusTotal file verdict.
type: unknown
- contextPath: NSRLFileVerdict
description: NSRL file verdict.
type: unknown
- contextPath: VTFileSigners
description: VirusTotal file signers.
type: unknown
- contextPath: XDRFileSigners
description: XDR file signers.
type: unknown