-
Notifications
You must be signed in to change notification settings - Fork 15
/
Handle_False_Positive_Alerts.yml
789 lines (789 loc) · 18 KB
/
Handle_False_Positive_Alerts.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
id: Handle False Positive Alerts
version: 1
contentitemexportablefields:
contentitemfields:
packID: CommonPlaybooks
packName: Common Playbooks
itemVersion: 2.2.1
fromServerVersion: 6.6.0
toServerVersion: ""
definitionid: ""
vcShouldKeepItemLegacyProdMachine: false
name: Handle False Positive Alerts
description: |
This playbook handles false positive alerts.
It creates an alert exclusion or alert exception, or adds a file to an allow list based on the alert fields and playbook inputs.
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: cf2feb0d-c5f6-45ae-8dbc-e4a7cd7ccdae
type: start
task:
id: cf2feb0d-c5f6-45ae-8dbc-e4a7cd7ccdae
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "8"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -1330,
"y": 640
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"1":
id: "1"
taskid: be9db9ac-960d-4191-8d6a-d11b21bb1b91
type: regular
task:
id: be9db9ac-960d-4191-8d6a-d11b21bb1b91
version: -1
name: Add the source IP to Alert Exclusion list
description: Add the source IP to Alert Exclusion list.
script: '|||core-add-exclusion'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
comment:
simple: Added by Cortex XSIAM.
filterObject:
simple: |2-
{"filter": {
"AND": [
{
"SEARCH_FIELD": "action_local_ip",
"SEARCH_TYPE": "CONTAINS",
"SEARCH_VALUE": "${inputs.sourceIP}"
},
{
"SEARCH_FIELD": "alert_name",
"SEARCH_TYPE": "CONTAINS",
"SEARCH_VALUE": "${inputs.alertName}"
},
{
"SEARCH_FIELD": "alert_source",
"SEARCH_TYPE": "CONTAINS",
"SEARCH_VALUE": "FW"
}
]
}
}
name:
complex:
root: alert
accessor: name
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -2810,
"y": 1410
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"2":
id: "2"
taskid: 3fdcb924-95fb-4c80-813a-3b5bf700c0d0
type: condition
task:
id: 3fdcb924-95fb-4c80-813a-3b5bf700c0d0
version: -1
name: Add the file to the allowed list automatically?
description: Should the playbook add the file to the allowed list automatically?
type: condition
iscommand: false
brand: ""
nexttasks:
Manual Alert Exception:
- "4"
"Yes":
- "14"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -690,
"y": 1100
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"4":
id: "4"
taskid: 49b07556-1ae6-477c-8833-dfed9369e9c7
type: regular
task:
id: 49b07556-1ae6-477c-8833-dfed9369e9c7
version: -1
name: Manual - Create alert exception
description: Create an alert exception for the alert coming from the XDR agent.
type: regular
iscommand: false
brand: Cortex XDR - IR
nexttasks:
'#none#':
- "7"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -400,
"y": 1270
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"5":
id: "5"
taskid: efcbcb8a-07f7-491d-8da6-d235296ff517
type: condition
task:
id: efcbcb8a-07f7-491d-8da6-d235296ff517
version: -1
name: Check the alert source
description: Check the alert source - XDR Analytics or XDR Agent alerts.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "11"
Analytics:
- "12"
XDR Agent:
- "2"
separatecontext: false
conditions:
- label: Analytics
condition:
- - operator: isEqualString
left:
value:
simple: alert.sourceBrand
iscontext: true
right:
value:
simple: ANALYTICS
- operator: isEqualString
left:
value:
simple: alert.sourceBrand
iscontext: true
right:
value:
simple: ANALYTICS_BIOC
- operator: isEqualString
left:
value:
simple: alert.sourceBrand
iscontext: true
right:
value:
simple: FW
- operator: isEqualString
left:
value:
simple: alert.sourceBrand
iscontext: true
right:
value:
simple: MAGNIFIER
- label: XDR Agent
condition:
- - operator: isEqualString
left:
value:
simple: alert.sourceBrand
iscontext: true
right:
value:
simple: TRAPS
continueonerrortype: ""
view: |-
{
"position": {
"x": -1330,
"y": 930
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"7":
id: "7"
taskid: fb1c3fc8-9407-4586-8190-2593c65d77fe
type: title
task:
id: fb1c3fc8-9407-4586-8190-2593c65d77fe
version: -1
name: Alert Closing
description: Close the alert.
type: title
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "9"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -1620,
"y": 1580
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"8":
id: "8"
taskid: e6664a3d-c123-4599-8777-7d7a7b6bf75f
type: title
task:
id: e6664a3d-c123-4599-8777-7d7a7b6bf75f
version: -1
name: 'Add Exception or Exclusion '
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "5"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -1330,
"y": 790
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"9":
id: "9"
taskid: fcaf7697-272b-44a2-818a-f162cd853de0
type: condition
task:
id: fcaf7697-272b-44a2-818a-f162cd853de0
version: -1
name: Should close alert automatically?
description: Should close alert automatically?
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "11"
"yes":
- "10"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
complex:
root: inputs.ShouldCloseAutomatically
transformers:
- operator: toLowerCase
iscontext: true
right:
value:
simple: "true"
continueonerrortype: ""
view: |-
{
"position": {
"x": -1620,
"y": 1740
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"10":
id: "10"
taskid: fc5dca23-a528-4f14-81bc-e4603a63a335
type: regular
task:
id: fc5dca23-a528-4f14-81bc-e4603a63a335
version: -1
name: Close alert as FP
description: Close the alert as false positive.
script: Builtin|||closeInvestigation
type: regular
iscommand: true
brand: Builtin
nexttasks:
'#none#':
- "11"
scriptarguments:
closeNotes:
simple: Closed by XSIAM as False Positive.
closeReason:
simple: Resolved - False Positive
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -1820,
"y": 1910
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"11":
id: "11"
taskid: d672a63d-6655-4cbf-803b-9ea8a548b351
type: title
task:
id: d672a63d-6655-4cbf-803b-9ea8a548b351
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -1330,
"y": 2080
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"12":
id: "12"
taskid: 96a66899-9dab-4e68-8ab2-debbc2318d3b
type: condition
task:
id: 96a66899-9dab-4e68-8ab2-debbc2318d3b
version: -1
name: Check alert origin
description: Check the alert's origin - FW, AWS, etc.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "17"
AWS IAM:
- "15"
FW:
- "13"
separatecontext: false
conditions:
- label: FW
condition:
- - operator: isEqualString
left:
value:
simple: alert.sourceBrand
iscontext: true
right:
value:
simple: FW
- label: AWS IAM
condition:
- - operator: isEqualString
left:
value:
simple: alert.sourceBrand
iscontext: true
right:
value:
simple: ANALYTICS_BIOC
- - operator: containsString
left:
value:
simple: alert.details
iscontext: true
right:
value:
simple: aws
continueonerrortype: ""
view: |-
{
"position": {
"x": -2030,
"y": 1100
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"13":
id: "13"
taskid: 9b761c81-0c80-4852-87db-9613a3225648
type: title
task:
id: 9b761c81-0c80-4852-87db-9613a3225648
version: -1
name: NGFW Alerts
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -2810,
"y": 1270
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"14":
id: "14"
taskid: dd742739-f827-441e-8270-761550d10287
type: regular
task:
id: dd742739-f827-441e-8270-761550d10287
version: -1
name: Add file hash to allowed list
description: Adds requested files to allow list if they are not already on block
list or allow list.
script: '|||core-allowlist-files'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
comment:
simple: Added by Cortex XSIAM.
hash_list:
complex:
root: inputs.FileSHA256
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -1050,
"y": 1270
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"15":
id: "15"
taskid: d489f8e9-9873-410e-818a-551690ea114d
type: title
task:
id: d489f8e9-9873-410e-818a-551690ea114d
version: -1
name: AWS IAM Alerts
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "16"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -2180,
"y": 1270
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"16":
id: "16"
taskid: 55f04aa2-8ca8-4069-8c10-fe377a4ff6a9
type: regular
task:
id: 55f04aa2-8ca8-4069-8c10-fe377a4ff6a9
version: -1
name: Add the host IP and username to Alert Exclusion list
description: Add the host IP and username to Alert Exclusion list.
script: '|||core-add-exclusion'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
comment:
simple: Added by Cortex XSIAM.
filterObject:
simple: |-
{"filter": {
"AND": [
{
"SEARCH_FIELD": "agent_ip_addresses",
"SEARCH_TYPE": "CONTAINS",
"SEARCH_VALUE": "${inputs.HostIP}"
},
{
"SEARCH_FIELD": "actor_effective_username",
"SEARCH_TYPE": "CONTAINS",
"SEARCH_VALUE": "${inputs.username}"
},
{
"SEARCH_FIELD": "alert_name",
"SEARCH_TYPE": "CONTAINS",
"SEARCH_VALUE": "${inputs.alertName}"
}
]
}
}
name:
complex:
root: alert
accessor: name
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -2180,
"y": 1410
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"17":
id: "17"
taskid: 709a8173-a716-41ae-8ba5-f410b1097caa
type: title
task:
id: 709a8173-a716-41ae-8ba5-f410b1097caa
version: -1
name: SHA256
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "18"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -1620,
"y": 1270
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"18":
id: "18"
taskid: f16eee8e-e537-458e-8a5f-9e3afa34b0af
type: regular
task:
id: f16eee8e-e537-458e-8a5f-9e3afa34b0af
version: -1
name: Add the file SHA256 to Alert Exclusion list
description: Add the file SHA256 to Alert Exclusion list.
script: '|||core-add-exclusion'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
comment:
simple: Added by Cortex XSIAM.
filterObject:
simple: |-
{"filter": {
"AND": [
{
"SEARCH_FIELD": "actor_process_image_sha256",
"SEARCH_TYPE": "CONTAINS",
"SEARCH_VALUE": "${inputs.FileSHA256}"
},
{
"SEARCH_FIELD": "alert_name",
"SEARCH_TYPE": "CONTAINS",
"SEARCH_VALUE": "${inputs.alertName}"
}
]
}
}
name:
complex:
root: alert
accessor: name
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -1620,
"y": 1400
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
system: true
view: |-
{
"linkLabelsPosition": {
"5_11_#default#": 0.32,
"9_10_yes": 0.42,
"9_11_#default#": 0.48
},
"paper": {
"dimensions": {
"height": 1505,
"width": 2790,
"x": -2810,
"y": 640
}
}
}
inputs:
- key: ShouldCloseAutomatically
value: {}
required: false
description: Should we automatically close false positive alerts? Specify true/false.
playbookInputQuery: null
- key: sourceIP
value:
complex:
root: alert
accessor: hostip
required: false
description: The host IP from the alert.
playbookInputQuery: null
- key: username
value:
complex:
root: alert
accessor: username
required: false
description: The username from the alert.
playbookInputQuery: null
- key: alertName
value:
complex:
root: alert
accessor: name
required: false
description: The alert name.
playbookInputQuery: null
- key: FileSHA256
value:
complex:
root: alert
accessor: initiatorsha256
required: false
description: The file SHA256 from the alert.
playbookInputQuery: null
outputs: []