-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathplaybook-Jask_Test-4.0.0.yml
More file actions
651 lines (651 loc) · 14.9 KB
/
playbook-Jask_Test-4.0.0.yml
File metadata and controls
651 lines (651 loc) · 14.9 KB
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
id: Jask_Test
version: -1
name: Jask Test
toversion: 4.0.9
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 1dfe79ba-2b8b-4d40-8f8a-830ecc1a76f1
type: start
task:
id: 1dfe79ba-2b8b-4d40-8f8a-830ecc1a76f1
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
separatecontext: false
view: |-
{
"position": {
"x": 1125,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
"1":
id: "1"
taskid: f3b824c2-45a4-4123-8307-f04acf62b9b6
type: regular
task:
id: f3b824c2-45a4-4123-8307-f04acf62b9b6
version: -1
name: Get insights for a given date
description: 'Search insights using the given filters. '
script: '|||jask-search-insights'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "2"
scriptarguments:
assigned-team: {}
assigned-user: {}
last-seen: {}
limit: {}
offset: {}
rating: {}
sort: {}
status: {}
time-from:
simple: 12/1/2018
time-to:
simple: 12/29/2019
separatecontext: false
view: |-
{
"position": {
"x": 910,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
"2":
id: "2"
taskid: a5525492-d9cb-40e6-8f06-4c299abbf46f
type: regular
task:
id: a5525492-d9cb-40e6-8f06-4c299abbf46f
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#':
- "4"
- "19"
scriptarguments:
expectedValue:
simple: "true"
fields: {}
path:
simple: Jask.Insight=>val.length >= 1
separatecontext: false
view: |-
{
"position": {
"x": 910,
"y": 545
}
}
note: false
timertriggers: []
ignoreworker: false
"3":
id: "3"
taskid: e611ac11-fa73-4d46-80d9-de0cbe256c6c
type: regular
task:
id: e611ac11-fa73-4d46-80d9-de0cbe256c6c
version: -1
name: DeleteContext
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
- "11"
- "13"
- "21"
scriptarguments:
all:
simple: "yes"
key: {}
separatecontext: false
view: |-
{
"position": {
"x": 1125,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
"4":
id: "4"
taskid: b539dcf6-b35c-4230-8870-c4a065742ce4
type: regular
task:
id: b539dcf6-b35c-4230-8870-c4a065742ce4
version: -1
name: Get details for the first one
description: Get Insight details for a specific Insight ID. Insight details
command references SmartAlerts, which are the highest level abstractions in
JASK SIEM consisting of multiple signals, and records and relating to one
or more assets.
script: '|||jask-get-insight-details'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "5"
- "6"
scriptarguments:
insight-id:
simple: ${Jask.Insight.[0].Id}
separatecontext: false
view: |-
{
"position": {
"x": 695,
"y": 720
}
}
note: false
timertriggers: []
ignoreworker: false
"5":
id: "5"
taskid: 54e942af-589b-46b6-83ba-b43e487122d2
type: regular
task:
id: 54e942af-589b-46b6-83ba-b43e487122d2
version: -1
name: Get entity details for first related entity
description: Get entity details for a specific entity ID
script: '|||jask-get-entity-details'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
entity-id:
complex:
root: Jask
accessor: Insight.EntityDetails.Id
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 895
}
}
note: false
timertriggers: []
ignoreworker: false
"6":
id: "6"
taskid: 2246ad22-6d23-4e3b-8fcd-534b71493035
type: regular
task:
id: 2246ad22-6d23-4e3b-8fcd-534b71493035
version: -1
name: Get signal details for first related signal
description: Get Signal details for a specific Signal ID. Signal details command
references signals in JASK which are created when records exhibit suspicious
properties and mate with patterns or other detection logic.
script: '|||jask-get-signal-details'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "8"
scriptarguments:
signal-id:
simple: ${Jask.Insight.SignalList.[0].Id}
separatecontext: false
view: |-
{
"position": {
"x": 910,
"y": 1070
}
}
note: false
timertriggers: []
ignoreworker: false
"7":
id: "7"
taskid: 0d4df15a-863f-4801-885b-1d2ac034f191
type: regular
task:
id: 0d4df15a-863f-4801-885b-1d2ac034f191
version: -1
name: Verify we have an entity
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#':
- "9"
scriptarguments:
expectedValue: {}
fields: {}
path:
simple: Jask.Entity.Id
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 1070
}
}
note: false
timertriggers: []
ignoreworker: false
"8":
id: "8"
taskid: 7ab79c45-f4ca-4d1c-83fe-e6729eb685e2
type: regular
task:
id: 7ab79c45-f4ca-4d1c-83fe-e6729eb685e2
version: -1
name: Verify we have a signal
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#':
- "20"
scriptarguments:
expectedValue: {}
fields: {}
path:
simple: Jask.Signal.Id
separatecontext: false
view: |-
{
"position": {
"x": 910,
"y": 1245
}
}
note: false
timertriggers: []
ignoreworker: false
"9":
id: "9"
taskid: 551e9bcf-c998-4eb5-82f7-7e22e483e339
type: regular
task:
id: 551e9bcf-c998-4eb5-82f7-7e22e483e339
version: -1
name: Get entities related to the given entity
description: Get entities related to a specific entity ID.
script: '|||jask-get-related-entities'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "20"
scriptarguments:
entity-id:
simple: ${Jask.Entity.Id}
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 1245
}
}
note: false
timertriggers: []
ignoreworker: false
"11":
id: "11"
taskid: e0da9ca1-0332-437c-871e-5f09a6e03538
type: regular
task:
id: e0da9ca1-0332-437c-871e-5f09a6e03538
version: -1
name: Get signals for a given date
description: 'Search signals using the given filters. '
script: '|||jask-search-signals'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "12"
scriptarguments:
category: {}
last-seen: {}
limit:
simple: "10"
offset: {}
sort: {}
source: {}
time-from:
simple: 12/20/2018
time-to:
simple: 12/29/2018
separatecontext: false
view: |-
{
"position": {
"x": 1770,
"y": 1070
}
}
note: false
timertriggers: []
ignoreworker: false
"12":
id: "12"
taskid: 7a65358e-0a34-4fa7-89ad-7a06a199c6d1
type: regular
task:
id: 7a65358e-0a34-4fa7-89ad-7a06a199c6d1
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#':
- "20"
scriptarguments:
expectedValue:
simple: "true"
fields: {}
path:
simple: Jask.Signal=>val.length >= 10
separatecontext: false
view: |-
{
"position": {
"x": 1770,
"y": 1245
}
}
note: false
timertriggers: []
ignoreworker: false
"13":
id: "13"
taskid: 86d139ac-5bff-41bb-86dd-e9ffe1404409
type: regular
task:
id: 86d139ac-5bff-41bb-86dd-e9ffe1404409
version: -1
name: Get entities for a given date
description: Search entities using the given filters.
script: '|||jask-search-entities'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "14"
scriptarguments:
entity-type: {}
last-seen: {}
limit:
simple: "10"
offset: {}
sort: {}
time-from:
simple: 12/20/2018
time-to:
simple: 12/29/2018
separatecontext: false
view: |-
{
"position": {
"x": 2200,
"y": 1070
}
}
note: false
timertriggers: []
ignoreworker: false
"14":
id: "14"
taskid: 1ad2b6fd-26fa-4901-8b5d-192e5dd1165c
type: condition
task:
id: 1ad2b6fd-26fa-4901-8b5d-192e5dd1165c
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
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "20"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
complex:
root: Jask
accessor: Entity
transformers:
- operator: count
iscontext: true
right:
value:
simple: "10"
view: |-
{
"position": {
"x": 2200,
"y": 1245
}
}
note: false
timertriggers: []
ignoreworker: false
"19":
id: "19"
taskid: 58a64c77-f800-4968-81e7-29d3a3b58b94
type: regular
task:
id: 58a64c77-f800-4968-81e7-29d3a3b58b94
version: -1
name: jask-get-insight-comments
description: Get comments for a specific Insight ID. (Users can post and update
comments on the JASK SIEM portal for any Insight ID.)
script: '|||jask-get-insight-comments'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "20"
scriptarguments:
insight-id:
simple: ${Jask.Insight.[0].Id}
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 1245
}
}
note: false
timertriggers: []
ignoreworker: false
"20":
id: "20"
taskid: 03493a0f-fcb5-45d4-8b15-716f481791e2
type: regular
task:
id: 03493a0f-fcb5-45d4-8b15-716f481791e2
version: -1
name: closeInvestigation
description: Close the current investigation
script: Builtin|||closeInvestigation
type: regular
iscommand: true
brand: Builtin
scriptarguments:
assetid: {}
closeNotes: {}
closeReason: {}
id: {}
separatecontext: false
view: |-
{
"position": {
"x": 1125,
"y": 1420
}
}
note: false
timertriggers: []
ignoreworker: false
"21":
id: "21"
taskid: 2dc5cf78-a38e-4119-86b6-05a60739b71e
type: regular
task:
id: 2dc5cf78-a38e-4119-86b6-05a60739b71e
version: -1
name: Test Fetch Incidents
scriptName: FetchFromInstance
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "22"
scriptarguments:
add_to_context:
simple: "true"
brand_name:
simple: Jask
expect_data: {}
instance_name: {}
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1070
}
}
note: false
timertriggers: []
ignoreworker: false
"22":
id: "22"
taskid: 5326dafd-a0f4-4b9d-861c-3183e4eabf21
type: condition
task:
id: 5326dafd-a0f4-4b9d-861c-3183e4eabf21
version: -1
name: VerifyContext
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "20"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
simple: FetchedIncidents.id
iscontext: true
- - operator: isExists
left:
value:
simple: FetchedIncidents.severity
iscontext: true
view: |-
{
"position": {
"x": 50,
"y": 1245
}
}
note: false
timertriggers: []
ignoreworker: false
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 1465,
"width": 2530,
"x": 50,
"y": 50
}
}
}
inputs: []
outputs: []