-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathplaybook-IP_Enrichment_-_Generic_-_Test.yml
More file actions
284 lines (284 loc) · 5.63 KB
/
playbook-IP_Enrichment_-_Generic_-_Test.yml
File metadata and controls
284 lines (284 loc) · 5.63 KB
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
id: ip_enrichment_generic_test
version: -1
fromversion: 5.0.0
name: IP Enrichment - Generic - Test
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: ee4b7da0-0bfa-4e48-8c7c-0a516170e8d3
type: start
task:
id: ee4b7da0-0bfa-4e48-8c7c-0a516170e8d3
version: -1
name: ""
description: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 55
}
}
note: false
"2":
id: "2"
taskid: 50390730-c3fa-4d95-849f-f6853bc17ea7
type: regular
task:
id: 50390730-c3fa-4d95-849f-f6853bc17ea7
version: -1
name: Clear Context
description: Clear the context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "12"
scriptarguments:
all:
simple: "yes"
key: {}
separatecontext: false
view: |-
{
"position": {
"x": 449,
"y": 212
}
}
note: false
"8":
id: "8"
taskid: ece68928-93e3-49ff-8439-e1f2a4dfb0c8
type: playbook
task:
id: ece68928-93e3-49ff-8439-e1f2a4dfb0c8
version: -1
name: IP Enrichment - Generic
description: Enrich IP using one or more integrations
playbookName: IP Enrichment - Generic
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "13"
scriptarguments:
IP:
simple: ${Test.Address}
InternalRange: {}
separatecontext: false
loop:
iscommand: false
exitCondition: ""
wait: 1
view: |-
{
"position": {
"x": 450,
"y": 586
}
}
note: false
"9":
id: "9"
taskid: 3ab19aee-e6dd-4861-8916-eb396b7cafd9
type: regular
task:
id: 3ab19aee-e6dd-4861-8916-eb396b7cafd9
version: -1
name: Verify IP Object
description: Verify that the context contains the IP Address
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "11"
scriptarguments:
expectedValue: {}
fields: {}
path:
simple: IP
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 747
}
}
note: false
"11":
id: "11"
taskid: 44b60ed4-8726-4677-8813-af6e82197a01
type: regular
task:
id: 44b60ed4-8726-4677-8813-af6e82197a01
version: -1
name: Verify DBotScore
description: Verify that the context contains the DBotScore
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "14"
scriptarguments:
expectedValue: {}
fields:
simple: Indicator, Score, Type, Vendor
path:
simple: DBotScore
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 934
}
}
note: false
"12":
id: "12"
taskid: 976463d4-e7b8-46e9-89b7-de92a0355ff2
type: regular
task:
id: 976463d4-e7b8-46e9-89b7-de92a0355ff2
version: -1
name: Set IP Address
description: Sets a value into the context with the given context key
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "8"
scriptarguments:
append: {}
key:
simple: Test.Address
value:
simple: '["1.2.3.4", "10.0.0.1"]'
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 400
}
}
note: false
"13":
id: "13"
taskid: 2506094f-c249-4e35-8edc-2e9c558138de
type: condition
task:
id: 2506094f-c249-4e35-8edc-2e9c558138de
version: -1
name: Check for errors
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "9"
"yes":
- "15"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
simple: ${Error}
iscontext: true
view: |-
{
"position": {
"x": -130,
"y": 670
}
}
note: false
"14":
id: "14"
taskid: 3654b181-2edc-4aec-8a89-aae914607cc2
type: title
task:
id: 3654b181-2edc-4aec-8a89-aae914607cc2
version: -1
name: End of test
type: title
iscommand: false
brand: ""
separatecontext: false
view: |-
{
"position": {
"x": 310,
"y": 1170
}
}
note: false
"15":
id: "15"
taskid: af83745f-05a6-46ad-8fed-b284787ff6c0
type: condition
task:
id: af83745f-05a6-46ad-8fed-b284787ff6c0
version: -1
name: Check for API RATE
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "14"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: ${Error}
iscontext: true
right:
value:
simple: No content received. Possible API rate limit reached.
view: |-
{
"position": {
"x": -130,
"y": 900
}
}
note: false
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 1180,
"width": 960,
"x": -130,
"y": 55
}
}
}
inputs: []
outputs: []