-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
playbook-Cortex_XDR_-_Cloud_Cryptomining_-_Set_Verdict.yml
503 lines (503 loc) · 13.4 KB
/
playbook-Cortex_XDR_-_Cloud_Cryptomining_-_Set_Verdict.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
id: Cortex XDR - Cryptomining - Set Verdict
version: -1
name: Cortex XDR - XCloud Cryptojacking - Set Verdict
description: "This playbook sets the alert's verdict as malicious if one of the following conditions is true:\n1. If the source IP address is malicious\n2. If the incident includes both \"Unusual allocation of multiple cloud compute resources\" AND \"Cloud identity reached a throttling API rate\" (medium/high severity)\n3. If the incident includes both \"Unusual allocation of multiple cloud compute resources\" AND \"Suspicious heavy allocation of compute resources - possible mining activity\" \n4. If the incident includes \"Unusual allocation of multiple cloud compute resources\" with medium/high severity, the source ASN isn't known, and the source IP isn't known as well.\n5. If the incident includes both \"Unusual allocation of multiple cloud compute resources\" AND \"A cloud compute instance was created in a dormant region\"\n\nIf none of the conditions is true, the playbook will wait for an analyst's decision."
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 65c3510f-3df1-4aed-8536-4acfd9e68c63
type: start
task:
id: 65c3510f-3df1-4aed-8536-4acfd9e68c63
version: -1
name: ""
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "3"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 450,
"y": 100
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"2":
id: "2"
taskid: 3720bbcd-d40b-4797-846e-76176cd9fe57
type: regular
task:
id: 3720bbcd-d40b-4797-846e-76176cd9fe57
version: -1
name: Set verdict - Malicious
description: Set a value in context under the key you entered.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "11"
scriptarguments:
key:
simple: alertVerdict
value:
simple: Malicious
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 450,
"y": 1190
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"3":
id: "3"
taskid: 4745fd0b-4f71-4287-85ec-6453d449460a
type: condition
task:
id: 4745fd0b-4f71-4287-85ec-6453d449460a
version: -1
name: Check caller IP reputation
description: Checks the verdict logic. Refer to the playbook description for detailed information.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "5"
Malicious:
- "2"
separatecontext: false
conditions:
- label: Malicious
condition:
- - operator: greaterThanOrEqual
left:
value:
complex:
root: DBotScore
filters:
- - operator: isEqualString
left:
value:
simple: DBotScore.Indicator
iscontext: true
right:
value:
simple: alertJson.raw_abioc.event.caller_ip
iscontext: true
accessor: Score
iscontext: true
right:
value:
simple: "2"
continueonerrortype: ""
view: |-
{
"position": {
"x": 450,
"y": 230
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"4":
id: "4"
taskid: c97de1ea-62c9-486c-874e-9bd924b83e93
type: condition
task:
id: c97de1ea-62c9-486c-874e-9bd924b83e93
version: -1
name: Unusual allocation & Heavy allocation alerts existence
description: Checks the verdict logic. Refer to the playbook description for detailed information.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "6"
Malicious:
- "2"
separatecontext: false
conditions:
- label: Malicious
condition:
- - operator: containsString
left:
value:
complex:
root: PaloAltoNetworksXDR.Incident.alerts
accessor: name
iscontext: true
right:
value:
simple: Unusual allocation of multiple cloud compute resources
ignorecase: true
- - operator: containsString
left:
value:
complex:
root: PaloAltoNetworksXDR.Incident.alerts
accessor: name
iscontext: true
right:
value:
simple: Suspicious heavy allocation of compute resources - possible mining activity
ignorecase: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 20,
"y": 590
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"5":
id: "5"
taskid: 98b85d0b-2c42-4a40-8890-143aad9aa963
type: condition
task:
id: 98b85d0b-2c42-4a40-8890-143aad9aa963
version: -1
name: Check alert severity & Throttling API rate error alert
description: Checks the verdict logic. Refer to the playbook description for detailed information.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "4"
Malicious:
- "2"
separatecontext: false
conditions:
- label: Malicious
condition:
- - operator: isEqualString
left:
value:
complex:
root: PaloAltoNetworksXDR.Incident.alerts
accessor: name
iscontext: true
right:
value:
simple: Unusual allocation of multiple cloud compute resources
ignorecase: true
- - operator: containsString
left:
value:
complex:
root: PaloAltoNetworksXDR.Incident.alerts
filters:
- - operator: isEqualString
left:
value:
simple: PaloAltoNetworksXDR.Incident.alerts.severity
iscontext: true
right:
value:
simple: medium
ignorecase: true
- operator: isEqualString
left:
value:
simple: PaloAltoNetworksXDR.Incident.alerts.severity
iscontext: true
right:
value:
simple: high
ignorecase: true
accessor: name
iscontext: true
right:
value:
simple: Cloud identity reached a throttling API rate
ignorecase: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 210,
"y": 410
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"6":
id: "6"
taskid: 61bdf893-c55c-4e7a-8f7f-17e2e98a29db
type: condition
task:
id: 61bdf893-c55c-4e7a-8f7f-17e2e98a29db
version: -1
name: Check alert severity & ASN popularity & Agent IP
description: Checks the verdict logic. Refer to the playbook description for detailed information.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "7"
Malicious:
- "2"
separatecontext: false
conditions:
- label: Malicious
condition:
- - operator: containsString
left:
value:
complex:
root: PaloAltoNetworksXDR.Incident.alerts
filters:
- - operator: isEqualString
left:
value:
simple: PaloAltoNetworksXDR.Incident.alerts.severity
iscontext: true
right:
value:
simple: medium
ignorecase: true
- operator: isEqualString
left:
value:
simple: PaloAltoNetworksXDR.Incident.alerts.severity
iscontext: true
right:
value:
simple: high
ignorecase: true
accessor: name
iscontext: true
right:
value:
simple: Unusual allocation of multiple cloud compute resources
ignorecase: true
- - operator: isEqualNumber
left:
value:
complex:
root: alertJson.raw_abioc.event
accessor: cloud_agent_external_ip_days_seen_count
iscontext: true
right:
value:
simple: "0"
- - operator: isEqualNumber
left:
value:
complex:
root: alertJson.raw_abioc.event
accessor: cloud_caller_ip_asn_count_distinct_cloud_best_identity
iscontext: true
right:
value:
simple: "0"
continueonerrortype: ""
view: |-
{
"position": {
"x": -170,
"y": 770
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"7":
id: "7"
taskid: c021b67f-9dee-4984-8b50-00531dfd6b6b
type: condition
task:
id: c021b67f-9dee-4984-8b50-00531dfd6b6b
version: -1
name: Check unusual allocation & Dormant region
description: Checks the verdict logic. Refer to the playbook description for detailed information.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "9"
Malicious:
- "2"
separatecontext: false
conditions:
- label: Malicious
condition:
- - operator: containsString
left:
value:
complex:
root: PaloAltoNetworksXDR.Incident.alerts
accessor: name
iscontext: true
right:
value:
simple: Unusual allocation of multiple cloud compute resources
ignorecase: true
- - operator: containsString
left:
value:
complex:
root: PaloAltoNetworksXDR.Incident.alerts
accessor: name
iscontext: true
right:
value:
simple: A cloud compute instance was created in a dormant region
ignorecase: true
continueonerrortype: ""
view: |-
{
"position": {
"x": -360,
"y": 940
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"9":
id: "9"
taskid: db4fa154-1292-4324-8c7a-671e7bb5ccba
type: regular
task:
id: db4fa154-1292-4324-8c7a-671e7bb5ccba
version: -1
name: Set verdict - User verification
description: Set a value in context under the key you entered.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "11"
scriptarguments:
key:
simple: alertVerdict
value:
simple: userVerification
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -360,
"y": 1190
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"11":
id: "11"
taskid: faaf4e3b-1296-4d27-876d-8175626fe732
type: title
task:
id: faaf4e3b-1296-4d27-876d-8175626fe732
version: -1
name: Done
type: title
iscommand: false
brand: ""
description: ''
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 450,
"y": 1370
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
view: |-
{
"linkLabelsPosition": {
"3_2_Malicious": 0.14,
"4_2_Malicious": 0.24,
"5_2_Malicious": 0.21,
"6_2_Malicious": 0.19,
"6_7_#default#": 0.8,
"7_2_Malicious": 0.21,
"7_9_#default#": 0.59
},
"paper": {
"dimensions": {
"height": 1335,
"width": 1190,
"x": -360,
"y": 100
}
}
}
inputs: []
outputs:
- contextPath: alertVerdict
description: The alert verdict
type: string
quiet: true
tests:
- No tests (auto formatted)
marketplaces: ["xsoar"]
fromversion: 6.5.0