forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-SentinelOne-Beta-Test.yml
957 lines (957 loc) · 20.3 KB
/
playbook-SentinelOne-Beta-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
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
id: SentinelOne V2 - test
version: -1
name: SentinelOne V2 - test
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 372e23d6-59d4-428e-8fa6-cc39c0a83ac2
type: start
task:
id: 372e23d6-59d4-428e-8fa6-cc39c0a83ac2
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
- "22"
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
"1":
id: "1"
taskid: 8c69a666-0427-4d4a-8bcf-745e4784b9dc
type: regular
task:
id: 8c69a666-0427-4d4a-8bcf-745e4784b9dc
version: -1
name: Delete Context
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
- "3"
- "4"
- "7"
- "12"
- "13"
scriptarguments:
all:
simple: "yes"
index: {}
key: {}
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 190
}
}
note: false
timertriggers: []
ignoreworker: false
"2":
id: "2"
taskid: ffa0cb5b-302d-48cc-84f2-68fa45140dbf
type: regular
task:
id: ffa0cb5b-302d-48cc-84f2-68fa45140dbf
version: -1
name: Get Threats
description: Get threats using a variety of filters.
script: '|||sentinelone-get-threats'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "9"
scriptarguments:
classifications: {}
content_hash: {}
created_after: {}
created_before: {}
created_from: {}
created_until: {}
display_name: {}
limit: {}
mitigation_status: {}
query: {}
rank: {}
resolved: {}
threat_ids: {}
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 360
}
}
note: false
timertriggers: []
ignoreworker: false
"3":
id: "3"
taskid: f0a21eb8-d655-4a4d-8bc9-46a1be03183a
type: regular
task:
id: f0a21eb8-d655-4a4d-8bc9-46a1be03183a
version: -1
name: Get Activities
description: Get a list of activities.
script: '|||sentinelone-get-activities'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "17"
scriptarguments:
activities_ids: {}
activity_types: {}
agent_ids: {}
created_after: {}
created_before: {}
created_between: {}
created_from: {}
created_until: {}
group_ids: {}
include_hidden: {}
limit: {}
threats_ids: {}
user_emails: {}
user_ids: {}
separatecontext: false
view: |-
{
"position": {
"x": 1350,
"y": 360
}
}
note: false
timertriggers: []
ignoreworker: false
"4":
id: "4"
taskid: aa1e18d3-a6c0-4a9e-8a9b-070b09e95501
type: regular
task:
id: aa1e18d3-a6c0-4a9e-8a9b-070b09e95501
version: -1
name: Get All agents
description: List all agents matching the input filter.
script: '|||sentinelone-list-agents'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "5"
scriptarguments:
computer_name: {}
created_at: {}
min_active_threats: {}
os_type: {}
scan_status: {}
separatecontext: false
view: |-
{
"position": {
"x": -10,
"y": 360
}
}
note: false
timertriggers: []
ignoreworker: false
"5":
id: "5"
taskid: 192b4a05-e7ac-4342-8329-3521b7c431d0
type: regular
task:
id: 192b4a05-e7ac-4342-8329-3521b7c431d0
version: -1
name: Get Agent
description: Get details of an agent by its ID.
script: '|||sentinelone-get-agent'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "6"
scriptarguments:
agent_id:
simple: "657613730168123595"
separatecontext: false
view: |-
{
"position": {
"x": -10,
"y": 550
}
}
note: false
timertriggers: []
ignoreworker: false
"6":
id: "6"
taskid: 5877b73d-eb2a-45d7-8ecf-eda0eaea13a9
type: regular
task:
id: 5877b73d-eb2a-45d7-8ecf-eda0eaea13a9
version: -1
name: Get Agent Processess
description: Retrieve running processes for a specific agent.
script: '|||sentinelone-agent-processes'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "10"
scriptarguments:
agents_ids:
simple: "657613730168123595"
separatecontext: false
view: |-
{
"position": {
"x": -10,
"y": 740
}
}
note: false
timertriggers: []
ignoreworker: false
"7":
id: "7"
taskid: b952481e-cc6a-4bb4-8feb-7a89848eed74
type: regular
task:
id: b952481e-cc6a-4bb4-8feb-7a89848eed74
version: -1
name: Get all groups
description: Gets the group data.
script: '|||sentinelone-get-groups'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "8"
scriptarguments:
group_id: {}
group_ids: {}
group_type: {}
is_default: {}
limit: {}
name: {}
query: {}
rank: {}
separatecontext: false
view: |-
{
"position": {
"x": 880,
"y": 360
}
}
note: false
timertriggers: []
ignoreworker: false
"8":
id: "8"
taskid: 0e99af0e-c732-41ee-8155-1b8828c4a0af
type: regular
task:
id: 0e99af0e-c732-41ee-8155-1b8828c4a0af
version: -1
name: Get threat summary
description: Get dashboard threat summary.
script: '|||sentinelone-threat-summary'
type: regular
iscommand: true
brand: ""
scriptarguments:
group_ids:
simple: ${SentinelOne.Group.id}
separatecontext: false
view: |-
{
"position": {
"x": 880,
"y": 570
}
}
note: false
timertriggers: []
ignoreworker: false
"9":
id: "9"
taskid: eb36a271-0d54-4a49-8f40-fff09e306f1a
type: regular
task:
id: eb36a271-0d54-4a49-8f40-fff09e306f1a
version: -1
name: Mark as threat
description: Mark suspicious threats as threats
script: '|||sentinelone-mark-as-threat'
type: regular
iscommand: true
brand: ""
scriptarguments:
target_scope:
simple: site
threat_ids:
simple: "513526418089756174"
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 570
}
}
note: false
timertriggers: []
ignoreworker: false
"10":
id: "10"
taskid: 6e027afa-be19-44e6-8c27-cc5a0e1070c4
type: regular
task:
id: 6e027afa-be19-44e6-8c27-cc5a0e1070c4
version: -1
name: Disconnect agent to network
description: Disconnect agents from network
script: '|||sentinelone-disconnect-agent'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "23"
scriptarguments:
agent_id:
simple: ${SentinelOne.Agent.ID}
separatecontext: false
view: |-
{
"position": {
"x": -10,
"y": 910
}
}
note: false
timertriggers: []
ignoreworker: false
"12":
id: "12"
taskid: 6c169566-ebb8-4de5-8da9-c3bc11260722
type: regular
task:
id: 6c169566-ebb8-4de5-8da9-c3bc11260722
version: -1
name: Broadcast Message
description: Broadcasts a message to all agents matching the input filter.
script: '|||sentinelone-broadcast-message'
type: regular
iscommand: true
brand: ""
scriptarguments:
active_agent: {}
agent_id:
simple: "657613730168123595"
domain: {}
group_id: {}
message:
simple: Hey There, just checking
separatecontext: false
view: |-
{
"position": {
"x": -470,
"y": 360
}
}
note: false
timertriggers: []
ignoreworker: false
"13":
id: "13"
taskid: 2ef96a17-2e6d-4508-8d02-4bf28902641b
type: regular
task:
id: 2ef96a17-2e6d-4508-8d02-4bf28902641b
version: -1
name: Create Query ID
description: Start a Deep Visibility Query and get the queryId, use queryId
for all other APIs such as Get All Events
script: '|||sentinelone-create-query'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "16"
scriptarguments:
from_date:
simple: "2019-11-02T04:49:26.257525Z"
query:
simple: AgentName Is Not Empty
to_date:
simple: "2019-11-04T04:49:26.257525Z"
separatecontext: false
view: |-
{
"position": {
"x": 1780,
"y": 360
}
}
note: false
timertriggers: []
ignoreworker: false
"14":
id: "14"
taskid: 70f10008-7b6b-4aa8-896f-609c861178f9
type: regular
task:
id: 70f10008-7b6b-4aa8-896f-609c861178f9
version: -1
name: Get events
description: Get all Deep Visibility events from query
script: '|||sentinelone-get-events'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "18"
scriptarguments:
limit:
simple: "10"
query_id:
simple: ${SentinelOne.Query.QueryID}
separatecontext: false
view: |-
{
"position": {
"x": 1490,
"y": 800
}
}
note: false
timertriggers: []
ignoreworker: false
"15":
id: "15"
taskid: 4ce16d55-cc16-4968-870e-0456f686eb75
type: regular
task:
id: 4ce16d55-cc16-4968-870e-0456f686eb75
version: -1
name: Get processes
description: Get Deep Visibility events from query by event type - process
script: '|||sentinelone-get-processes'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "20"
scriptarguments:
limit: {}
query_id:
simple: ${SentinelOne.Query.QueryID}
separatecontext: false
view: |-
{
"position": {
"x": 2060,
"y": 800
}
}
note: false
timertriggers: []
ignoreworker: false
"16":
id: "16"
taskid: 72a29a2e-23d9-43b5-8a58-f3fd0050bf82
type: regular
task:
id: 72a29a2e-23d9-43b5-8a58-f3fd0050bf82
version: -1
name: Wait
description: Sleep for X seconds
scriptName: Sleep
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "14"
- "15"
scriptarguments:
seconds:
simple: "3"
separatecontext: false
view: |-
{
"position": {
"x": 1780,
"y": 560
}
}
note: false
timertriggers: []
ignoreworker: false
"17":
id: "17"
taskid: 07200a42-c98d-4621-80ca-aa1ff851bb02
type: regular
task:
id: 07200a42-c98d-4621-80ca-aa1ff851bb02
version: -1
name: Get agent activities
description: Returns a list of activities.
script: '|||sentinelone-get-activities'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "21"
scriptarguments:
activities_ids: {}
activity_types: {}
agent_ids:
complex:
root: SentinelOne
accessor: Activity.AgentID
transformers:
- operator: GetFirstObject
created_after: {}
created_before: {}
created_between: {}
created_from: {}
created_until: {}
group_ids: {}
include_hidden: {}
limit:
simple: "10"
threats_ids: {}
user_emails: {}
user_ids: {}
separatecontext: false
view: |-
{
"position": {
"x": 1350,
"y": 560
}
}
note: false
timertriggers: []
ignoreworker: false
"18":
id: "18"
taskid: a5eaaea6-9842-4af0-8627-db86976f4e88
type: condition
task:
id: a5eaaea6-9842-4af0-8627-db86976f4e88
version: -1
name: Verify Context
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "19"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
simple: SentinelOne.Event.ProcessID
iscontext: true
- - operator: isExists
left:
value:
simple: SentinelOne.Event.ProcessName
iscontext: true
view: |-
{
"position": {
"x": 1490,
"y": 990
}
}
note: false
timertriggers: []
ignoreworker: false
"19":
id: "19"
taskid: bddb32d8-876a-4c8c-8dbf-b6633f87c1a0
type: title
task:
id: bddb32d8-876a-4c8c-8dbf-b6633f87c1a0
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
view: |-
{
"position": {
"x": 1490,
"y": 1290
}
}
note: false
timertriggers: []
ignoreworker: false
"20":
id: "20"
taskid: f3c5d128-78e1-40ae-83a5-43b99cdcad57
type: condition
task:
id: f3c5d128-78e1-40ae-83a5-43b99cdcad57
version: -1
name: Verify context
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "19"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
simple: SentinelOne.Event.ProcessID
iscontext: true
- - operator: isExists
left:
value:
simple: SentinelOne.Event.ProcessName
iscontext: true
view: |-
{
"position": {
"x": 2060,
"y": 1010
}
}
note: false
timertriggers: []
ignoreworker: false
"21":
id: "21"
taskid: 07701c13-23b1-4762-8319-94e85b2b246c
type: condition
task:
id: 07701c13-23b1-4762-8319-94e85b2b246c
version: -1
name: Verify outputs
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "19"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
simple: SentinelOne.Activity.ID
iscontext: true
- - operator: isExists
left:
value:
simple: SentinelOne.Activity.ActivityType
iscontext: true
view: |-
{
"position": {
"x": 1040,
"y": 800
}
}
note: false
timertriggers: []
ignoreworker: false
"22":
id: "22"
taskid: c00d738c-090a-402d-8c98-1168433c55a8
type: regular
task:
id: c00d738c-090a-402d-8c98-1168433c55a8
version: -1
name: Fetch Incidents
description: Execute FetchIncident for a given instance
scriptName: FetchFromInstance
type: regular
iscommand: false
brand: ""
scriptarguments:
add_to_context: {}
brand_name:
simple: SentinelOne V2
error_msg_in_incident: {}
expect_data: {}
instance_name: {}
separatecontext: false
view: |-
{
"position": {
"x": -930,
"y": 360
}
}
note: false
timertriggers: []
ignoreworker: false
"23":
id: "23"
taskid: 442fb6dd-12b4-4f4a-8fe7-55114a20aede
type: regular
task:
id: 442fb6dd-12b4-4f4a-8fe7-55114a20aede
version: -1
name: Get agent
description: Returns details of an agent, by agent ID.
script: '|||sentinelone-get-agent'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "24"
scriptarguments:
agent_id:
simple: ${SentinelOne.Agent.ID}
separatecontext: false
view: |-
{
"position": {
"x": -10,
"y": 1160
}
}
note: false
timertriggers: []
ignoreworker: false
"24":
id: "24"
taskid: 0b353d10-fcb6-498f-8aaa-29e29f2bd375
type: condition
task:
id: 0b353d10-fcb6-498f-8aaa-29e29f2bd375
version: -1
name: 'Is the agent disconnected? '
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "25"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: SentinelOne
filters:
- - operator: isEqualString
left:
value:
simple: SentinelOne.Agents.NetworkStatus
iscontext: true
right:
value:
simple: disconnected
- operator: isEqualString
left:
value:
simple: SentinelOne.Agents.NetworkStatus
iscontext: true
right:
value:
simple: disconnecting
accessor: Agent.NetworkStatus
iscontext: true
view: |-
{
"position": {
"x": -10,
"y": 1390
}
}
note: false
timertriggers: []
ignoreworker: false
"25":
id: "25"
taskid: f3102884-292b-4dff-8eba-d31c720b771d
type: regular
task:
id: f3102884-292b-4dff-8eba-d31c720b771d
version: -1
name: Connect agent to network
description: Connects agents to network.
script: '|||sentinelone-connect-agent'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "26"
scriptarguments:
agent_id:
simple: ${SentinelOne.Agent.ID}
separatecontext: false
view: |-
{
"position": {
"x": -10,
"y": 1640
}
}
note: false
timertriggers: []
ignoreworker: false
"26":
id: "26"
taskid: f6f4daef-acbe-4598-86d0-c702020db1f6
type: regular
task:
id: f6f4daef-acbe-4598-86d0-c702020db1f6
version: -1
name: Get agent
description: Returns details of an agent, by agent ID.
script: '|||sentinelone-get-agent'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "27"
scriptarguments:
agent_id:
simple: ${SentinelOne.Agent.ID}
separatecontext: false
view: |-
{
"position": {
"x": -10,
"y": 1840
}
}
note: false
timertriggers: []
ignoreworker: false
"27":
id: "27"
taskid: d3f8002e-3b0d-418f-82dc-f287af8808f7
type: condition
task:
id: d3f8002e-3b0d-418f-82dc-f287af8808f7
version: -1
name: 'Is the agent reconnect? '
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "28"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: SentinelOne.Agent.NetworkStatus
iscontext: true
right:
value:
simple: connecting
view: |-
{
"position": {
"x": -10,
"y": 2030
}
}
note: false
timertriggers: []
ignoreworker: false
"28":
id: "28"
taskid: 67c1d758-51eb-492b-8e88-559894fe49cb
type: title
task:
id: 67c1d758-51eb-492b-8e88-559894fe49cb
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
view: |-
{
"position": {
"x": -10,
"y": 2270
}
}
note: false
timertriggers: []
ignoreworker: false
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 2285,
"width": 3370,
"x": -930,
"y": 50
}
}
}
inputs: []
outputs: []