-
Notifications
You must be signed in to change notification settings - Fork 15
/
Detonate_URL_-_WildFire-v2.yml
574 lines (573 loc) · 13.7 KB
/
Detonate_URL_-_WildFire-v2.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
id: Detonate URL - WildFire-v2
version: 1
contentitemexportablefields:
contentitemfields:
packID: Palo_Alto_Networks_WildFire
packName: Palo Alto Networks WildFire
itemVersion: 2.1.2
fromServerVersion: 5.0.0
toServerVersion: ""
definitionid: ""
vcShouldKeepItemLegacyProdMachine: false
name: Detonate URL - WildFire-v2
description: |-
Detonate a webpage or a remote file using the WildFire integration. This playbook returns relevant reports to the War Room and file reputations to the context data.
The detonation supports the following file types -
APK, JAR, DOC, DOCX, RTF, OOXLS, XLSX, PPT, PPTX, XML, PE32, PDF, DMG, PKG, RAR, 7Z
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 971d5a83-6e4e-4e07-88cd-5eb07b1c1a79
type: start
task:
id: 971d5a83-6e4e-4e07-88cd-5eb07b1c1a79
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "7"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 162.5,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"1":
id: "1"
taskid: 06bec756-9cbc-4e58-8b49-cc82a8ffffe5
type: regular
task:
id: 06bec756-9cbc-4e58-8b49-cc82a8ffffe5
version: -1
name: WildFire Upload File URL
description: Uploads the URL of a remote file to WildFire for analysis.
script: WildFire-v2|||wildfire-upload-file-url
type: regular
iscommand: true
brand: WildFire-v2
nexttasks:
'#none#':
- "11"
scriptarguments:
upload:
complex:
root: inputs.URL
separatecontext: false
continueonerror: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 612.5,
"y": 545
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"2":
id: "2"
taskid: 93934895-c2b1-4d90-85c8-e63de67192fa
type: playbook
task:
id: 93934895-c2b1-4d90-85c8-e63de67192fa
version: -1
name: GenericPolling
description: |-
Use as a sub-playbook to block execution of the master playbook until a remote action is complete.
This playbook implements polling by continually running the command in Step #2 until the operation completes.
The remote action should have the following structure:
1. Initiate the operation.
2. Poll to check if the operation completed.
3. (optional) Get the results of the operation.
playbookName: GenericPolling
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "8"
scriptarguments:
Ids:
complex:
root: WildFire
accessor: Report.SHA256
Interval:
complex:
root: inputs.Interval
PollingCommandArgName:
simple: sha256
PollingCommandName:
simple: wildfire-report
Timeout:
complex:
root: inputs.Timeout
dt:
simple: WildFire.Report(val.Status != 'Success').SHA256
separatecontext: false
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 0
view: |-
{
"position": {
"x": 500,
"y": 1245
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"5":
id: "5"
taskid: 5362d80a-dc8b-414e-8fc7-2988e917d2e0
type: title
task:
id: 5362d80a-dc8b-414e-8fc7-2988e917d2e0
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 275,
"y": 1595
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"6":
id: "6"
taskid: cd801c53-6ba4-4bea-830a-0788255ebd82
type: condition
task:
id: cd801c53-6ba4-4bea-830a-0788255ebd82
version: -1
name: Is there a URL to detonate?
description: Look for file URLs to detonate
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "5"
"yes":
- "1"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
simple: inputs.URL
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 50,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"7":
id: "7"
taskid: b105e8d8-c34c-4bfe-8fc5-0f1a54ceb4cd
type: condition
task:
id: b105e8d8-c34c-4bfe-8fc5-0f1a54ceb4cd
version: -1
name: Is WildFire-v2 enabled?
description: Check if integration instance is enabled
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "5"
"yes":
- "6"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
complex:
root: modules
filters:
- - operator: isEqualString
left:
value:
simple: modules.brand
iscontext: true
right:
value:
simple: WildFire-v2
transformers:
- operator: getField
args:
field:
value:
simple: state
iscontext: true
right:
value:
simple: active
continueonerrortype: ""
view: |-
{
"position": {
"x": 162.5,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"8":
id: "8"
taskid: 72d8fa60-0340-416d-86f7-cb24751b9a42
type: regular
task:
id: 72d8fa60-0340-416d-86f7-cb24751b9a42
version: -1
name: WildFire Get Report
description: Retrieves results for a file hash using WildFire.
script: WildFire-v2|||wildfire-report
type: regular
iscommand: true
brand: WildFire-v2
nexttasks:
'#none#':
- "5"
scriptarguments:
format:
complex:
root: inputs.ReportFileType
hash:
complex:
root: WildFire
accessor: Report.SHA256
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 612.5,
"y": 1420
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"9":
id: "9"
taskid: 876f9d98-9d32-42fe-87c0-4adbb1011c6b
type: regular
task:
id: 876f9d98-9d32-42fe-87c0-4adbb1011c6b
version: -1
name: WildFire Upload URL
description: Uploads a URL of a webpage to WildFire for analysis.
script: WildFire-v2|||wildfire-upload-url
type: regular
iscommand: true
brand: WildFire-v2
nexttasks:
'#none#':
- "12"
scriptarguments:
upload:
complex:
root: inputs.URL
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 725,
"y": 895
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"11":
id: "11"
taskid: 69021f37-e6c9-4ae6-8de2-f230e96c2c2b
type: condition
task:
id: 69021f37-e6c9-4ae6-8de2-f230e96c2c2b
version: -1
name: Was file url submission successful?
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "9"
"yes":
- "2"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: WildFire
accessor: Report.Size
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 612.5,
"y": 720
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"12":
id: "12"
taskid: 743caaf9-1f2d-44aa-88ff-9a0b43e49175
type: condition
task:
id: 743caaf9-1f2d-44aa-88ff-9a0b43e49175
version: -1
name: Was upload finished successfully?
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "8"
"yes":
- "2"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: WildFire
filters:
- - operator: isEqualString
left:
value:
simple: WildFire.Report.Status
iscontext: true
right:
value:
simple: Pending
accessor: Report.URL
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 725,
"y": 1070
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
system: true
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 1610,
"width": 1055,
"x": 50,
"y": 50
}
}
}
inputs:
- key: URL
value:
complex:
root: URL
accessor: Data
required: false
description: URL of the webpage or file url to detonate. The URL is taken from the
context.
playbookInputQuery: null
- key: Interval
value:
simple: "1"
required: false
description: Duration for executing the pooling (in minutes)
playbookInputQuery: null
- key: Timeout
value:
simple: "15"
required: false
description: The duration after which to stop pooling and to resume the playbook
(in minutes)
playbookInputQuery: null
- key: ReportFileType
value: {}
required: false
description: The resource type to download. Default is pdf. xml is also possible.
playbookInputQuery: null
outputs:
- contextPath: DBotScore
description: The DBotScore object
type: unknown
- contextPath: DBotScore.Score
description: The actual score
type: number
- contextPath: File.Size
description: File size
type: number
- contextPath: File.MD5
description: MD5 hash of the file
type: string
- contextPath: File.SHA1
description: SHA1 hash of the file
type: string
- contextPath: File.Type
description: File type e.g. "PE"
type: string
- contextPath: File.SHA256
description: SHA256 hash of the file
type: string
- contextPath: File.EntryID
description: The Entry ID of the sample
type: string
- contextPath: File.Malicious.Vendor
description: For malicious files, the vendor that made the decision
type: string
- contextPath: File.Name
description: Filename
type: string
- contextPath: File.Malicious.Description
description: For malicious files, the reason for the vendor to make the decision
type: string
- contextPath: DBotScore.Indicator
description: The indicator we tested
type: string
- contextPath: DBotScore.Type
description: The type of the indicator
type: string
- contextPath: DBotScore.Vendor
description: Vendor used to calculate the score
type: string
- contextPath: IP.Address
description: IP's relevant to the sample
type: string
- contextPath: File
description: The File object
type: unknown
- contextPath: InfoFile
description: The report file object
type: unknown
- contextPath: InfoFile.EntryID
description: The EntryID of the report file
type: string
- contextPath: InfoFile.Extension
description: The extension of the report file
type: string
- contextPath: InfoFile.Name
description: The name of the report file
type: string
- contextPath: InfoFile.Info
description: The info of the report file
type: string
- contextPath: InfoFile.Size
description: The size of the report file
type: number
- contextPath: InfoFile.Type
description: The type of the report file
type: string
- contextPath: File.Malicious
description: The malicious object
type: unknown
- contextPath: WildFire.Report
description: The submission object
type: unknown
- contextPath: WildFire.Report.MD5
description: MD5 of the submission
type: string
- contextPath: WildFire.Report.SHA256
description: SHA256 of the submission
type: string
- contextPath: WildFire.Report.FileType
description: The type of the submission
type: string
- contextPath: WildFire.Report.Status
description: The status of the submission
type: string
- contextPath: WildFire.Report.Size
description: The size of the submission
type: number