-
Notifications
You must be signed in to change notification settings - Fork 362
/
Identifier_Reputation_Analysis_Dispatch.json
826 lines (826 loc) · 39.7 KB
/
Identifier_Reputation_Analysis_Dispatch.json
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
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
{
"blockly": false,
"blockly_xml": "<xml></xml>",
"category": "Identifier Reputation Analysis",
"coa": {
"data": {
"description": "Detects available indicators and routes them to indicator reputation analysis playbooks. The output of the analysis will update any artifacts, tasks, and indicator tags.\n\nRef: https://d3fend.mitre.org/technique/d3f:IdentifierReputationAnalysis/",
"edges": [
{
"id": "port_9_to_port_1",
"sourceNode": "9",
"sourcePort": "9_out",
"targetNode": "1",
"targetPort": "1_in"
},
{
"id": "port_5_to_port_1",
"sourceNode": "5",
"sourcePort": "5_out",
"targetNode": "1",
"targetPort": "1_in"
},
{
"conditions": [
{
"index": 0
}
],
"id": "port_12_to_port_17",
"sourceNode": "12",
"sourcePort": "12_out",
"targetNode": "17",
"targetPort": "17_in"
},
{
"conditions": [
{
"index": 0
}
],
"id": "port_11_to_port_18",
"sourceNode": "11",
"sourcePort": "11_out",
"targetNode": "18",
"targetPort": "18_in"
},
{
"id": "port_18_to_port_5",
"sourceNode": "18",
"sourcePort": "18_out",
"targetNode": "5",
"targetPort": "5_in"
},
{
"conditions": [
{
"index": 0
}
],
"id": "port_11_to_port_9",
"sourceNode": "11",
"sourcePort": "11_out",
"targetNode": "9",
"targetPort": "9_in"
},
{
"id": "port_17_to_port_19",
"sourceNode": "17",
"sourcePort": "17_out",
"targetNode": "19",
"targetPort": "19_in"
},
{
"conditions": [
{
"index": 0
}
],
"id": "port_19_to_port_11",
"sourceNode": "19",
"sourcePort": "19_out",
"targetNode": "11",
"targetPort": "11_in"
},
{
"conditions": [
{
"index": 1
}
],
"id": "port_19_to_port_20",
"sourceNode": "19",
"sourcePort": "19_out",
"targetNode": "20",
"targetPort": "20_in"
},
{
"id": "port_0_to_port_21",
"sourceNode": "0",
"sourcePort": "0_out",
"targetNode": "21",
"targetPort": "21_in"
},
{
"conditions": [
{
"index": 0
}
],
"id": "port_21_to_port_12",
"sourceNode": "21",
"sourcePort": "21_out",
"targetNode": "12",
"targetPort": "12_in"
},
{
"conditions": [
{
"index": 1
}
],
"id": "port_21_to_port_22",
"sourceNode": "21",
"sourcePort": "21_out",
"targetNode": "22",
"targetPort": "22_in"
}
],
"hash": "b43182bac2c18df81288ffb1cbafde3091b65a6e",
"nodes": {
"0": {
"data": {
"advanced": {
"join": []
},
"functionName": "on_start",
"id": "0",
"type": "start"
},
"errors": {},
"id": "0",
"type": "start",
"warnings": {},
"x": 470,
"y": -6.394884621840902e-14
},
"1": {
"data": {
"advanced": {
"join": []
},
"functionId": 1,
"functionName": "on_finish",
"id": "1",
"type": "end"
},
"errors": {},
"id": "1",
"type": "end",
"userCode": "\n # This function is called after all actions are completed.\n # summary of all the action and/or all details of actions\n # can be collected here.\n\n # summary_json = phantom.get_summary()\n # if 'result' in summary_json:\n # for action_result in summary_json['result']:\n # if 'action_run_id' in action_result:\n # action_results = phantom.get_action_results(action_run_id=action_result['action_run_id'], result_data=False, flatten=False)\n # phantom.debug(action_results)\n\n",
"warnings": {},
"x": 190,
"y": 1358
},
"11": {
"data": {
"advanced": {
"customName": "outputs filter",
"customNameId": 0,
"description": "Routes outputs based on reputation score and report availability.",
"join": [],
"note": "Routes outputs based on reputation score and report availability."
},
"conditions": [
{
"comparisons": [
{
"conditionIndex": 0,
"op": ">=",
"param": "dispatch_reputation_playbooks_1:playbook_output:observable.reputation.score_id",
"value": "0"
}
],
"conditionIndex": 0,
"customName": "reputation tags",
"logic": "and"
}
],
"functionId": 1,
"functionName": "outputs_filter",
"id": "11",
"type": "filter"
},
"errors": {},
"id": "11",
"type": "filter",
"warnings": {
"config": [
"Reconfigure invalid datapath configuration."
]
},
"x": 230,
"y": 852
},
"12": {
"data": {
"advanced": {
"customName": "filter new artifacts",
"customNameId": 0,
"description": "Only dispatch reputation playbooks against new artifacts.",
"join": [],
"note": "Only dispatch reputation playbooks against new artifacts."
},
"conditions": [
{
"comparisons": [
{
"conditionIndex": 0,
"op": "!=",
"param": "artifact:*.id",
"value": "None"
}
],
"conditionIndex": 0,
"customName": "artifacts",
"logic": "and"
}
],
"functionId": 2,
"functionName": "filter_new_artifacts",
"id": "12",
"type": "filter"
},
"errors": {},
"id": "12",
"type": "filter",
"warnings": {},
"x": 370,
"y": 328
},
"17": {
"data": {
"advanced": {
"customName": "Dispatch Reputation Playbooks",
"customNameId": 1,
"join": []
},
"functionId": 1,
"functionName": "dispatch_reputation_playbooks_1",
"id": "17",
"inputs": {
"artifact_ids_include": {
"datapaths": [
"filtered-data:filter_new_artifacts:condition_1:artifact:*.id"
],
"deduplicate": false
},
"indicator_tags_exclude": {
"datapaths": [],
"deduplicate": false
},
"indicator_tags_include": {
"datapaths": [],
"deduplicate": false
},
"playbook_repo": {
"datapaths": [],
"deduplicate": false
},
"playbook_tags": {
"datapaths": [
"reputation"
],
"deduplicate": false
}
},
"playbookName": "dispatch_input_playbooks",
"playbookRepo": 3,
"playbookRepoName": "community",
"playbookType": "data",
"synchronous": true,
"type": "playbook"
},
"errors": {},
"id": "17",
"type": "playbook",
"warnings": {},
"x": 310,
"y": 508
},
"18": {
"data": {
"advanced": {
"customName": "merge reports",
"customNameId": 0,
"description": "Format a note that merges together normalized data. The data will come from the playbooks launched by the Dispatch Reputation Playbooks block.",
"join": [],
"note": "Format a note that merges together normalized data. The data will come from the playbooks launched by the Dispatch Reputation Playbooks block."
},
"customDatapaths": {
"dispatch_reputation_playbooks_1": {
"outputs:observable.type": {
"contains": [],
"isCustomDatapath": true,
"label": "outputs:observable.type",
"value": "dispatch_reputation_playbooks_1:playbook_output:observable.type"
},
"outputs:observable.value": {
"contains": [],
"isCustomDatapath": true,
"label": "outputs:observable.value",
"value": "dispatch_reputation_playbooks_1:playbook_output:observable.value"
}
},
"outputs_filter": {
"condition_1:dispatch_reputation_playbooks_1:outputs:observable.categories": {
"contains": [],
"isCustomDatapath": true,
"label": "condition_1:dispatch_reputation_playbooks_1:outputs:observable.categories",
"value": "filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.categories"
},
"condition_1:dispatch_reputation_playbooks_1:outputs:observable.reputation": {
"contains": [],
"isCustomDatapath": true,
"label": "condition_1:dispatch_reputation_playbooks_1:outputs:observable.reputation",
"value": "filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.reputation"
},
"condition_1:dispatch_reputation_playbooks_1:outputs:observable.reputation.score": {
"contains": [],
"isCustomDatapath": true,
"label": "condition_1:dispatch_reputation_playbooks_1:outputs:observable.reputation.score",
"value": "filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.reputation.score"
},
"condition_1:dispatch_reputation_playbooks_1:outputs:observable.reputation.score_id": {
"contains": [],
"isCustomDatapath": true,
"label": "condition_1:dispatch_reputation_playbooks_1:outputs:observable.reputation.score_id",
"value": "filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.reputation.score_id"
},
"condition_1:dispatch_reputation_playbooks_1:outputs:observable.source": {
"contains": [],
"isCustomDatapath": true,
"label": "condition_1:dispatch_reputation_playbooks_1:outputs:observable.source",
"value": "filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.source"
},
"condition_1:dispatch_reputation_playbooks_1:outputs:observable.source_link": {
"contains": [],
"isCustomDatapath": true,
"label": "condition_1:dispatch_reputation_playbooks_1:outputs:observable.source_link",
"value": "filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.source_link"
},
"condition_1:dispatch_reputation_playbooks_1:outputs:observable.type": {
"contains": [],
"isCustomDatapath": true,
"label": "condition_1:dispatch_reputation_playbooks_1:outputs:observable.type",
"value": "filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.type"
},
"condition_1:dispatch_reputation_playbooks_1:outputs:observable.value": {
"contains": [],
"isCustomDatapath": true,
"label": "condition_1:dispatch_reputation_playbooks_1:outputs:observable.value",
"value": "filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.value"
}
}
},
"functionId": 1,
"functionName": "merge_reports",
"id": "18",
"parameters": [
"filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.type",
"filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.value",
"filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.reputation.score",
"filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.categories",
"filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.source",
"filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.source_link"
],
"template": "SOAR performed Reputation Analysis based on available indicators and playbooks. The following table shows a summary of the information gathered.\n\n| Type | Value | Normalized Score | Categories | Source | Source Link |\n| --- | --- | --- | --- | --- | --- |\n%%\n| {0} | `{1}` | {2} | {3} | {4} | {5} |\n%%",
"type": "format"
},
"errors": {},
"id": "18",
"type": "format",
"warnings": {},
"x": 340,
"y": 1032
},
"19": {
"data": {
"advanced": {
"customName": "outputs decision",
"customNameId": 0,
"description": "Determine if outputs exist.",
"join": [],
"note": "Determine if outputs exist."
},
"conditions": [
{
"comparisons": [
{
"conditionIndex": 0,
"op": "!=",
"param": "dispatch_reputation_playbooks_1:playbook_output:observable",
"value": "None"
}
],
"conditionIndex": 0,
"customName": "outputs exist",
"display": "If",
"logic": "and",
"type": "if"
},
{
"comparisons": [
{
"op": "==",
"param": "",
"value": ""
}
],
"conditionIndex": 1,
"customName": "outputs do not exist",
"display": "Else",
"logic": "and",
"type": "else"
}
],
"functionId": 1,
"functionName": "outputs_decision",
"id": "19",
"type": "decision"
},
"errors": {},
"id": "19",
"type": "decision",
"warnings": {},
"x": 390,
"y": 672
},
"20": {
"data": {
"advanced": {
"join": []
},
"functionId": 1,
"functionName": "add_comment_1",
"id": "20",
"selectMore": false,
"tab": "apis",
"type": "utility",
"utilities": {
"comment": {
"description": "",
"fields": [
{
"description": "",
"label": "comment",
"name": "comment",
"placeholder": "Enter a comment",
"renderType": "datapath",
"required": true
},
{
"hidden": true,
"name": "container",
"required": false
},
{
"hidden": true,
"name": "author",
"required": false
},
{
"hidden": true,
"name": "trace",
"required": false
}
],
"label": "add comment",
"name": "comment"
}
},
"utilityType": "api",
"values": {
"comment": {
"_internal": [
"container",
"author",
"trace"
],
"comment": "No observable data found from playbook."
}
}
},
"errors": {},
"id": "20",
"type": "utility",
"warnings": {},
"x": 450,
"y": 868
},
"21": {
"data": {
"advanced": {
"customName": "artifact decision",
"customNameId": 0,
"description": "Determine if artifacts exist to run through the playbook.",
"join": [],
"note": "Determine if artifacts exist to run through the playbook."
},
"conditions": [
{
"comparisons": [
{
"conditionIndex": 0,
"op": "!=",
"param": "artifact:*.id",
"value": "None"
}
],
"conditionIndex": 0,
"customName": "artifacts exist",
"display": "If",
"logic": "and",
"type": "if"
},
{
"comparisons": [
{
"op": "==",
"param": "",
"value": ""
}
],
"conditionIndex": 1,
"customName": "artifacts do not exist",
"display": "Else",
"logic": "and",
"type": "else"
}
],
"functionId": 2,
"functionName": "artifact_decision",
"id": "21",
"type": "decision"
},
"errors": {},
"id": "21",
"type": "decision",
"warnings": {},
"x": 530,
"y": 148
},
"22": {
"data": {
"advanced": {
"join": []
},
"functionId": 2,
"functionName": "add_comment_2",
"id": "22",
"selectMore": false,
"tab": "apis",
"type": "utility",
"utilities": {
"comment": {
"description": "",
"fields": [
{
"description": "",
"label": "comment",
"name": "comment",
"placeholder": "Enter a comment",
"renderType": "datapath",
"required": true
},
{
"hidden": true,
"name": "container",
"required": false
},
{
"hidden": true,
"name": "author",
"required": false
},
{
"hidden": true,
"name": "trace",
"required": false
}
],
"label": "add comment",
"name": "comment"
}
},
"utilityType": "api",
"values": {
"comment": {
"_internal": [
"container",
"author",
"trace"
],
"comment": "No new artifacts found to perform Dynamic Identifier Reputation Analysis."
}
}
},
"errors": {},
"id": "22",
"type": "utility",
"warnings": {},
"x": 590,
"y": 344
},
"5": {
"data": {
"advanced": {
"customName": "update reputation task",
"customNameId": 0,
"join": []
},
"customFunction": {
"draftMode": false,
"name": "workbook_task_update",
"repoName": "community"
},
"functionId": 3,
"functionName": "update_reputation_task",
"id": "5",
"selectMore": false,
"type": "utility",
"utilities": {
"workbook_task_update": {
"description": "Update a workbook task by task name",
"fields": [
{
"dataTypes": [
"*"
],
"description": "Name of a workbook task (Required)",
"inputType": "item",
"label": "task_name",
"name": "task_name",
"placeholder": "my_task",
"renderType": "datapath",
"required": false
},
{
"dataTypes": [
"*"
],
"description": "Note title goes here (Optional)",
"inputType": "item",
"label": "note_title",
"name": "note_title",
"placeholder": "My Title",
"renderType": "datapath",
"required": false
},
{
"dataTypes": [
"*"
],
"description": "Body of note goes here (Optional)",
"inputType": "item",
"label": "note_content",
"name": "note_content",
"placeholder": "My notes",
"renderType": "datapath",
"required": false
},
{
"dataTypes": [
"*"
],
"description": "One of: incomplete, in_progress, complete (Optional)",
"inputType": "item",
"label": "status",
"name": "status",
"placeholder": "in_progress",
"renderType": "datapath",
"required": false
},
{
"dataTypes": [
"*"
],
"description": "Assigns task to provided owner. Accepts keyword 'current\" to assign task to currently running playbook user. (Optional)",
"inputType": "item",
"label": "owner",
"name": "owner",
"placeholder": "username",
"renderType": "datapath",
"required": false
},
{
"dataTypes": [
"phantom container id"
],
"description": "ID of Phantom Container (Required)",
"inputType": "item",
"label": "container",
"name": "container",
"placeholder": "container:id",
"renderType": "datapath",
"required": false
}
],
"label": "workbook_task_update",
"name": "workbook_task_update"
}
},
"utilityType": "custom_function",
"values": {
"workbook_task_update": {
"container": "container:id",
"note_content": "merge_reports:formatted_data",
"note_title": "Identifier Reputation Analysis Report",
"owner": null,
"status": "complete",
"task_name": "playbook"
}
}
},
"errors": {},
"id": "5",
"type": "utility",
"warnings": {},
"x": 340,
"y": 1210
},
"9": {
"data": {
"advanced": {
"customName": "tag indicators",
"customNameId": 0,
"join": []
},
"customFunction": {
"draftMode": false,
"name": "indicator_tag",
"repoName": "community"
},
"functionId": 6,
"functionName": "tag_indicators",
"id": "9",
"selectMore": false,
"type": "utility",
"utilities": {
"indicator_tag": {
"description": "Tag an existing indicator record. Tags can be overwritten or appended.",
"fields": [
{
"dataTypes": [
"*"
],
"description": "Specifies the indicator which the tag will be added to. Supports a string indicator value or an indicator id.",
"inputType": "item",
"label": "indicator",
"name": "indicator",
"placeholder": "my_indicator",
"renderType": "datapath",
"required": false
},
{
"dataTypes": [
"*"
],
"description": "Comma separated list of tags. Tags should only contain characters Aa-Zz, 0-9, '-', and '_'.",
"inputType": "item",
"label": "tags",
"name": "tags",
"placeholder": "tag1,tag2,...,tagk",
"renderType": "datapath",
"required": false
},
{
"dataTypes": [],
"description": "Either True or False with default as False. If set to True, existing tags on the indicator record will be replaced by the provided input. If set to False, the new tags will be appended to the existing indicator tags.",
"inputType": "item",
"label": "overwrite",
"name": "overwrite",
"placeholder": "False",
"renderType": "datapath",
"required": false
}
],
"label": "indicator_tag",
"name": "indicator_tag"
}
},
"utilityType": "custom_function",
"values": {
"indicator_tag": {
"indicator": "filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.value",
"overwrite": null,
"tags": "filtered-data:outputs_filter:condition_1:dispatch_reputation_playbooks_1:playbook_output:observable.reputation.score"
}
}
},
"errors": {},
"id": "9",
"type": "utility",
"warnings": {},
"x": 0,
"y": 1210
}
},
"notes": "Outputs: \n- Tags indicators based on reputation score. \n- Concludes reputation task."
},
"input_spec": null,
"output_spec": null,
"playbook_type": "automation",
"python_version": "3",
"schema": "5.0.9",
"version": "6.0.0.114895"
},
"create_time": "2023-04-06T23:24:14.315536+00:00",
"draft_mode": false,
"labels": [
"*"
],
"tags": [
"D3-IRA"
]
}