-
Notifications
You must be signed in to change notification settings - Fork 68
/
Generate Intelligence Report.pbx
204 lines (204 loc) · 6.22 KB
/
Generate Intelligence Report.pbx
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
{
"name" : "Generate Intelligence Report",
"type" : "Standard",
"panX" : -259.0,
"panY" : -32.0,
"logLevel" : "WARN",
"description" : "",
"version" : "1.2",
"comment" : "Auto-Saved on Tue Sep 22 16:20:04 UTC 2020",
"jobList" : [ {
"id" : 77952,
"appCatalogItem" : {
"programName" : "TCAB - 786d8521-e895-4823-8ab1-5bc2a42a10bf v1",
"displayName" : "Generate Intelligence Report",
"programVersion" : "1.1.0"
},
"name" : "Generate Intelligence Report",
"jobParameterList" : [ {
"appCatalogItemParameter" : {
"paramName" : "report_id"
},
"value" : "#Trigger:5143:trg.action.entity!TCEntity"
}, {
"appCatalogItemParameter" : {
"paramName" : "header_logo"
},
"value" : "https://threatconnect.com/wp-content/uploads/ThreatConnect-Featured-2019.jpg"
}, {
"appCatalogItemParameter" : {
"paramName" : "owner"
},
"value" : "pbdev"
} ],
"locationLeft" : 390.0,
"locationTop" : 330.0,
"outputVariables" : "[{\"sourceInputList\":[],\"loopVariables\":false,\"name\":\"report_html\",\"type\":\"Binary\"}]"
}, {
"id" : 77953,
"appCatalogItem" : {
"programName" : "TCPB - ReportUpload v1.0",
"displayName" : "Upload a file to a Report",
"programVersion" : "1.0.26"
},
"name" : "Upload a file to a Report",
"jobParameterList" : [ {
"appCatalogItemParameter" : {
"paramName" : "resource_id"
},
"value" : "#App:77957:tc.report!TCEntity"
}, {
"appCatalogItemParameter" : {
"paramName" : "resource_type"
},
"value" : "Report"
}, {
"appCatalogItemParameter" : {
"paramName" : "filename"
},
"value" : "#App:77957:tc.report.name!String.html"
}, {
"appCatalogItemParameter" : {
"paramName" : "resource_data"
},
"value" : "#App:77952:report_html!Binary"
} ],
"locationLeft" : 830.0,
"locationTop" : 330.0
}, {
"id" : 77957,
"appCatalogItem" : {
"programName" : "TCPB - ReportRetrieveById v1.0",
"displayName" : "Get ThreatConnect Report by ID",
"programVersion" : "1.0.26"
},
"name" : "Get Report by ID",
"jobParameterList" : [ {
"appCatalogItemParameter" : {
"paramName" : "resource_type"
},
"value" : "Report"
}, {
"appCatalogItemParameter" : {
"paramName" : "ids"
},
"value" : "#Trigger:5143:trg.action.entity!TCEntity"
} ],
"locationLeft" : 600.0,
"locationTop" : 330.0,
"outputVariables" : "[{\"sourceInputList\":[],\"loopVariables\":false,\"name\":\"tc.report\",\"type\":\"TCEntity\"},{\"sourceInputList\":[],\"loopVariables\":false,\"name\":\"tc.report.name\",\"type\":\"String\"}]",
"playbookRetryDelayMinutes" : 5,
"playbookRetryMaxRetries" : 12
}, {
"id" : 77958,
"appCatalogItem" : {
"programName" : "TCPB - SetVariable v1.0",
"displayName" : "Set Variable",
"programVersion" : "1.0.14"
},
"name" : "Set Failure",
"jobParameterList" : [ {
"appCatalogItemParameter" : {
"paramName" : "variable_mapping"
},
"value" : "[{\"key\":\"v.Fail\",\"value\":\"Error occurred, check the logs\"}]"
} ],
"locationLeft" : 600.0,
"locationTop" : 430.0,
"outputVariables" : "[{\"sourceInputList\":[],\"loopVariables\":false,\"name\":\"v.Fail\",\"type\":\"String\"}]"
}, {
"id" : 77959,
"appCatalogItem" : {
"programName" : "TCPB - SetVariable v1.0",
"displayName" : "Set Variable",
"programVersion" : "1.0.14"
},
"name" : "Set Success",
"jobParameterList" : [ {
"appCatalogItemParameter" : {
"paramName" : "variable_mapping"
},
"value" : "[{\"key\":\"v.Success\",\"value\":\"Successfully updated report. Refresh the page to see the result.\"}]"
} ],
"locationLeft" : 1050.0,
"locationTop" : 330.0,
"outputVariables" : "[{\"sourceInputList\":[],\"loopVariables\":false,\"name\":\"v.Success\",\"type\":\"String\"}]"
}, {
"id" : 77960,
"appCatalogItem" : {
"programName" : "Merge",
"displayName" : "Merge",
"programVersion" : "1.0.0"
},
"name" : "Merge Results",
"jobParameterList" : [ {
"appCatalogItemParameter" : {
"paramName" : "output_array"
},
"value" : "[{\"key\":\"m.result\",\"value\":\"#App:77958:v.Fail!String #App:77959:v.Success!String\"}]"
} ],
"locationLeft" : 1280.0,
"locationTop" : 370.0,
"outputVariables" : "[{\"sourceInputList\":[],\"loopVariables\":false,\"name\":\"m.result\",\"type\":\"String\"}]"
} ],
"playbookConnectionList" : [ {
"type" : "Pass",
"isCircularOnTarget" : false,
"targetJobId" : 77952,
"sourceTriggerId" : 5143
}, {
"type" : "Pass",
"isCircularOnTarget" : false,
"sourceJobId" : 77952,
"targetJobId" : 77957
}, {
"type" : "Pass",
"isCircularOnTarget" : false,
"sourceJobId" : 77957,
"targetJobId" : 77953
}, {
"type" : "Fail",
"isCircularOnTarget" : false,
"sourceJobId" : 77952,
"targetJobId" : 77958
}, {
"type" : "Pass",
"isCircularOnTarget" : false,
"sourceJobId" : 77953,
"targetJobId" : 77959
}, {
"type" : "Pass",
"isCircularOnTarget" : false,
"sourceJobId" : 77959,
"targetJobId" : 77960
}, {
"type" : "Pass",
"isCircularOnTarget" : false,
"sourceJobId" : 77958,
"targetJobId" : 77960
}, {
"type" : "Pass",
"isCircularOnTarget" : true,
"sourceJobId" : 77960,
"targetTriggerId" : 5143
} ],
"playbookTriggerList" : [ {
"id" : 5143,
"name" : "Generate Report",
"type" : "UserAction",
"eventType" : "External",
"locationLeft" : 780.0,
"locationTop" : 130.0,
"httpResponseHeader" : "[]",
"httpResponseBody" : "#App:77960:m.result!String",
"anyOrg" : true,
"userActionTypes" : "Report",
"renderBodyAsTip" : true,
"playbookTriggerFilterList" : [ ],
"outputVariables" : "[{\"sourceInputList\":[],\"loopVariables\":false,\"name\":\"trg.action.entity\",\"type\":\"TCEntity\"}]",
"cacheMinutes" : 120,
"cacheParams" : "{\"includeMethod\":false,\"includeBody\":false,\"queryParams\":[],\"headerNames\":[]}"
} ],
"playbookLabels" : [ ],
"exportablePipes" : [ ]
}