forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-Cybereason_Test.yml
727 lines (727 loc) · 16.5 KB
/
playbook-Cybereason_Test.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
id: Cybereason Test
version: -1
name: Cybereason Test
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 1c31af4c-e99f-4180-80ac-7315f9f7e76e
type: start
task:
id: 1c31af4c-e99f-4180-80ac-7315f9f7e76e
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
"1":
id: "1"
taskid: 934242bc-8659-4451-8b31-b66e97c8e704
type: regular
task:
id: 934242bc-8659-4451-8b31-b66e97c8e704
version: -1
name: cybereason-is-probe-connected
description: Checks if the machine is currently connected to the Cybereason
server
script: Cybereason|||cybereason-is-probe-connected
type: regular
iscommand: true
brand: Cybereason
nexttasks:
'#none#':
- "2"
scriptarguments:
machine:
simple: EC2AMAZ-5MAN2HC
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
"2":
id: "2"
taskid: 33b2e52b-e683-4588-851f-7b32707b0c67
type: regular
task:
id: 33b2e52b-e683-4588-851f-7b32707b0c67
version: -1
name: VerifyContext
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
expectedValue: {}
fields:
simple: isConnected,Name
path:
simple: Cybereason.Machine
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
"3":
id: "3"
taskid: 61df3be3-2a56-44e6-8d03-5a167910aab4
type: regular
task:
id: 61df3be3-2a56-44e6-8d03-5a167910aab4
version: -1
name: cybereason-query-connections
description: Searches for connections.
script: Cybereason|||cybereason-query-connections
type: regular
iscommand: true
brand: Cybereason
nexttasks:
'#none#':
- "4"
scriptarguments:
ip: {}
machine:
simple: ${Cybereason.Machine.Name}
saveToContext:
simple: "true"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 545
}
}
note: false
timertriggers: []
ignoreworker: false
"4":
id: "4"
taskid: 6a4f26ee-d00a-4f81-8404-d1af20ece8ef
type: regular
task:
id: 6a4f26ee-d00a-4f81-8404-d1af20ece8ef
version: -1
name: VerifyContext
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "5"
scriptarguments:
expectedValue: {}
fields:
simple: Name,Direction,ServerAddress,OwnerMachine,OwnerProcess,ServerPort
path:
simple: Connection
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 720
}
}
note: false
timertriggers: []
ignoreworker: false
"5":
id: "5"
taskid: 2b22cece-4eed-4012-83f9-8f695a545137
type: regular
task:
id: 2b22cece-4eed-4012-83f9-8f695a545137
version: -1
name: cybereason-query-processes
description: Searches for processes with various filters.
script: Cybereason|||cybereason-query-processes
type: regular
iscommand: true
brand: Cybereason
nexttasks:
'#none#':
- "6"
scriptarguments:
hasIncomingConnection: {}
hasOutgoingConnection: {}
limit:
simple: "5"
machine:
simple: ${Cybereason.Machine.Name}
onlySuspicious: {}
processName: {}
saveToContext:
simple: "true"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 895
}
}
note: false
timertriggers: []
ignoreworker: false
"6":
id: "6"
taskid: 19f190cc-144d-442f-834c-f626274265ac
type: regular
task:
id: 19f190cc-144d-442f-834c-f626274265ac
version: -1
name: VerifyContext
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "11"
scriptarguments:
expectedValue: {}
fields:
simple: Name,CreationTime,OwnerMachine,User
path:
simple: Process
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1070
}
}
note: false
timertriggers: []
ignoreworker: false
"7":
id: "7"
taskid: c34e6d72-f982-4ffd-8169-bf7e2dbc82a3
type: title
task:
id: c34e6d72-f982-4ffd-8169-bf7e2dbc82a3
version: -1
name: Success!
type: title
iscommand: false
brand: ""
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 3170
}
}
note: false
timertriggers: []
ignoreworker: false
"8":
id: "8"
taskid: 4d518bb9-d706-477c-86b8-7cf67b653d64
type: regular
task:
id: 4d518bb9-d706-477c-86b8-7cf67b653d64
version: -1
name: cybereason-query-malops
description: Returns a list of all Malops and details on the Malops.
script: Cybereason|||cybereason-query-malops
type: regular
iscommand: true
brand: Cybereason
nexttasks:
'#none#':
- "9"
scriptarguments:
filters: {}
malopGuid: {}
perGroupLimit: {}
templateContext: {}
totalResultLimit:
simple: "1"
withinLastDays:
simple: "1000"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1430
}
}
note: false
timertriggers: []
ignoreworker: false
"9":
id: "9"
taskid: c0e7200f-23b2-40a0-85a7-50447dd5ef73
type: regular
task:
id: c0e7200f-23b2-40a0-85a7-50447dd5ef73
version: -1
name: cybereason-malop-processes
description: Returns a list of malops
script: Cybereason|||cybereason-malop-processes
type: regular
iscommand: true
brand: Cybereason
nexttasks:
'#none#':
- "10"
scriptarguments:
malopGuids:
simple: ${Cybereason.Malops.GUID}
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1595
}
}
note: false
timertriggers: []
ignoreworker: false
"10":
id: "10"
taskid: dd92f8c2-bbea-4e71-8d36-6fac8399c57d
type: regular
task:
id: dd92f8c2-bbea-4e71-8d36-6fac8399c57d
version: -1
name: VerifyContext
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "12"
scriptarguments:
expectedValue: {}
fields:
simple: Name,User,CreationTime,OwnerMachine
path:
simple: Process
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1770
}
}
note: false
timertriggers: []
ignoreworker: false
"11":
id: "11"
taskid: ed84fd17-cdf0-45e1-89ea-22e6d7465ded
type: regular
task:
id: ed84fd17-cdf0-45e1-89ea-22e6d7465ded
version: -1
name: DeleteContext - Process
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "8"
scriptarguments:
all: {}
key:
simple: Process
keysToKeep: {}
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1245
}
}
note: false
timertriggers: []
ignoreworker: false
"12":
id: "12"
taskid: dae944a4-1a95-4c87-8dfc-85cd3f85ceb5
type: regular
task:
id: dae944a4-1a95-4c87-8dfc-85cd3f85ceb5
version: -1
name: Malops fetch test
scriptName: FetchFromInstance
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "13"
scriptarguments:
instance_name:
complex:
root: modules
filters:
- - operator: isEqualString
left:
value:
simple: modules.brand
iscontext: true
right:
value:
simple: Cybereason
- - operator: isEqualString
left:
value:
simple: modules.state
iscontext: true
right:
value:
simple: active
accessor: name
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1945
}
}
note: false
timertriggers: []
ignoreworker: false
"13":
id: "13"
taskid: f1f4b17f-9632-442d-8924-2531f5eba4e5
type: regular
task:
id: f1f4b17f-9632-442d-8924-2531f5eba4e5
version: -1
name: Query File
description: Query files as part of investigation
script: Cybereason|||cybereason-query-file
type: regular
iscommand: true
brand: Cybereason
nexttasks:
'#none#':
- "14"
scriptarguments:
file_hash:
simple: b5962945811f8d275a3a69334dbc81e8
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 2120
}
}
note: false
timertriggers: []
ignoreworker: false
"14":
id: "14"
taskid: 2241dc93-920e-416a-86d0-3fff5ff6e33b
type: condition
task:
id: 2241dc93-920e-416a-86d0-3fff5ff6e33b
version: -1
name: Verify Query File Outputs
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "15"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: Cybereason.File.MD5
iscontext: true
right:
value:
simple: b5962945811f8d275a3a69334dbc81e8
- - operator: isEqualString
left:
value:
simple: File.MD5
iscontext: true
right:
value:
simple: b5962945811f8d275a3a69334dbc81e8
- - operator: isExists
left:
value:
simple: Cybereason.File.SHA1
iscontext: true
- - operator: isExists
left:
value:
simple: Cybereason.File.Name
iscontext: true
- - operator: isExists
left:
value:
simple: Cybereason.File.Machine
iscontext: true
- - operator: isExists
left:
value:
simple: Cybereason.File.Malicious
iscontext: true
view: |-
{
"position": {
"x": 50,
"y": 2295
}
}
note: false
timertriggers: []
ignoreworker: false
"15":
id: "15"
taskid: 63f82e7f-5e09-4449-89df-67e464fccad3
type: regular
task:
id: 63f82e7f-5e09-4449-89df-67e464fccad3
version: -1
name: Query Domain
script: '|||cybereason-query-domain'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "16"
scriptarguments:
domain:
simple: analytics.twitter.com
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 2470
}
}
note: false
timertriggers: []
ignoreworker: false
"16":
id: "16"
taskid: c9c278f2-0067-44dc-8202-3b63d488639a
type: condition
task:
id: c9c278f2-0067-44dc-8202-3b63d488639a
version: -1
name: Verify Query Domain Outputs
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "17"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: Cybereason.Domain.Name
iscontext: true
right:
value:
simple: analytics.twitter.com
- - operator: isEqualString
left:
value:
simple: Domain.Name
iscontext: true
right:
value:
simple: analytics.twitter.com
- - operator: isExists
left:
value:
simple: Cybereason.Domain.Malicious
iscontext: true
- - operator: isExists
left:
value:
simple: Cybereason.Domain.IsInternalDomain
iscontext: true
- - operator: isExists
left:
value:
simple: Cybereason.Domain.Reputation
iscontext: true
view: |-
{
"position": {
"x": 50,
"y": 2645
}
}
note: false
timertriggers: []
ignoreworker: false
"17":
id: "17"
taskid: 4e95f874-df25-460d-8da1-2265eec5304a
type: regular
task:
id: 4e95f874-df25-460d-8da1-2265eec5304a
version: -1
name: Query User
script: '|||cybereason-query-user'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "18"
scriptarguments:
username:
simple: ec2amaz-5man2hc\network service
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 2820
}
}
note: false
timertriggers: []
ignoreworker: false
"18":
id: "18"
taskid: 8e94eb16-d4ff-4a72-82be-48badaeeeb6a
type: condition
task:
id: 8e94eb16-d4ff-4a72-82be-48badaeeeb6a
version: -1
name: Verify Query User Outputs
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "7"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: Cybereason.User.Username
iscontext: true
right:
value:
simple: ec2amaz-5man2hc\network service
- - operator: isExists
left:
value:
simple: Cybereason.User.Domain
iscontext: true
- - operator: isExists
left:
value:
simple: Cybereason.User.LastMachineLoggedInTo
iscontext: true
- - operator: isExists
left:
value:
simple: Cybereason.User.LocalSystem
iscontext: true
view: |-
{
"position": {
"x": 50,
"y": 2995
}
}
note: false
timertriggers: []
ignoreworker: false
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 3185,
"width": 380,
"x": 50,
"y": 50
}
}
}
inputs: []
outputs: []