-
Notifications
You must be signed in to change notification settings - Fork 15
/
CVE_Enrichment_-_Generic_v2.yml
607 lines (607 loc) · 14 KB
/
CVE_Enrichment_-_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
id: CVE Enrichment - Generic v2
version: 1
contentitemexportablefields:
contentitemfields:
packID: CommonPlaybooks
packName: Common Playbooks
itemVersion: 2.2.1
fromServerVersion: 5.0.0
toServerVersion: ""
definitionid: ""
vcShouldKeepItemLegacyProdMachine: false
name: CVE Enrichment - Generic v2
description: |-
This playbook performs CVE Enrichment using the following integrations:
- VulnDB
- CVE Search
- IBM X-Force Exchange
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 8a9b5f57-93dc-4f6e-847a-472c93c1af17
type: start
task:
id: 8a9b5f57-93dc-4f6e-847a-472c93c1af17
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 162.5,
"y": 200
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"1":
id: "1"
taskid: 4cfa2898-da16-4d61-839a-cc66e5492541
type: condition
task:
id: 4cfa2898-da16-4d61-839a-cc66e5492541
version: -1
name: Is there a CVE to enrich?
description: Verify that the playbook input includes at least one CVE ID to
enrich.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "2"
"yes":
- "11"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
complex:
root: inputs.cve_id
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 162.5,
"y": 340
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"2":
id: "2"
taskid: 1c1df4a5-6a12-4724-8cf5-586f7743fc57
type: title
task:
id: 1c1df4a5-6a12-4724-8cf5-586f7743fc57
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 162.5,
"y": 1130
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"4":
id: "4"
taskid: 842e273c-40ee-46c1-837d-f7e09bcefef0
type: condition
task:
id: 842e273c-40ee-46c1-837d-f7e09bcefef0
version: -1
name: Is IBM X-Force Exchange integration enabled?
description: Verify that there's a valid instance of XFE enabled.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "2"
"yes":
- "7"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: modules
filters:
- - operator: isEqualString
left:
value:
simple: modules.brand
iscontext: true
right:
value:
simple: XFE
ignorecase: true
- - operator: isEqualString
left:
value:
simple: modules.state
iscontext: true
right:
value:
simple: active
ignorecase: true
accessor: brand
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 1530,
"y": 790
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"5":
id: "5"
taskid: 8f3572d2-dbfc-4c4b-82af-94d06b99e727
type: condition
task:
id: 8f3572d2-dbfc-4c4b-82af-94d06b99e727
version: -1
name: Is "CVE Search" integration enabled?
description: Verify that there's a valid instance of "CVE Search" enabled.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "2"
"yes":
- "6"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: modules
filters:
- - operator: containsGeneral
left:
value:
simple: modules.brand
iscontext: true
right:
value:
simple: CVE Search
ignorecase: true
- - operator: isEqualString
left:
value:
simple: modules.state
iscontext: true
right:
value:
simple: active
ignorecase: true
accessor: brand
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 970,
"y": 790
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"6":
id: "6"
taskid: c08adb3a-b8c3-4a9b-8290-2f6dcda45d88
type: regular
task:
id: c08adb3a-b8c3-4a9b-8290-2f6dcda45d88
version: -1
name: Get CVE info from "CVE Search"
description: Returns CVE information by CVE ID.
script: '|||cve'
type: regular
iscommand: true
brand: CVE Search
nexttasks:
'#none#':
- "2"
scriptarguments:
cve_id:
complex:
root: inputs.cve_id
separatecontext: false
continueonerror: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 1160,
"y": 960
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"7":
id: "7"
taskid: d2ff276a-dd81-4805-80c3-ee44976b4020
type: regular
task:
id: d2ff276a-dd81-4805-80c3-ee44976b4020
version: -1
name: Get CVE information from XFE
description: Retrieve CVE information from XFE.
script: XFE|||cve-search
type: regular
iscommand: true
brand: XFE
nexttasks:
'#none#':
- "2"
scriptarguments:
cveId:
complex:
root: inputs.cve_id
separatecontext: false
continueonerror: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 1720,
"y": 960
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: true
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"11":
id: "11"
taskid: 81a2e52a-0a2a-4791-8a55-e4249923b7b3
type: title
task:
id: 81a2e52a-0a2a-4791-8a55-e4249923b7b3
version: -1
name: CVE enrichment
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "13"
- "14"
- "26"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 970,
"y": 510
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"12":
id: "12"
taskid: bee9dcb2-a07f-4362-8e17-df1458d42051
type: regular
task:
id: bee9dcb2-a07f-4362-8e17-df1458d42051
version: -1
name: VulnDB - Get vulnerability details by CVE
description: Returns full details about vulnerabilities, by CVE ID.
script: VulnDB|||vulndb-get-vuln-by-cve-id
type: regular
iscommand: true
brand: VulnDB
nexttasks:
'#none#':
- "2"
scriptarguments:
cve_id:
complex:
root: inputs.cve_id
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 590,
"y": 960
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"13":
id: "13"
taskid: 2c6008cc-e42b-4976-86c8-92123558d6b6
type: title
task:
id: 2c6008cc-e42b-4976-86c8-92123558d6b6
version: -1
name: VulnDB
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "27"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 400,
"y": 650
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"14":
id: "14"
taskid: da54676a-2737-437d-8f74-cf90095e20b0
type: title
task:
id: da54676a-2737-437d-8f74-cf90095e20b0
version: -1
name: CVE Search
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "5"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 970,
"y": 650
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"26":
id: "26"
taskid: 85a2fa30-ef67-4272-8867-18116129def3
type: title
task:
id: 85a2fa30-ef67-4272-8867-18116129def3
version: -1
name: IBM X-Force Exchange
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "4"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1530,
"y": 650
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"27":
id: "27"
taskid: 3b7877c8-6321-4a1c-8444-d2bd91aae191
type: condition
task:
id: 3b7877c8-6321-4a1c-8444-d2bd91aae191
version: -1
name: Is VulnDB integration enabled?
description: Verify that there's a valid instance of XFE enabled.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "2"
"yes":
- "12"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: modules
filters:
- - operator: isEqualString
left:
value:
simple: modules.brand
iscontext: true
right:
value:
simple: VulnDB
ignorecase: true
- - operator: isEqualString
left:
value:
simple: modules.state
iscontext: true
right:
value:
simple: active
ignorecase: true
accessor: brand
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 400,
"y": 790
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
system: true
view: |-
{
"linkLabelsPosition": {
"1_11_yes": 0.52,
"1_2_#default#": 0.25,
"27_2_#default#": 0.39,
"4_2_#default#": 0.1,
"4_7_yes": 0.46,
"5_2_#default#": 0.15
},
"paper": {
"dimensions": {
"height": 995,
"width": 1937.5,
"x": 162.5,
"y": 200
}
}
}
inputs:
- key: cve_id
value:
complex:
root: CVE
accessor: ID
required: false
description: The CVE ID to enrich.
playbookInputQuery: null
outputs:
- contextPath: CVE
description: The CVE object
type: unknown
- contextPath: CVE.ID
description: The ID of the CVE
type: string
- contextPath: CVE.CVSS
description: The CVSS score of the CVE
type: number
- contextPath: CVE.Published
description: The date this was published
type: date
- contextPath: CVE.Modified
description: When CVE was last modified
type: date
- contextPath: CVE.Description
description: The CVE description
type: string
- contextPath: VulnDB.Vulnerability.ID
description: Vulnerability ID.
- contextPath: VulnDB.Vulnerability.Title
description: Vulnerability title (human readable).
- contextPath: VulnDB.Vulnerability.Description
description: Vulnerability description (human readable).
- contextPath: VulnDB.Vulnerability.Solution
description: Vulnerability solution (human readable).
- contextPath: VulnDB.CvssMetrics.Id
description: CVSS reference value.
- contextPath: VulnDB.CvssMetrics.ConfidentialityImpact
description: CVSS confidentiality impact.
- contextPath: VulnDB.CvssMetrics.AvailabilityImpact
description: CVSS availability impact.
- contextPath: VulnDB.CvssMetrics.Score
description: CVSS score.
- contextPath: VulnDB.cvssMetrics.integrity_impact
description: CVSS integrity impact.
- contextPath: VulnDB.Vendors.Id
description: Vendor ID.
- contextPath: VulnDB.Products.Id
description: Product IDs.
sourceplaybookid: cve_enrichment_-_generic