-
Notifications
You must be signed in to change notification settings - Fork 1
/
Case Promotion Lab.json
303 lines (303 loc) · 13.6 KB
/
Case Promotion Lab.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
{
"blockly": false,
"blockly_xml": "<xml></xml>",
"category": "Uncategorized",
"coa": {
"data": {
"description": "",
"edges": [
{
"id": "port_0_to_port_2",
"sourceNode": "0",
"sourcePort": "0_out",
"targetNode": "2",
"targetPort": "2_in"
},
{
"id": "port_2_to_port_3",
"sourceNode": "2",
"sourcePort": "2_out",
"targetNode": "3",
"targetPort": "3_in"
}
],
"hash": "4d6cf4a665094f6547e64d137a908a3087128d34",
"nodes": {
"0": {
"data": {
"advanced": {
"join": []
},
"functionName": "on_start",
"id": "0",
"type": "start"
},
"errors": {},
"id": "0",
"type": "start",
"x": 1000,
"y": 419.9999999999999
},
"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",
"x": 1000,
"y": 1000
},
"2": {
"data": {
"advanced": {
"customName": "Compose Report",
"customNameId": 0,
"drop_none": true,
"join": []
},
"functionId": 1,
"functionName": "compose_report",
"id": "2",
"parameters": [
"container:url",
"container:name",
"container:description",
"artifact:*.cef.sourceDnsDomain",
"artifact:*.cef.destinationAddress",
"artifact:*.cef.filePath",
"playbook_input:promotion_reason",
"playbook_input:hash_history"
],
"template": "A file has been detected with potentially malicious content. A case has been opened.\n\n-**Case Link**:{0}\n-**Container Name**: {1}\n-**Container Description**: {2}\n-**Source URL**: {3}\n-**Target server IP**: {4}\n-**Suspicious File Path**: {5} (*{7}*)\n-**Reason for promotion**: {6}\n",
"type": "format"
},
"errors": {},
"id": "2",
"type": "format",
"x": 980,
"y": 564.5
},
"3": {
"data": {
"advanced": {
"join": [],
"refreshNotableData": true
},
"functionId": 1,
"functionName": "add_comment_promote_to_case_add_note_1",
"id": "3",
"selectMore": false,
"tab": "apis",
"type": "utility",
"utilities": {
"add_note": {
"description": "",
"fields": [
{
"description": "",
"label": "title",
"name": "title",
"placeholder": "Enter a note title",
"renderType": "datapath",
"required": false
},
{
"description": "",
"label": "content",
"name": "content",
"placeholder": "Enter the note content",
"renderType": "datapath",
"required": false
},
{
"choices": [
"markdown",
"html"
],
"default": "markdown",
"description": "",
"label": "note format",
"name": "note_format",
"placeholder": "Enter the note content",
"renderType": "dropdown",
"required": false
},
{
"hidden": true,
"name": "container",
"required": false
},
{
"default": "general",
"hidden": true,
"name": "note_type",
"required": false
},
{
"hidden": true,
"name": "author",
"required": false
},
{
"hidden": true,
"name": "event_id",
"required": false
},
{
"hidden": true,
"name": "task_id",
"required": false
},
{
"hidden": true,
"name": "trace",
"required": false
}
],
"label": "add note",
"name": "add_note"
},
"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"
},
"promote": {
"description": "",
"fields": [
{
"choices": [
"NIST 800-61",
"Response Template 1",
"Account Compromise",
"Data Breach",
"Network Indicator Enrichment",
"Risk Investigation",
"Risk Response",
"Self-Replicating Malware",
"Suspicious Email",
"Vulnerability Disclosure"
],
"description": "",
"label": "template",
"name": "template",
"placeholder": "Select a template",
"renderType": "dropdown",
"required": false
},
{
"hidden": true,
"name": "container",
"required": false
},
{
"hidden": true,
"name": "trace",
"required": false
}
],
"label": "promote to case",
"name": "promote",
"refreshNotableData": true
}
},
"utilityType": "api",
"values": {
"add_note": {
"_internal": [
"container",
"note_type",
"author",
"event_id",
"task_id",
"trace"
],
"content": "compose_report:formatted_data",
"note_format": "markdown",
"note_type": "general",
"title": "Incident Report"
},
"comment": {
"_internal": [
"container",
"author",
"trace"
],
"comment": "Promoted to case"
},
"promote": {
"_internal": [
"container",
"trace"
],
"template": "Data Breach"
}
}
},
"errors": {},
"id": "3",
"type": "utility",
"x": 980,
"y": 724.5
}
},
"notes": ""
},
"input_spec": [
{
"contains": [],
"description": "",
"name": "Promotion Reason"
},
{
"contains": [],
"description": "",
"name": "Hash history"
}
],
"output_spec": null,
"playbook_type": "data",
"python_version": "3",
"schema": "5.0.8",
"version": "5.3.4.95116"
},
"create_time": "2022-10-14T16:34:37.837379+00:00",
"draft_mode": false,
"labels": [
"*"
],
"tags": []
}