-
Notifications
You must be signed in to change notification settings - Fork 15
/
Retrieve_File_from_Endpoint_-_Generic.yml
234 lines (233 loc) · 5.16 KB
/
Retrieve_File_from_Endpoint_-_Generic.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
id: Retrieve File from Endpoint - Generic
version: 1
contentitemexportablefields:
contentitemfields:
packID: CommonPlaybooks
packName: Common Playbooks
itemVersion: 2.2.1
fromServerVersion: 5.0.0
toServerVersion: ""
definitionid: ""
vcShouldKeepItemLegacyProdMachine: false
name: Retrieve File from Endpoint - Generic
description: |-
This playbook retrieves a file sample from an endpoint using the following playbooks:
- Get File Sample From Path - Generic
- Get File Sample By Hash - Generic v2
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: aafd2bad-97ae-4462-85cb-8ef1cad54fc5
type: start
task:
id: aafd2bad-97ae-4462-85cb-8ef1cad54fc5
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
- "4"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 265,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"2":
id: "2"
taskid: 91b91a1f-227c-433f-8fa0-80fd671e1a1d
type: playbook
task:
id: 91b91a1f-227c-433f-8fa0-80fd671e1a1d
version: -1
name: Get File Sample From Path - Generic
description: |-
Returns a file sample to the war-room from a path on an endpoint using one or more integrations
inputs:
* UseD2 - if "True", use Demisto Dissolvable Agent (D2) to return the file (default: False)
playbookName: Get File Sample From Path - Generic
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
Hostname:
complex:
root: inputs.Hostname
Path:
complex:
root: inputs.Path
UseD2:
complex:
root: inputs.UseD2
separatecontext: true
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 0
view: |-
{
"position": {
"x": 50,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"3":
id: "3"
taskid: 21df4e3f-565e-48ca-8937-7106ed312e6e
type: title
task:
id: 21df4e3f-565e-48ca-8937-7106ed312e6e
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 265,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"4":
id: "4"
taskid: e6fa1361-9097-4532-8d10-e0c53b74aee7
type: playbook
task:
id: e6fa1361-9097-4532-8d10-e0c53b74aee7
version: -1
name: Get File Sample By Hash - Generic v2
description: |-
This playbook returns a file sample correlating to a hash from the war-room using the following sub-playbooks:
- Get File Sample By Hash - Carbon Black Enterprise Response
- Get File Sample By Hash - Cylance Protect v2
playbookName: Get File Sample By Hash - Generic v2
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
MD5:
complex:
root: inputs.MD5
SHA256:
complex:
root: inputs.SHA256
separatecontext: true
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 0
view: |-
{
"position": {
"x": 480,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
system: true
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 385,
"width": 810,
"x": 50,
"y": 50
}
}
}
inputs:
- key: MD5
value:
complex:
root: File
accessor: MD5
transformers:
- operator: uniq
required: false
description: Get file sample from MD5 input.
playbookInputQuery: null
- key: SHA256
value:
complex:
root: File
accessor: SHA256
transformers:
- operator: uniq
required: false
description: Get file sample from SHA256 input.
playbookInputQuery: null
- key: Hostname
value:
complex:
root: Endpoint
accessor: Hostname
transformers:
- operator: uniq
required: false
description: Hostname of the machine on which the file is located.
playbookInputQuery: null
- key: Path
value:
complex:
root: File
accessor: Path
required: false
description: File path.
playbookInputQuery: null
- key: UseD2
value:
simple: "no"
required: false
description: |-
Determines whether a D2 agent will be used to retrieve the file.
Default is no.
playbookInputQuery: null
outputs: []