-
Notifications
You must be signed in to change notification settings - Fork 15
/
Calculate_Severity_-_3rd-party_integrations.yml
557 lines (555 loc) · 12.8 KB
/
Calculate_Severity_-_3rd-party_integrations.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
id: calculate_severity_-_3rd-party_integrations
version: 1
contentitemexportablefields:
contentitemfields:
packID: CommonPlaybooks
packName: Common Playbooks
itemVersion: 2.2.1
fromServerVersion: 5.0.0
toServerVersion: ""
definitionid: ""
vcShouldKeepItemLegacyProdMachine: false
name: Calculate Severity - 3rd-party integrations
description: Calculates the incident severity level according to the methodology of
a 3rd-party integration.
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 3eded69b-617e-4212-86b7-2537474285f3
type: start
task:
id: 3eded69b-617e-4212-86b7-2537474285f3
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "25"
- "26"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1032.5,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"6":
id: "6"
taskid: 5f92bc72-085f-4c03-8404-82f83dac6c62
type: regular
task:
id: 5f92bc72-085f-4c03-8404-82f83dac6c62
version: -1
name: Set severity to "High"
description: Set the severity level to High.
scriptName: Set
type: regular
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "10"
scriptarguments:
key:
simple: Severity
value:
simple: high
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 507.5,
"y": 730
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"10":
id: "10"
taskid: 483350d5-ab17-44cd-87b3-0e2360ce3577
type: title
task:
id: 483350d5-ab17-44cd-87b3-0e2360ce3577
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1032.5,
"y": 1004
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"21":
id: "21"
taskid: a91ad8e7-d063-4466-8137-711519c902f2
type: condition
task:
id: a91ad8e7-d063-4466-8137-711519c902f2
version: -1
name: Is there a Qualys severity?
description: Check if there is a “QualysSeverity” in the playbook inputs.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "10"
"yes":
- "22"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: inputs.QualysSeverity
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 1247.5,
"y": 340
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"22":
id: "22"
taskid: 52fae7c2-b907-4877-8a6a-ed1fbf0ad988
type: condition
task:
id: 52fae7c2-b907-4877-8a6a-ed1fbf0ad988
version: -1
name: Assign severity level based on Qualys vulnerability score
description: |-
Severity level is assigned according to:
* High = 4+
* Medium = 2-3
* Low = 1
type: condition
iscommand: false
brand: ""
nexttasks:
HIGH:
- "6"
LOW:
- "24"
MEDIUM:
- "23"
separatecontext: false
conditions:
- label: HIGH
condition:
- - operator: isExists
left:
value:
complex:
root: inputs.QualysSeverity
filters:
- - operator: greaterThanOrEqual
left:
value:
simple: inputs.QualysSeverity
iscontext: true
right:
value:
simple: "4"
iscontext: true
- label: MEDIUM
condition:
- - operator: isExists
left:
value:
complex:
root: inputs.QualysSeverity
filters:
- - operator: greaterThanOrEqual
left:
value:
simple: inputs.QualysSeverity
iscontext: true
right:
value:
simple: "2"
- - operator: lessThan
left:
value:
simple: inputs.QualysSeverity
iscontext: true
right:
value:
simple: "4"
iscontext: true
- label: LOW
condition:
- - operator: isExists
left:
value:
complex:
root: inputs.QualysSeverity
filters:
- - operator: lessThan
left:
value:
simple: inputs.QualysSeverity
iscontext: true
right:
value:
simple: "2"
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 1247.5,
"y": 513
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"23":
id: "23"
taskid: 89c78898-8fef-4807-8a3d-1c4f042c4eb2
type: regular
task:
id: 89c78898-8fef-4807-8a3d-1c4f042c4eb2
version: -1
name: Set severity to "Medium"
description: Set the severity level to Medium.
scriptName: Set
type: regular
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "10"
scriptarguments:
key:
simple: Severity
value:
simple: medium
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1032.5,
"y": 730
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"24":
id: "24"
taskid: 84f71501-bcb9-481c-85d5-2efa59f1c1a4
type: regular
task:
id: 84f71501-bcb9-481c-85d5-2efa59f1c1a4
version: -1
name: Set severity to "Low"
description: Set the severity level to Low.
scriptName: Set
type: regular
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "10"
scriptarguments:
key:
simple: Severity
value:
simple: low
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1554,
"y": 730
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"25":
id: "25"
taskid: 1487586f-f1f8-4136-8d7e-444a34750493
type: title
task:
id: 1487586f-f1f8-4136-8d7e-444a34750493
version: -1
name: Calculate using Qualys Vulnerability Management
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "21"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1247.5,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"26":
id: "26"
taskid: aa7b1201-afbc-4d7b-89f5-e21011257699
type: title
task:
id: aa7b1201-afbc-4d7b-89f5-e21011257699
version: -1
name: Calculate using Nexpose Vulnerability Management
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "27"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 817.5,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"27":
id: "27"
taskid: 9712ee01-9cb9-4dfa-80b3-aa3beadf990c
type: condition
task:
id: 9712ee01-9cb9-4dfa-80b3-aa3beadf990c
version: -1
name: Is there a Nexpose severity?
description: Check if there is a “NexposeSeverity” in the playbook inputs.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "10"
"yes":
- "28"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: inputs.NexposeSeverity
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 817.5,
"y": 340
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"28":
id: "28"
taskid: d5f43287-75c2-4799-8374-95677a68c876
type: condition
task:
id: d5f43287-75c2-4799-8374-95677a68c876
version: -1
name: Assign severity level based on Nexpose vulnerability score
description: |-
Severity level is assigned according to:
* High = Critical
* Medium = Severe
* Low = Moderate
type: condition
iscommand: false
brand: ""
nexttasks:
HIGH:
- "6"
LOW:
- "24"
MEDIUM:
- "23"
separatecontext: false
conditions:
- label: HIGH
condition:
- - operator: isExists
left:
value:
complex:
root: inputs.NexposeSeverity
filters:
- - operator: isEqualString
left:
value:
simple: inputs.NexposeSeverity
iscontext: true
right:
value:
simple: Critical
ignorecase: true
iscontext: true
- label: MEDIUM
condition:
- - operator: isExists
left:
value:
complex:
root: inputs.NexposeSeverity
filters:
- - operator: isEqualString
left:
value:
simple: inputs.NexposeSeverity
iscontext: true
right:
value:
simple: Severe
ignorecase: true
iscontext: true
- label: LOW
condition:
- - operator: isExists
left:
value:
complex:
root: inputs.NexposeSeverity
filters:
- - operator: isEqualString
left:
value:
simple: inputs.NexposeSeverity
iscontext: true
right:
value:
simple: Moderate
ignorecase: true
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 817.5,
"y": 529
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
system: true
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 1019,
"width": 1426.5,
"x": 507.5,
"y": 50
}
}
}
inputs:
- key: QualysSeverity
value:
complex:
root: Qualys
accessor: Severity
required: false
description: Qualys Vulnerability Severity score (1-5).
playbookInputQuery: null
- key: NexposeSeverity
value:
complex:
root: Nexpose
accessor: Asset.Vulnerability.Severity
required: false
description: ' Nexpose Vulnerability Severity score (Moderate, Severe, Critical).'
playbookInputQuery: null
outputs:
- contextPath: Severity
description: The output severity
type: string