-
Notifications
You must be signed in to change notification settings - Fork 15
/
Detonate_File_-_VirusTotal_(API_v3).yml
399 lines (399 loc) · 9.39 KB
/
Detonate_File_-_VirusTotal_(API_v3).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
id: Detonate File - VirusTotal (API v3)
version: 1
contentitemexportablefields:
contentitemfields:
packID: VirusTotal
packName: VirusTotal
itemVersion: 2.4.2
fromServerVersion: 5.5.0
toServerVersion: ""
definitionid: ""
vcShouldKeepItemLegacyProdMachine: false
name: Detonate File - VirusTotal (API v3)
description: Detonate a file through VirusTotal (API v3)
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: e88009b5-107c-4956-8d3c-f56337826296
type: start
task:
id: e88009b5-107c-4956-8d3c-f56337826296
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "8"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 50,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"1":
id: "1"
taskid: 19cc02a3-4cd2-4847-80fb-492f4f653092
type: condition
task:
id: 19cc02a3-4cd2-4847-80fb-492f4f653092
version: -1
name: Is VirusTotal (API v3) enabled?
description: Is VirusTotal (API v3) enabled?
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "7"
"yes":
- "2"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: modules
filters:
- - operator: isEqualString
left:
value:
simple: modules.brand
iscontext: true
right:
value:
simple: VirusTotal (API v3)
- - operator: isEqualString
left:
value:
simple: modules.state
iscontext: true
right:
value:
simple: active
accessor: brand
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 50,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"2":
id: "2"
taskid: 283fbb8b-5132-4a4c-81d3-947ee7f3b20c
type: condition
task:
id: 283fbb8b-5132-4a4c-81d3-947ee7f3b20c
version: -1
name: Is there a file to detonate?
description: Is there a file to detonate?
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "7"
"yes":
- "3"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: inputs.File
accessor: EntryID
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 162.5,
"y": 545
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"3":
id: "3"
taskid: 4bff86d5-4513-4252-8ba3-a6dd17197646
type: regular
task:
id: 4bff86d5-4513-4252-8ba3-a6dd17197646
version: -1
name: Send file to VirusTotal
description: Submits a file for scanning. Use vt-analysis-get to get the scan
results.
script: VirusTotal (API v3)|||file-scan
type: regular
iscommand: true
brand: VirusTotal (API v3)
nexttasks:
'#none#':
- "5"
scriptarguments:
entryID:
complex:
root: inputs.File
accessor: EntryID
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 275,
"y": 720
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"5":
id: "5"
taskid: d78e7bf7-9f19-417f-8e7a-6e89df877d67
type: playbook
task:
id: d78e7bf7-9f19-417f-8e7a-6e89df877d67
version: -1
name: GenericPolling
playbookName: GenericPolling
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "6"
scriptarguments:
Ids:
complex:
root: VirusTotal.Submission
accessor: id
Interval:
simple: "1"
PollingCommandArgName:
simple: id
PollingCommandName:
simple: vt-analysis-get
Timeout:
simple: "10"
dt:
simple: VirusTotal.Analysis.data.attributes(val.status != 'completed')
separatecontext: true
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 100
view: |-
{
"position": {
"x": 275,
"y": 895
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"6":
id: "6"
taskid: 670b86df-5b33-4cbb-8250-1ce88d1c8312
type: regular
task:
id: 670b86df-5b33-4cbb-8250-1ce88d1c8312
version: -1
name: Get analysis from VirusTotal
description: Retrives resolutions of the given ip.
script: VirusTotal (API v3)|||vt-analysis-get
type: regular
iscommand: true
brand: VirusTotal (API v3)
nexttasks:
'#none#':
- "7"
scriptarguments:
id:
complex:
root: VirusTotal.Submission
accessor: id
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 275,
"y": 1070
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"7":
id: "7"
taskid: ae4abf66-7f04-4f3b-820e-9b149711fc86
type: title
task:
id: ae4abf66-7f04-4f3b-820e-9b149711fc86
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 50,
"y": 1245
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"8":
id: "8"
taskid: 199cfb50-cb4a-4c46-8519-e8df79a8a5bd
type: regular
task:
id: 199cfb50-cb4a-4c46-8519-e8df79a8a5bd
version: -1
name: Set File to File path
description: Set a value in context under the key you entered.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
scriptarguments:
key:
simple: File
value:
complex:
root: inputs.File
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 50,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
system: true
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 1260,
"width": 605,
"x": 50,
"y": 50
}
}
}
inputs:
- key: File
value:
complex:
root: File
required: true
description: Entry ID of the file to detonate
playbookInputQuery: null
outputs:
- contextPath: VirusTotal.Analysis.data.attributes.stats.harmless
description: Number of engines found the indicator harmless.
type: number
- contextPath: VirusTotal.Analysis.data.attributes.stats.malicious
description: Number of engines found the indicator malicious.
type: number
- contextPath: VirusTotal.Analysis.data.attributes.stats.suspicious
description: Number of engines found the indicator suspicious.
type: number
- contextPath: VirusTotal.Analysis.data.attributes.stats.timeout
description: Number of engines found the indicator timeout.
type: number
- contextPath: VirusTotal.Analysis.data.attributes.stats.undetected
description: Number of engines found the indicator undetected.
type: number
- contextPath: VirusTotal.Analysis.data.attributes.date
description: Date of the analysis in epoch
type: number
- contextPath: VirusTotal.Analysis.data.attributes.status
description: Status of the analysis
type: string
- contextPath: VirusTotal.Analysis.meta.file_info.sha256
description: SHA-256 of the file
type: string
- contextPath: VirusTotal.Analysis.meta.file_info.sha1
description: SHA-1 of the file
type: string
- contextPath: VirusTotal.Analysis.meta.file_info.md5
description: MD5 of the file
type: string
- contextPath: VirusTotal.Analysis.meta.file_info.name
description: name of the file
type: string
- contextPath: VirusTotal.Analysis.meta.file_info.size
description: Size of the file in bytes
type: number
- contextPath: VirusTotal.Analysis.meta.url_info.id
description: ID of the url
type: string