-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGlobalProtect-Build-DNS-Host-Records.yml
514 lines (514 loc) · 10.7 KB
/
GlobalProtect-Build-DNS-Host-Records.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
id: 1bcf148e-2ab7-42a1-8481-4bf195efa054
version: 2
vcShouldKeepItemLegacyProdMachine: false
name: GlobalProtect-Build-DNS-Host-Records
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 60dab33c-5b56-4e48-8a89-d06b50a5c0e1
type: start
task:
id: 60dab33c-5b56-4e48-8a89-d06b50a5c0e1
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "10"
separatecontext: false
view: |-
{
"position": {
"x": 162.5,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"1":
id: "1"
taskid: 5a54924c-551a-4cf3-8e08-603367ce5bab
type: regular
task:
id: 5a54924c-551a-4cf3-8e08-603367ce5bab
version: -1
name: List Connected GP Users
description: Gets the current Global Protect Users
script: '|||panos-get-current-users'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "9"
separatecontext: false
view: |-
{
"position": {
"x": 162.5,
"y": 515
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"2":
id: "2"
taskid: 40d6cb57-d3a6-40e8-8766-16ef9bb94bbf
type: regular
task:
id: 40d6cb57-d3a6-40e8-8766-16ef9bb94bbf
version: -1
name: Get Existing Host Record RefID
description: Return RefID on Records and place in context GlobalProtect.Hosts
(Adds, Updates, or Deletes)
script: '|||gp-infoblox-get-refid'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "15"
scriptarguments:
deletes: {}
domain:
simple: defense.local
host:
complex:
root: ${GlobalProtect
accessor: CurrentUsers.entry.computer}
transformers:
- operator: toLowerCase
ipadd:
simple: ${GlobalProtect.CurrentUsers.entry.virtual-ip}
status: {}
view: {}
separatecontext: false
view: |-
{
"position": {
"x": 162.5,
"y": 1040
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"5":
id: "5"
taskid: 0cfe7cab-335c-41a0-8d5c-0909348c8d45
type: regular
task:
id: 0cfe7cab-335c-41a0-8d5c-0909348c8d45
version: -1
name: Create Host Record
description: Add a Host record to an empty IP
script: '|||gp-infoblox-add-host-record'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "14"
scriptarguments:
host:
simple: ${GlobalProtect.Hosts.Adds.name}
ipadd:
simple: ${GlobalProtect.Hosts.Adds.ipadd}
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1535
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"7":
id: "7"
taskid: bf89b2e8-b3ae-4810-8e05-4b7a4b20f8b5
type: regular
task:
id: bf89b2e8-b3ae-4810-8e05-4b7a4b20f8b5
version: -1
name: Close Case
description: commands.local.cmd.close.inv
script: Builtin|||closeInvestigation
type: regular
iscommand: true
brand: Builtin
nexttasks:
'#none#':
- "8"
scriptarguments:
assetid: {}
closeNotes: {}
closeReason: {}
code42alerttype: {}
emailclassification: {}
id:
complex:
root: incident
accessor: id
phishingsubtype: {}
separatecontext: false
view: |-
{
"position": {
"x": 162.5,
"y": 2205
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"8":
id: "8"
taskid: 92eba8b2-d731-40e2-88cb-be43f52172c3
type: title
task:
id: 92eba8b2-d731-40e2-88cb-be43f52172c3
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
view: |-
{
"position": {
"x": 162.5,
"y": 2380
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"9":
id: "9"
taskid: ac8220bf-5337-4551-8571-88c85252c085
type: regular
task:
id: ac8220bf-5337-4551-8571-88c85252c085
version: -1
name: Extract Data From Current GP Users
description: commands.local.cmd.extract.indicators
script: Builtin|||extractIndicators
type: regular
iscommand: true
brand: Builtin
nexttasks:
'#none#':
- "13"
scriptarguments:
entryID: {}
filePath: {}
investigationID: {}
text:
simple: ${GlobalProtect.CurrentUsers.entry}
separatecontext: false
view: |-
{
"position": {
"x": 162.5,
"y": 690
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"10":
id: "10"
taskid: 0ec89cdd-9f57-4b48-8395-3cfe0e2a9b7c
type: regular
task:
id: 0ec89cdd-9f57-4b48-8395-3cfe0e2a9b7c
version: -1
name: Extract Indicators from Incident
description: commands.local.cmd.extract.indicators
script: Builtin|||extractIndicators
type: regular
iscommand: true
brand: Builtin
nexttasks:
'#none#':
- "16"
scriptarguments:
entryID: {}
filePath: {}
investigationID: {}
text:
simple: ${incident.details}
separatecontext: false
view: |-
{
"position": {
"x": 162.5,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"12":
id: "12"
taskid: fbbee664-069c-484a-8d14-da57280eb8b1
type: regular
task:
id: fbbee664-069c-484a-8d14-da57280eb8b1
version: -1
name: Update Host Record
description: Updates a host records IP address
script: '|||gp-infoblox-update-host-record'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
host:
simple: ${GlobalProtect.Hosts.Updates.name}
ipadd:
simple: ${GlobalProtect.Hosts.Updates.ipadd}
refid:
simple: ${GlobalProtect.Hosts.Updates.refid}
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 2030
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"13":
id: "13"
taskid: f7ec317f-0ca8-486f-8429-025b5df448db
type: regular
task:
id: f7ec317f-0ca8-486f-8429-025b5df448db
version: -1
name: Remove RefId
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
scriptarguments:
all: {}
index: {}
key:
simple: GlobalProtect.Hosts
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 162.5,
"y": 865
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"14":
id: "14"
taskid: 5f5cfb7a-5eb0-47c5-8a2d-1b4809db7854
type: condition
task:
id: 5f5cfb7a-5eb0-47c5-8a2d-1b4809db7854
version: -1
name: Are There Hosts To Update?
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "7"
"yes":
- "18"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
simple: GlobalProtect.Hosts.Updates
iscontext: true
view: |-
{
"position": {
"x": 162.5,
"y": 1710
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"15":
id: "15"
taskid: c678ecfb-ffc2-48f2-8622-31a6a0da5cc8
type: condition
task:
id: c678ecfb-ffc2-48f2-8622-31a6a0da5cc8
version: -1
name: Are There Hosts to Add?
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "14"
"yes":
- "17"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
simple: GlobalProtect.Hosts.Adds
iscontext: true
view: |-
{
"position": {
"x": 162.5,
"y": 1215
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"16":
id: "16"
taskid: 68ea09bc-e14e-4733-81ce-ab0c6df51a22
type: title
task:
id: 68ea09bc-e14e-4733-81ce-ab0c6df51a22
version: -1
name: Update User Table
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
separatecontext: false
view: |-
{
"position": {
"x": 162.5,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"17":
id: "17"
taskid: 6b687963-e88e-46bd-84aa-bcfc3205e438
type: title
task:
id: 6b687963-e88e-46bd-84aa-bcfc3205e438
version: -1
name: Create DNS Record
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "5"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1390
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"18":
id: "18"
taskid: af279bba-ebd7-48b7-8da1-c7edbec03d2a
type: title
task:
id: af279bba-ebd7-48b7-8da1-c7edbec03d2a
version: -1
name: Update DNS Record
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "12"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1885
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 2395,
"width": 492.5,
"x": 50,
"y": 50
}
}
}
inputs: []
outputs: []