-
Notifications
You must be signed in to change notification settings - Fork 15
/
Calculate_Severity_-_Generic_v2.yml
885 lines (884 loc) · 23 KB
/
Calculate_Severity_-_Generic_v2.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
id: Calculate Severity - Generic v2
version: 1
contentitemexportablefields:
contentitemfields:
packID: CommonPlaybooks
packName: Common Playbooks
itemVersion: 2.2.1
fromServerVersion: 5.0.0
toServerVersion: ""
definitionid: ""
vcShouldKeepItemLegacyProdMachine: false
name: Calculate Severity - Generic v2
description: |-
Calculate and assign the incident severity based on the highest returned severity level from the following calculations:
- DBotScores of indicators
- Critical assets
- Email authenticity
- Current incident severity
- Microsoft Headers
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: d3a3d290-90e0-4101-8f6c-aaa23bcc3e1c
type: start
task:
id: d3a3d290-90e0-4101-8f6c-aaa23bcc3e1c
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "19"
- "18"
- "24"
- "16"
- "27"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 910,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"4":
id: "4"
taskid: cf430274-2565-4433-8dfe-a25a621b0a7c
type: regular
task:
id: cf430274-2565-4433-8dfe-a25a621b0a7c
version: -1
name: Set incident severity to "Low"
description: Sets the incident severity to "Low".
script: Builtin|||setIncident
type: regular
iscommand: true
brand: Builtin
nexttasks:
'#none#':
- "10"
scriptarguments:
severity:
simple: low
reputationcalc: 1
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 50,
"y": 870
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"5":
id: "5"
taskid: 4def42ba-2984-40f3-83c0-ec484edc3b97
type: regular
task:
id: 4def42ba-2984-40f3-83c0-ec484edc3b97
version: -1
name: Set incident severity to "Medium"
description: Sets the incident severity to "Medium".
script: Builtin|||setIncident
type: regular
iscommand: true
brand: Builtin
nexttasks:
'#none#':
- "10"
scriptarguments:
severity:
simple: medium
reputationcalc: 1
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 470,
"y": 870
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"6":
id: "6"
taskid: 132c16ae-fb69-4752-8f79-77923b14ca8c
type: regular
task:
id: 132c16ae-fb69-4752-8f79-77923b14ca8c
version: -1
name: Set incident severity to "High"
description: Sets the incident severity to "High".
script: Builtin|||setIncident
type: regular
iscommand: true
brand: Builtin
nexttasks:
'#none#':
- "10"
scriptarguments:
severity:
simple: high
reputationcalc: 1
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1340,
"y": 870
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"10":
id: "10"
taskid: 8ee3e05c-0da8-405d-8bb8-a2d7bbf7789f
type: title
task:
id: 8ee3e05c-0da8-405d-8bb8-a2d7bbf7789f
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 910,
"y": 1100
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"11":
id: "11"
taskid: c7b36df3-1ae7-4b18-819f-9b85d96c4858
type: regular
task:
id: c7b36df3-1ae7-4b18-819f-9b85d96c4858
version: -1
name: Set incident severity to "Critical"
description: Sets the incident severity to "Critical".
script: Builtin|||setIncident
type: regular
iscommand: true
brand: Builtin
nexttasks:
'#none#':
- "10"
scriptarguments:
severity:
simple: critical
reputationcalc: 1
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1770,
"y": 870
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"15":
id: "15"
taskid: be9c8f44-63bb-4ba0-873b-2168cdb2ab06
type: condition
task:
id: be9c8f44-63bb-4ba0-873b-2168cdb2ab06
version: -1
name: Determine incident severity
description: Determines the severity level based on the highest result of all
severity calculations.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "25"
Critical:
- "11"
High:
- "6"
Low:
- "4"
Medium:
- "5"
separatecontext: false
conditions:
- label: Critical
condition:
- - operator: isExists
left:
value:
complex:
root: Severities
filters:
- - operator: containsGeneral
left:
value:
simple: Severities.DBotScoreSeverity
iscontext: true
right:
value:
simple: Critical
ignorecase: true
- operator: containsGeneral
left:
value:
simple: Severities.CriticalAssetsSeverity
iscontext: true
right:
value:
simple: Critical
ignorecase: true
- operator: containsGeneral
left:
value:
simple: Severities.EmailAuthenticitySeverity
iscontext: true
right:
value:
simple: Critical
ignorecase: true
- operator: isEqualString
left:
value:
simple: Severities.IncidentSeverity
iscontext: true
right:
value:
simple: "4"
ignorecase: true
- operator: isEqualString
left:
value:
simple: Severities.MicrosoftHeadersSeverityCheck
iscontext: true
right:
value:
simple: "4"
iscontext: true
- label: High
condition:
- - operator: isExists
left:
value:
complex:
root: Severities
filters:
- - operator: containsGeneral
left:
value:
simple: Severities.DBotScoreSeverity
iscontext: true
right:
value:
simple: High
ignorecase: true
- operator: containsGeneral
left:
value:
simple: Severities.CriticalAssetsSeverity
iscontext: true
right:
value:
simple: High
ignorecase: true
- operator: containsGeneral
left:
value:
simple: Severities.EmailAuthenticitySeverity
iscontext: true
right:
value:
simple: High
ignorecase: true
- operator: isEqualString
left:
value:
simple: Severities.IncidentSeverity
iscontext: true
right:
value:
simple: "3"
ignorecase: true
- operator: isEqualString
left:
value:
simple: Severities.MicrosoftHeadersSeverityCheck
iscontext: true
right:
value:
simple: "3"
iscontext: true
- label: Medium
condition:
- - operator: isExists
left:
value:
complex:
root: Severities
filters:
- - operator: containsGeneral
left:
value:
simple: Severities.DBotScoreSeverity
iscontext: true
right:
value:
simple: Medium
ignorecase: true
- operator: containsGeneral
left:
value:
simple: Severities.CriticalAssetsSeverity
iscontext: true
right:
value:
simple: Medium
ignorecase: true
- operator: containsGeneral
left:
value:
simple: Severities.EmailAuthenticitySeverity
iscontext: true
right:
value:
simple: Medium
- operator: isEqualString
left:
value:
simple: Severities.IncidentSeverity
iscontext: true
right:
value:
simple: "2"
ignorecase: true
- operator: containsGeneral
left:
value:
simple: Severities.MicrosoftHeadersSeverityCheck
iscontext: true
right:
value:
simple: "2"
iscontext: true
ignorecase: true
- label: Low
condition:
- - operator: isExists
left:
value:
complex:
root: Severities
filters:
- - operator: containsGeneral
left:
value:
simple: Severities.DBotScoreSeverity
iscontext: true
right:
value:
simple: Low
ignorecase: true
- operator: containsGeneral
left:
value:
simple: Severities.CriticalAssetsSeverity
iscontext: true
right:
value:
simple: Low
ignorecase: true
- operator: containsGeneral
left:
value:
simple: Severities.EmailAuthenticitySeverity
iscontext: true
right:
value:
simple: Low
ignorecase: true
- operator: isEqualString
left:
value:
simple: Severities.IncidentSeverity
iscontext: true
right:
value:
simple: "1"
ignorecase: true
- operator: isEqualString
left:
value:
simple: Severities.MicrosoftHeadersSeverityCheck
iscontext: true
right:
value:
simple: "1"
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 910,
"y": 670
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"16":
id: "16"
taskid: 740266f8-5732-4285-81a1-d19dbea15988
type: regular
task:
id: 740266f8-5732-4285-81a1-d19dbea15988
version: -1
name: Get current incident severity
description: Sets the current severity of the incident in the context.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "15"
scriptarguments:
append:
simple: "true"
key:
simple: Severities.IncidentSeverity
value:
complex:
root: incident
accessor: severity
reputationcalc: 1
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 910,
"y": 200
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"18":
id: "18"
taskid: 29bad58f-8797-49ff-8681-68363fc8e9a5
type: playbook
task:
id: 29bad58f-8797-49ff-8681-68363fc8e9a5
version: -1
name: Calculate Severity - Critical Assets v2
description: |-
Determines if a critical asset is associated with the investigation. The playbook returns a severity level of "Critical" if at least one critical asset is associated with the investigation.
Critical assets refer to: users, user groups, endpoints and endpoint groups.
playbookName: Calculate Severity - Critical Assets v2
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "15"
scriptarguments:
Account:
complex:
root: inputs.Account
transformers:
- operator: uniq
CriticalEndpoints:
complex:
root: inputs.CriticalEndpoints
transformers:
- operator: uniq
CriticalGroups:
complex:
root: inputs.CriticalGroups
transformers:
- operator: uniq
CriticalUsers:
complex:
root: inputs.CriticalUsers
transformers:
- operator: uniq
Endpoint:
complex:
root: inputs.Endpoint
transformers:
- operator: uniq
separatecontext: true
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 0
view: |-
{
"position": {
"x": 450,
"y": 200
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"19":
id: "19"
taskid: b20ff842-f44e-4314-8d7a-ce51e1d69c16
type: playbook
task:
id: b20ff842-f44e-4314-8d7a-ce51e1d69c16
version: -1
name: Calculate Severity By Highest DBotScore
description: Calculates the incident severity level according to the highest
indicator DBotScore.
playbookName: Calculate Severity By Highest DBotScore
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "15"
scriptarguments:
DBotScore:
complex:
root: inputs.DBotScore
separatecontext: true
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 0
view: |-
{
"position": {
"x": 1370,
"y": 200
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"24":
id: "24"
taskid: 1a13e3e0-18fb-4c0f-8866-9d56b0df1017
type: playbook
task:
id: 1a13e3e0-18fb-4c0f-8866-9d56b0df1017
version: -1
name: Calculate Severity By Email Authenticity
description: Calculates a severity according to the verdict coming from the
CheckEmailAuthenticity script.
playbookName: Calculate Severity By Email Authenticity
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "15"
scriptarguments:
EmailAuthenticityCheck:
complex:
root: inputs.EmailAuthenticityCheck
separatecontext: true
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 0
view: |-
{
"position": {
"x": -20,
"y": 200
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: true
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"25":
id: "25"
taskid: e042ddb9-d13d-492a-8ac4-95edfbf9a927
type: regular
task:
id: e042ddb9-d13d-492a-8ac4-95edfbf9a927
version: -1
name: Set incident severity level to "Unknown"
description: Sets the incident severity to "Unknown".
script: Builtin|||setIncident
type: regular
iscommand: true
brand: Builtin
nexttasks:
'#none#':
- "10"
scriptarguments:
severity:
simple: unknown
reputationcalc: 1
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 910,
"y": 905
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"26":
id: "26"
taskid: ec346f9c-5097-4f41-81f7-2fa0243a7a2c
type: regular
task:
id: ec346f9c-5097-4f41-81f7-2fa0243a7a2c
version: -1
name: Set Microsoft Headers Severity Check
description: Calculates the severity after processing the PCL, BCL and PCL values
inside Microsoft headers. If no value is entered, nothing is returned.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "15"
scriptarguments:
key:
simple: Severities.MicrosoftHeadersSeverityCheck
value:
simple: ${inputs.MicrosoftHeadersSeverityCheck}
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1950,
"y": 450
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"27":
id: "27"
taskid: a69eaf95-968e-4032-8bfd-206412ffc322
type: condition
task:
id: a69eaf95-968e-4032-8bfd-206412ffc322
version: -1
name: Check if MicrosoftHeadersSeverityCheck is not empty
description: This task verifies that the playbook input "MicrosoftHeadersSeverityCheck"
is not empty.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "15"
"yes":
- "26"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
simple: inputs.MicrosoftHeadersSeverityCheck
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 1840,
"y": 200
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
system: true
view: |-
{
"linkLabelsPosition": {
"15_11_Critical": 0.9,
"15_25_#default#": 0.59,
"15_4_Low": 0.9,
"15_5_Medium": 0.81,
"15_6_High": 0.82,
"27_26_yes": 0.62
},
"paper": {
"dimensions": {
"height": 1115,
"width": 2350,
"x": -20,
"y": 50
}
}
}
inputs:
- key: DBotScore
value:
complex:
root: DBotScore
required: false
description: 'Array of all indicators associated with the incident. '
playbookInputQuery: null
- key: CriticalUsers
value:
simple: admin,administrator
required: false
description: CSV of usernames of critical users.
playbookInputQuery: null
- key: CriticalEndpoints
value:
simple: admin
required: false
description: CSV of hostnames of critical endpoints.
playbookInputQuery: null
- key: CriticalGroups
value:
simple: admins,administrators
required: false
description: CSV of DN names of critical AD groups.
playbookInputQuery: null
- key: Account
value:
complex:
root: Account
transformers:
- operator: uniq
required: false
description: User accounts to check against the critical lists.
playbookInputQuery: null
- key: Endpoint
value:
complex:
root: Endpoint
transformers:
- operator: uniq
required: false
description: Endpoints to check against the CriticalEndpoints list.
playbookInputQuery: null
- key: EmailAuthenticityCheck
value:
complex:
root: Email
accessor: AuthenticityCheck
transformers:
- operator: uniq
required: false
description: 'Indicates the email authenticity resulting from the EmailAuthenticityCheck
script. Possible values are: Pass, Fail, Suspicious, and Undetermined.'
playbookInputQuery: null
- key: MicrosoftHeadersSeverityCheck
value:
simple: ${Email.MicrosoftHeadersSeverityCheck}
required: false
description: The value is set by the "Process Microsoft's Anti-Spam Headers" Playbook,
which calculates the severity after processing the PCL, BCL and PCL values inside
Microsoft's headers.
playbookInputQuery: null
outputs:
- contextPath: CriticalAssets
description: All critical assets involved in the incident.
type: unknown
- contextPath: CriticalAssets.CriticalEndpoints
description: Critical endpoints involved in the incident.
type: unknown
- contextPath: CriticalAssets.CriticalEndpointGroups
description: Critical endpoint-groups involved in the incident.
type: unknown
- contextPath: CriticalAssets.CriticalUsers
description: Critical users involved in the incident.
type: unknown
- contextPath: CriticalAssets.CriticalUserGroups
description: Critical user-groups involved in the incident.
type: unknown