-
Notifications
You must be signed in to change notification settings - Fork 15
/
Search_Endpoint_by_CVE_-_Generic.yml
751 lines (751 loc) · 16.5 KB
/
Search_Endpoint_by_CVE_-_Generic.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
id: Search Endpoint by CVE - Generic
version: 1
contentitemexportablefields:
contentitemfields:
packID: CommonPlaybooks
packName: Common Playbooks
itemVersion: 2.2.1
fromServerVersion: 5.5.0
toServerVersion: ""
definitionid: ""
vcShouldKeepItemLegacyProdMachine: false
name: Search Endpoint by CVE - Generic
description: Hunt for assets with a given CVE using available tools
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 3cc9f67a-3dcb-4793-8ac2-fbbeac13430c
type: start
task:
id: 3cc9f67a-3dcb-4793-8ac2-fbbeac13430c
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -20,
"y": 60
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"1":
id: "1"
taskid: fe3f943e-ee9d-4e14-8d38-acd5029ebbb9
type: condition
task:
id: fe3f943e-ee9d-4e14-8d38-acd5029ebbb9
version: -1
name: Is there CVE?
description: Checks if there is a CVE in the playbook input
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "9"
"yes":
- "2"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
complex:
root: inputs.CVE_ID
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": -20,
"y": 240
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"2":
id: "2"
taskid: 5c6efc1c-e322-4f05-875b-e1e9410adf25
type: title
task:
id: 5c6efc1c-e322-4f05-875b-e1e9410adf25
version: -1
name: Search CVE
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
- "7"
- "13"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 610,
"y": 410
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"3":
id: "3"
taskid: 776c24cb-8546-4e9c-81f7-cfd2dc6c4727
type: title
task:
id: 776c24cb-8546-4e9c-81f7-cfd2dc6c4727
version: -1
name: Rapid7 Nexpose
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "4"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 230,
"y": 560
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"4":
id: "4"
taskid: 70b1a735-db7c-4d65-8b8f-ac8f1eaa212f
type: condition
task:
id: 70b1a735-db7c-4d65-8b8f-ac8f1eaa212f
version: -1
name: Is Rapid7 Nexpose enabled?
description: 'Checks if Rapid7 Nexpose is enabled '
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "9"
"yes":
- "5"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
complex:
root: modules
filters:
- - operator: isEqualString
left:
value:
simple: modules.state
iscontext: true
right:
value:
simple: active
accessor: brand
iscontext: true
right:
value:
simple: Rapid7 Nexpose
continueonerrortype: ""
view: |-
{
"position": {
"x": 230,
"y": 700
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"5":
id: "5"
taskid: 14333e5c-cb15-4a68-8445-2b05472229e1
type: regular
task:
id: 14333e5c-cb15-4a68-8445-2b05472229e1
version: -1
name: 'Search CVE with Rapid7 Nexpose '
description: Returns all assets for which you have access that match the given
search criteria.
tags:
- autoCVEsearch
script: Rapid7 Nexpose|||nexpose-search-assets
type: regular
iscommand: true
brand: Rapid7 Nexpose
nexttasks:
'#none#':
- "9"
scriptarguments:
vulnerabilityTitleContains:
complex:
root: inputs.CVE_ID
transformers:
- operator: split
args:
delimiter:
value:
simple: ','
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 230,
"y": 910
}
}
note: false
timertriggers: []
ignoreworker: false
fieldMapping:
- incidentfield: Breached Compromised Hosts
output:
complex:
root: Nexpose
accessor: Asset
transformers:
- operator: ConvertToSingleElementArray
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"6":
id: "6"
taskid: 3314e9aa-4546-49ca-809a-e441b344f5f2
type: condition
task:
id: 3314e9aa-4546-49ca-809a-e441b344f5f2
version: -1
name: Is Kennav2 enabled?
description: 'Checks if KennaV2 is enabled '
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "9"
"yes":
- "8"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
complex:
root: modules
filters:
- - operator: isEqualString
left:
value:
simple: modules.state
iscontext: true
right:
value:
simple: active
accessor: brand
iscontext: true
right:
value:
simple: Kennav2
continueonerrortype: ""
view: |-
{
"position": {
"x": 1410,
"y": 710
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"7":
id: "7"
taskid: 4dcb3885-0d0e-4dd8-8a6d-744a3c57b9b8
type: title
task:
id: 4dcb3885-0d0e-4dd8-8a6d-744a3c57b9b8
version: -1
name: Kennav2
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "6"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1410,
"y": 570
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"8":
id: "8"
taskid: 8a816485-5157-4566-8336-291b4f7fa4d0
type: regular
task:
id: 8a816485-5157-4566-8336-291b4f7fa4d0
version: -1
name: Search CVE with Kenna
description: Searches for vulnerabilities in Kenna.
tags:
- autoCVEsearch
script: '|||kenna-search-vulnerabilities'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "11"
scriptarguments:
id:
complex:
root: inputs.CVE_ID
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1410,
"y": 930
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"9":
id: "9"
taskid: ae99de5a-7c26-4cf6-87fc-d004af1cb212
type: title
task:
id: ae99de5a-7c26-4cf6-87fc-d004af1cb212
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -20,
"y": 1690
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"11":
id: "11"
taskid: cffb6924-0a75-4ed9-89d3-33944c6d31b2
type: condition
task:
id: cffb6924-0a75-4ed9-89d3-33944c6d31b2
version: -1
name: Found results?
description: If found Assets with the given CVE
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "9"
"yes":
- "12"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: Kenna
accessor: Vulnerabilities
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 1410,
"y": 1105
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"12":
id: "12"
taskid: 5dc657f4-1a09-4466-87e0-c4e6aa568d3c
type: regular
task:
id: 5dc657f4-1a09-4466-87e0-c4e6aa568d3c
version: -1
name: Get hostname from assetID
description: Searches for assets.
script: '|||kenna-search-assets'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "18"
scriptarguments:
id:
complex:
root: Kenna.Vulnerabilities
accessor: AssetID
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1410,
"y": 1330
}
}
note: false
timertriggers: []
ignoreworker: false
fieldMapping:
- incidentfield: Breached Compromised Hosts
output:
complex:
root: Kenna
accessor: Assets
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"13":
id: "13"
taskid: 536cbf27-e426-49ec-8746-d74a6912cf81
type: title
task:
id: 536cbf27-e426-49ec-8746-d74a6912cf81
version: -1
name: RiskSense
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "14"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 800,
"y": 570
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"14":
id: "14"
taskid: 44395589-60e0-4dd1-893b-15b0aad442c3
type: condition
task:
id: 44395589-60e0-4dd1-893b-15b0aad442c3
version: -1
name: 'Is RiskSense Enabled? '
description: 'Checks if RiskSense is enabled '
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "9"
"yes":
- "15"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: modules
filters:
- - operator: isEqualString
left:
value:
simple: modules.state
iscontext: true
right:
value:
simple: active
- operator: containsString
left:
value:
simple: modules.brand
iscontext: true
right:
value:
simple: RiskSense
accessor: brand
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 800,
"y": 710
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"15":
id: "15"
taskid: 126fda72-2bab-4baf-8d62-6995d6b9a270
type: playbook
task:
id: 126fda72-2bab-4baf-8d62-6995d6b9a270
version: -1
name: CVE Exposure - RiskSense
playbookName: CVE Exposure - RiskSense
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "17"
scriptarguments:
CVES:
complex:
root: inputs.CVE_ID
TagName:
simple: FireEye RedTeam tools
separatecontext: false
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 100
view: |-
{
"position": {
"x": 790,
"y": 910
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: true
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"17":
id: "17"
taskid: 38fa22d3-111a-4edb-8e4b-407af0cc699b
type: regular
task:
id: 38fa22d3-111a-4edb-8e4b-407af0cc699b
version: -1
name: Set results to Endpoint context
description: Set a value in context under the key you entered. If no value is
entered, the script doesn't do anything.
scriptName: SetAndHandleEmpty
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "9"
scriptarguments:
append:
simple: "false"
key:
simple: Endpoint
value:
complex:
root: RiskSense
filters:
- - operator: isExists
left:
value:
simple: RiskSense
iscontext: true
accessor: Host
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 790,
"y": 1105
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"18":
id: "18"
taskid: 97583f7a-e6b3-4662-86be-7e267e2539ac
type: regular
task:
id: 97583f7a-e6b3-4662-86be-7e267e2539ac
version: -1
name: Set results to Endpoint context
description: Set a value in context under the key you entered. If no value is
entered, the script doesn't do anything.
scriptName: SetAndHandleEmpty
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "9"
scriptarguments:
append:
simple: "true"
key:
simple: Endpoint
value:
complex:
root: Kenna
accessor: Assets
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1410,
"y": 1510
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
system: true
view: |-
{
"linkLabelsPosition": {
"11_12_yes": 0.68,
"11_9_#default#": 0.1,
"14_9_#default#": 0.1,
"1_2_yes": 0.16,
"1_9_#default#": 0.1,
"4_9_#default#": 0.1,
"6_9_#default#": 0.1
},
"paper": {
"dimensions": {
"height": 1695,
"width": 1810,
"x": -20,
"y": 60
}
}
}
inputs:
- key: CVE_ID
value: {}
required: false
description: ""
playbookInputQuery: null
outputs:
- contextPath: Kenna.Assets
description: Compromised Assets from Kenna
type: unknown
- contextPath: Nexpose.Asset
description: Compromised Assets from Nexpose
type: unknown
- contextPath: Endpoint
description: Global compromised Assets
type: unknown