-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
playbook-T1059_-_Command_and_Scripting_Interpreter.yml
1582 lines (1575 loc) · 41.1 KB
/
playbook-T1059_-_Command_and_Scripting_Interpreter.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
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
id: T1059 - Command and Scripting Interpreter
version: -1
name: T1059 - Command and Scripting Interpreter
description: "This playbook handles command and scripting interpreter alerts based on the MITRE T1059 technique.\nAn attacker might abuse command and script interpreters to execute commands, scripts, or binaries.\nMost systems come with some kind of built-in command line interface and scripting capabilities. For example, macOS and Linux distributions include some form of Unix Shell while Windows installations include the Windows Command Shell and PowerShell.\n\n\n**Attacker's Goals:**\n\nAn attacker can abuse these technologies in various ways as a means of executing arbitrary commands. Commands and scripts can be embedded in initial access payloads delivered to victims as lure documents or as secondary payloads downloaded from an existing C2. An attacker may also execute commands through interactive terminals/shells, as well as utilize various remote services to achieve remote execution.\n\n**Analysis**\n\nDue to the nature of this technique and the usage of built-in command line interfaces, the first step of the playbook is to analyze the command line. \nThe command line analysis does the following:\n- Checks and decodes base64\n- Extracts and enriches indicators from the command line\n- Checks specific arguments for malicious usage \n\n**Investigative Actions:**\nThe playbook checks for additional activity using the 'Endpoint Investigation Plan' playbook and utilizes the power of insight alerts.\n\n**Response Actions**\n\nAfter analyzing the data, the playbook's first response action is to contain the threat based on the initial data provided within the alert. In this phase, the playbook will:\n\n* Isolate the endpoint based on playbook inputs.\n\nWhen the playbook proceeds, it checks for additional activity using the 'Endpoint Investigation Plan' playbook. It then continues with the next stage, which includes, containment and eradication.\n\nThis phase executes the following containment actions:\n\n* Automatically isolates the endpoint\n\nIt then continues with the following eradication actions:\n\n* process termination"
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 8a695fbb-5cd5-4fed-8c05-2de37b374f02
type: start
task:
id: 8a695fbb-5cd5-4fed-8c05-2de37b374f02
version: -1
name: ""
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "3"
separatecontext: false
view: |-
{
"position": {
"x": 1140,
"y": -90
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"3":
id: "3"
taskid: 2eca42b7-3c92-4b5a-8395-9696e76b2eca
type: title
task:
id: 2eca42b7-3c92-4b5a-8395-9696e76b2eca
version: -1
name: Analysis
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "54"
separatecontext: false
view: |-
{
"position": {
"x": 1140,
"y": 95
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"14":
id: "14"
taskid: e41ef180-47df-4fc3-8661-b9c760d51cbd
type: title
task:
id: e41ef180-47df-4fc3-8661-b9c760d51cbd
version: -1
name: 'Containment '
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "51"
separatecontext: false
view: |-
{
"position": {
"x": 1140,
"y": 2050
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"15":
id: "15"
taskid: 93ddf2dd-f186-4e8f-8600-d63d0008f0be
type: title
task:
id: 93ddf2dd-f186-4e8f-8600-d63d0008f0be
version: -1
name: Finding
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "39"
separatecontext: false
view: |-
{
"position": {
"x": 1140,
"y": 600
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"16":
id: "16"
taskid: 9bcab523-2706-4c67-8a92-bd215b33334a
type: condition
task:
id: 9bcab523-2706-4c67-8a92-bd215b33334a
version: -1
name: Manual review - was it your security vendor?
description: |+
Check the script that ran and verify:
Was it your security vendor? Was it a script from your IT, or a known file?
type: condition
iscommand: false
brand: ""
nexttasks:
"No":
- "57"
"Yes":
- "44"
separatecontext: false
view: |-
{
"position": {
"x": 720,
"y": 1320
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"17":
id: "17"
taskid: 44575d80-9fe5-4a34-877a-e0aebb078ffb
type: regular
task:
id: 44575d80-9fe5-4a34-877a-e0aebb078ffb
version: -1
name: close alert
description: Closes the alert in Cortex XSIAM
script: Builtin|||closeInvestigation
type: regular
iscommand: true
brand: Builtin
nexttasks:
'#none#':
- "29"
scriptarguments:
closeReason:
simple: Resolved - Threat Handled
separatecontext: false
view: |-
{
"position": {
"x": 1140,
"y": 3890
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"19":
id: "19"
taskid: c71ad1c3-4763-48f8-8924-a5829300da3a
type: title
task:
id: c71ad1c3-4763-48f8-8924-a5829300da3a
version: -1
name: Investigation
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "50"
separatecontext: false
view: |-
{
"position": {
"x": 1140,
"y": 2375
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"27":
id: "27"
taskid: 9584a013-1f93-4b4f-8e0f-9dfc08f4fd77
type: title
task:
id: 9584a013-1f93-4b4f-8e0f-9dfc08f4fd77
version: -1
name: 'Remediation '
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "42"
- "52"
separatecontext: false
view: |-
{
"position": {
"x": 1140,
"y": 2910
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"28":
id: "28"
taskid: 65b1e124-5960-4978-8951-db9ab7ec1b66
type: condition
task:
id: 65b1e124-5960-4978-8951-db9ab7ec1b66
version: -1
name: Should restore affected endpoint?
description: Checks if it should release the affected endpoint from isolation.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "34"
"yes":
- "43"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
complex:
root: inputs.AutoRestoreEndpoint
iscontext: true
right:
value:
simple: "True"
ignorecase: true
view: |-
{
"position": {
"x": 800,
"y": 3365
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"29":
id: "29"
taskid: a0944a44-9352-42db-8c79-7efb05810cb0
type: title
task:
id: a0944a44-9352-42db-8c79-7efb05810cb0
version: -1
name: Done
type: title
iscommand: false
brand: ""
description: ''
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 4080
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"34":
id: "34"
taskid: efb795f3-f412-4285-86d3-c5993ab4affd
type: condition
task:
id: efb795f3-f412-4285-86d3-c5993ab4affd
version: -1
name: Should close alert automatically?
description: Whether to close the alert automatically or manually.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "29"
"yes":
- "17"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
complex:
root: inputs.ShouldCloseAutomatically
iscontext: true
right:
value:
simple: "True"
ignorecase: true
view: |-
{
"position": {
"x": 800,
"y": 3720
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"39":
id: "39"
taskid: b1838b4e-9970-4c49-8018-6145798ee35d
type: condition
task:
id: b1838b4e-9970-4c49-8018-6145798ee35d
version: -1
name: 'Found any malicious behavior? '
description: Checks if malicious behavior was found.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "55"
"yes":
- "57"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: CommandlineVerdict
iscontext: true
right:
value: {}
view: |-
{
"position": {
"x": 1140,
"y": 740
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"42":
id: "42"
taskid: 7f4600b1-e7eb-4e39-8d1f-d4a60f0f01e4
type: playbook
task:
id: 7f4600b1-e7eb-4e39-8d1f-d4a60f0f01e4
version: -1
name: Eradication Plan
description: |-
This playbook handles all the eradication actions available with Cortex XSIAM.
The playbook allows you to eradicate the incident with one of the following tasks:
* Reset user password
* Delete file
* Kill process (currently, the playbook supports terminating a process by name).
The playbook inputs allows you to manipulate the execution flow, please pay attention to the inputs description.
playbookName: Eradication Plan
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "49"
scriptarguments:
AutoEradicate:
simple: "false"
EndpointID:
complex:
root: alert
accessor: agentid
FilePath:
complex:
root: foundIncidents.CustomFields
accessor: initiatorpath
FileRemediation:
simple: Quarantine
Username:
complex:
root: foundIncidents.CustomFields
accessor: username
separatecontext: true
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 100
view: |-
{
"position": {
"x": 1140,
"y": 3050
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"43":
id: "43"
taskid: 7dd85db5-f1ee-48ac-8c44-2d953ce9e43d
type: playbook
task:
id: 7dd85db5-f1ee-48ac-8c44-2d953ce9e43d
version: -1
name: Recovery Plan
description: |-
This playbook handles all the recovery actions available with Cortex XSIAM.
The playbook allows to recover from the incident with one of the following tasks:
* Unisolate endpoint
* Restore quarantined file
The playbook inputs allows you to manipulate the execution flow, please pay attention to the inputs description.
playbookName: Recovery Plan
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "34"
scriptarguments:
endpointID:
complex:
root: alert
accessor: agentid
releaseFile:
simple: "false"
unIsolateEndpoint:
simple: "true"
separatecontext: true
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 100
view: |-
{
"position": {
"x": 1140,
"y": 3540
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"44":
id: "44"
taskid: b7f1d891-9d2e-4dd2-8926-5c3606a9c7f3
type: playbook
task:
id: b7f1d891-9d2e-4dd2-8926-5c3606a9c7f3
version: -1
name: Handle False Positive Alerts
description: |
This playbook handles false positive alerts.
playbookName: Handle False Positive Alerts
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "29"
scriptarguments:
FileSHA256:
complex:
root: alert
accessor: initiatorsha256
ShouldCloseAutomatically:
complex:
root: inputs.ShouldCloseAutomatically
alertName:
complex:
root: alert
accessor: name
sourceIP:
complex:
root: alert
accessor: hostip
username:
complex:
root: alert
accessor: username
separatecontext: true
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 100
view: |-
{
"position": {
"x": 450,
"y": 1500
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"47":
id: "47"
taskid: 2b789413-c965-4c6f-867f-bf3525a2d620
type: playbook
task:
id: 2b789413-c965-4c6f-867f-bf3525a2d620
version: -1
name: Command-Line Analysis
description: "This playbook takes the command line from the alert and performs the following actions:\n- Checks for base64 string and decodes if exists\n- Extracts and enriches indicators from the command line\n- Checks specific arguments for malicious usage \n\nAt the end of the playbook, it sets a possible verdict for the command line, based on the finding:\n1. Indicators found in the command line\n2. Found AMSI techniques\n3. Found suspicious parameters\n4. Usage of malicious tools\n5. Indication of network activity"
playbookName: Command-Line Analysis
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "15"
scriptarguments:
Commandline:
complex:
root: Core.DynamicAnalysis.internals.attributes
accessor: content
transformers:
- operator: SetIfEmpty
args:
applyIfEmpty: {}
defaultValue:
value:
simple: ${Core.DynamicAnalysis.internals.attributes.scriptblock_text}
- operator: SetIfEmpty
args:
applyIfEmpty: {}
defaultValue:
value:
simple: ${Core.DynamicAnalysis.internals.attributes.original_command_line}
- operator: SetIfEmpty
args:
applyIfEmpty: {}
defaultValue:
value:
simple: ${alert.targetprocesscmd}
separatecontext: false
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 100
view: |-
{
"position": {
"x": 1140,
"y": 420
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"48":
id: "48"
taskid: ccddf57e-2637-434a-8bb1-2ac71c2111dc
type: condition
task:
id: ccddf57e-2637-434a-8bb1-2ac71c2111dc
version: -1
name: Found relevant information?
description: Checks whether relevant information is found.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "49"
"yes":
- "27"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
complex:
root: foundIncidents
iscontext: true
view: |-
{
"position": {
"x": 1140,
"y": 2700
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"49":
id: "49"
taskid: ec9ef19d-b6cf-4245-862b-0aecee3d7fb1
type: title
task:
id: ec9ef19d-b6cf-4245-862b-0aecee3d7fb1
version: -1
name: Recovery
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "28"
separatecontext: false
view: |-
{
"position": {
"x": 800,
"y": 3220
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"50":
id: "50"
taskid: 9a7af198-01cb-4a8c-8a67-55cf63a473a2
type: playbook
task:
id: 9a7af198-01cb-4a8c-8a67-55cf63a473a2
version: -1
name: Endpoint Investigation Plan
description: |-
This playbook handles all the endpoint investigation actions available with Cortex XSIAM.
The playbook allows you to investigate and hunt for more information using one of the following tasks:
* Pre-defined MITRE Tactics
* Host fields (Host ID)
* Attacker fields (Attacker IP, External host)
* MITRE techniques
* File hash (currently, the playbook supports only SHA256)
The playbook inputs allows you to manipulate the execution flow, please pay attention to the inputs description.
playbookName: Endpoint Investigation Plan
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "48"
scriptarguments:
HuntCnCTechniques:
simple: "True"
HuntCollectionTechniques:
simple: "True"
HuntDefenseEvasionTechniques:
simple: "True"
HuntDiscoveryTechniques:
simple: "True"
HuntExecutionTechniques:
simple: "True"
HuntImpactTechniques:
simple: "True"
HuntInitialAccessTechniques:
simple: "True"
HuntLateralMovementTechniques:
simple: "True"
HuntPersistenceTechniques:
simple: "True"
HuntPrivilegeEscalationTechniques:
simple: "True"
HuntReconnaissanceTechniques:
simple: "True"
agentID:
complex:
root: alert
accessor: agentid
timeRange:
simple: 2 hours ago
separatecontext: true
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 100
view: |-
{
"position": {
"x": 1140,
"y": 2520
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"51":
id: "51"
taskid: 54fef140-47c3-4dfb-846a-8783124320b4
type: playbook
task:
id: 54fef140-47c3-4dfb-846a-8783124320b4
version: -1
name: Containment Plan
description: |-
This playbook handles all the containment actions available with XSIAM.
The playbook allows to contain the incident with one of the following tasks:
* Isolate endpoint
* Disable account
* Quarantine file
* Block indicators
* Clear user session (currently, the playbook supports only Okta)
The playbook inputs allows you to manipulate the execution flow, please pay attention to the inputs description.
playbookName: Containment Plan
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "19"
scriptarguments:
AutoContainment:
complex:
root: inputs.AutoContainment
transformers:
- operator: SetIfEmpty
args:
applyIfEmpty: {}
defaultValue:
value:
simple: "true"
BlockIndicators:
simple: "True"
ClearUserSessions:
simple: "False"
Domain:
complex:
root: ExtractedIndicators
accessor: Domain
EndpointID:
complex:
root: alert
accessor: agentid
FileContainment:
simple: "False"
FileRemediation:
simple: Quarantine
IP:
complex:
root: ExtractedIndicators
accessor: IP
URL:
complex:
root: ExtractedIndicators
accessor: URL
UserContainment:
simple: "False"
separatecontext: true
loop:
iscommand: false
scriptArguments:
AutoContainment:
complex:
root: inputs.AutoContainment
transformers:
- operator: SetIfEmpty
args:
applyIfEmpty: {}
defaultValue:
value:
simple: "true"
BlockIndicators:
simple: "True"
ClearUserSessions:
simple: "False"
EndpointID:
complex:
root: alert
accessor: agentid
FileContainment:
simple: "True"
FileHash:
complex:
root: alert
filters:
- - operator: isNotEqualString
left:
value:
simple: alert.initiatorpath
iscontext: true
right:
value:
simple: c:\windows\explorer.exe
ignorecase: true
accessor: initiatorsha256
transformers:
- operator: SetIfEmpty
args:
applyIfEmpty: {}
defaultValue:
value:
simple: alert.targetprocesssha256
iscontext: true
FilePath:
complex:
root: alert.initiatorpath
filters:
- - operator: isNotEqualString
left:
value:
simple: alert.initiatorpath
iscontext: true
right:
value:
simple: c:\windows\explorer.exe
ignorecase: true
transformers:
- operator: SetIfEmpty
args:
applyIfEmpty: {}
defaultValue:
value:
simple: alert.targetprocesscmd
iscontext: true
- operator: replaceMatch
args:
regex:
value:
simple: \"
replaceWith: {}
- operator: uniq
FileRemediation:
simple: Quarantine
IAMUserDomain: {}
UserContainment:
simple: "False"
Username:
complex:
root: alert
accessor: username
exitCondition: ""
wait: 1
max: 100
view: |-
{
"position": {
"x": 1140,
"y": 2200
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
continueonerrortype: ""
"52":
id: "52"
taskid: f9aa1d02-285d-4299-8cbc-6ed55d11a413
type: playbook
task:
id: f9aa1d02-285d-4299-8cbc-6ed55d11a413
version: -1
name: Containment Plan
description: |-
This playbook handles all the containment actions available with XSIAM.
The playbook allows to contain the incident with one of the following tasks:
* Isolate endpoint
* Disable account
* Quarantine file
* Block indicators
* Clear user session (currently, the playbook supports only Okta)
The playbook inputs allows you to manipulate the execution flow, please pay attention to the inputs description.
playbookName: Containment Plan
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "49"
scriptarguments:
AutoContainment:
complex:
root: inputs.AutoContainment