-
Notifications
You must be signed in to change notification settings - Fork 15
/
File_Enrichment_-_File_reputation.yml
424 lines (424 loc) · 9.13 KB
/
File_Enrichment_-_File_reputation.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
id: file_enrichment_-_file_reputation
version: 1
contentitemexportablefields:
contentitemfields:
packID: CommonPlaybooks
packName: Common Playbooks
itemVersion: 2.2.1
fromServerVersion: 5.0.0
toServerVersion: ""
definitionid: ""
vcShouldKeepItemLegacyProdMachine: false
name: File Enrichment - File reputation
description: Get file reputation using one or more integrations
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 214ebf34-1312-43ec-873d-41d45094ba22
type: start
task:
id: 214ebf34-1312-43ec-873d-41d45094ba22
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 500,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"1":
id: "1"
taskid: 4b42764c-31bd-4097-8721-159b73534347
type: title
task:
id: 4b42764c-31bd-4097-8721-159b73534347
version: -1
name: Get file hash reputation
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "14"
- "15"
- "17"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 500,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"5":
id: "5"
taskid: 61a4a533-980d-4b46-816e-75bbf2550d0a
type: regular
task:
id: 61a4a533-980d-4b46-816e-75bbf2550d0a
version: -1
name: Get MD5 reputation
description: Get the MD5 hash reputation from every integration that supports
the `!file` command.
scriptName: FileReputation
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
file:
complex:
root: inputs.MD5
separatecontext: false
continueonerror: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 162.5,
"y": 515
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"7":
id: "7"
taskid: 66d74bf4-438c-40a8-840f-58052c181d0f
type: title
task:
id: 66d74bf4-438c-40a8-840f-58052c181d0f
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 500,
"y": 690
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"14":
id: "14"
taskid: 63bff973-38e4-490f-830e-b9d68f2791ad
type: condition
task:
id: 63bff973-38e4-490f-830e-b9d68f2791ad
version: -1
name: Is there an MD5 hash?
description: Check if there is an MD5 hash in context.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "7"
"yes":
- "5"
scriptarguments:
value:
simple: ${File.MD5}
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: inputs.MD5
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 50,
"y": 340
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"15":
id: "15"
taskid: 8e16c355-ee0c-4b2b-86b1-0d2f5916430f
type: condition
task:
id: 8e16c355-ee0c-4b2b-86b1-0d2f5916430f
version: -1
name: Is there a SHA-256 hash?
description: Check if there is a SHA-256 hash in context.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "7"
"yes":
- "16"
scriptarguments:
value:
simple: ${File.SHA256}
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: inputs.SHA256
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 500,
"y": 340
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"16":
id: "16"
taskid: 092a1e7e-b7d8-4d50-8f6e-021c31701974
type: regular
task:
id: 092a1e7e-b7d8-4d50-8f6e-021c31701974
version: -1
name: Get SHA-256 reputation
description: Get the SHA-256 hash reputation from every integration that supports
the `!file` command.
scriptName: FileReputation
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
file:
complex:
root: inputs.SHA256
separatecontext: false
continueonerror: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 612.5,
"y": 515
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"17":
id: "17"
taskid: ceddfccc-685c-4392-8955-2c116297ca5f
type: condition
task:
id: ceddfccc-685c-4392-8955-2c116297ca5f
version: -1
name: Is there a SHA-1 hash?
description: Check if there is a SHA-1 hash in context.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "7"
"yes":
- "18"
scriptarguments:
value:
simple: ${File.SHA256}
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
complex:
root: inputs.SHA1
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 950,
"y": 340
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"18":
id: "18"
taskid: 9cd10068-c589-4c05-8a22-7ec3528b89de
type: regular
task:
id: 9cd10068-c589-4c05-8a22-7ec3528b89de
version: -1
name: Get SHA-1 reputation
description: Get the SHA-1 hash reputation from every integration that supports
the `!file` command.
scriptName: FileReputation
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
file:
complex:
root: inputs.SHA1
separatecontext: false
continueonerror: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 1062.5,
"y": 515
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
system: true
view: |-
{
"linkLabelsPosition": {
"14_7_#default#": 0.52,
"15_7_#default#": 0.61
},
"paper": {
"dimensions": {
"height": 705,
"width": 1392.5,
"x": 50,
"y": 50
}
}
}
inputs:
- key: MD5
value:
complex:
root: File
accessor: MD5
required: false
description: File MD5 hash to enrich.
playbookInputQuery: null
- key: SHA256
value:
complex:
root: File
accessor: SHA256
required: false
description: File SHA-256 hash to enrich.
playbookInputQuery: null
- key: SHA1
value:
complex:
root: File
accessor: SHA1
required: false
description: File SHA-1 hash to enrich.
playbookInputQuery: null
outputs:
- contextPath: File
description: The file's object
type: unknown
- contextPath: File.MD5
description: MD5 hash of the file
type: string
- contextPath: File.SHA1
description: SHA1 hash of the file
type: string
- contextPath: File.SHA256
description: SHA256 hash of the file
type: string
- contextPath: File.Malicious.Vendor
description: For malicious files, the vendor that made the decision
type: string
- contextPath: DBotScore
description: The DBotScore's object
type: unknown
- contextPath: DBotScore.Indicator
description: The tested indicator
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: DBotScore.Score
description: The actual score
type: number