/
playbook-Search_and_Compare_Process_Executions_-_Generic.yml
283 lines (278 loc) · 8.31 KB
/
playbook-Search_and_Compare_Process_Executions_-_Generic.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
id: Search and Compare Process Executions - Generic
version: -1
name: Search and Compare Process Executions - Generic
description: |-
This playbook is a generic playbook that receives a process name and a command-line argument. It searches for the given process executions and compares the command-line argument from the results to the command-line argument received from the playbook input. The playbook supports searching process executions using the following integrations:
- Cortex XDR XQL Engine
- Cortex XDR IR(Search executions inside XDR alerts)
- Microsoft Defender For Endpoint
Note: Under the "Processes" input, the playbook should receive an array that contains the following keys:
- value: *process name*
- commands: *command-line arguments*
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: e4d8d0c7-56ec-4b27-8fbb-ae3a02490091
type: start
task:
id: e4d8d0c7-56ec-4b27-8fbb-ae3a02490091
version: -1
name: ""
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "15"
- "16"
- "17"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 450,
"y": 80
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"14":
id: "14"
taskid: 6511abc4-4a61-4657-86b8-3809cbcc5dae
type: title
task:
id: 6511abc4-4a61-4657-86b8-3809cbcc5dae
version: -1
name: Done
type: title
iscommand: false
brand: ""
description: ''
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 450,
"y": 400
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"15":
id: "15"
taskid: 0c2ea311-165b-48ae-8f5f-92cb5ec5e81b
type: playbook
task:
id: 0c2ea311-165b-48ae-8f5f-92cb5ec5e81b
version: -1
name: MDE - Search and Compare Process Executions
description: |-
This playbook is a generic playbook that receives a process name and a command-line argument. It uses the "Microsoft Defender For Endpoint" integration to search for the given process executions and compares the command-line argument from the results to the command-line argument received from the playbook input.
Note: Under the "Processes" input, the playbook should receive an array that contains the following keys:
- value: *process name*
- commands: *command-line arguments*
playbookName: MDE - Search and Compare Process Executions
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "14"
scriptarguments:
HuntingTimeFrame:
complex:
root: inputs.HuntingTimeFrame
Processes:
complex:
root: inputs.Processes
StringSimilarityThreshold:
complex:
root: inputs.StringSimilarityThreshold
separatecontext: true
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 100
view: |-
{
"position": {
"x": 450,
"y": 220
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: true
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"16":
id: "16"
taskid: 936cbb1b-fc14-42e0-80e4-9ca0bbec9f10
type: playbook
task:
id: 936cbb1b-fc14-42e0-80e4-9ca0bbec9f10
version: -1
name: Cortex XDR - Search and Compare Process Executions - XDR Alerts
description: |-
This playbook is a generic playbook that receives a process name and a command-line argument. It uses the "Cortex XDR IR" integration to search for the given process executions inside XDR alerts and compares the command-line argument from the results to the command-line argument received from the playbook input.
Note: Under the "Processes" input the playbook should receive an array that contains the following keys:
- value: *process name*
- commands: *command-line arguments*
playbookName: Cortex XDR - Search and Compare Process Executions - XDR Alerts
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "14"
scriptarguments:
HuntingTimeFrame:
complex:
root: inputs.HuntingTimeFrame
Processes:
complex:
root: inputs.Processes
SearchXDRAlerts:
complex:
root: inputs.SearchXDRAlerts
StringSimilarityThreshold:
complex:
root: inputs.StringSimilarityThreshold
separatecontext: true
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 100
forEach: true
view: |-
{
"position": {
"x": 40,
"y": 220
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: true
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"17":
id: "17"
taskid: 6246b45d-476d-4e3d-8c6a-6eccafe838ef
type: playbook
task:
id: 6246b45d-476d-4e3d-8c6a-6eccafe838ef
version: -1
name: Cortex XDR - Search and Compare Process Executions - XQL Engine
description: |-
This playbook is a generic playbook that receives a process name and a command-line argument. It uses the "Cortex XDR - XQL Engine" integration to search for the given process executions and compares the command-line argument from the results to the command-line argument received from the playbook input.
Note: Under the "Processes" input, the playbook should receive an array that contains the following keys:
- value: *process name*
- commands: *command-line arguments*
playbookName: Cortex XDR - Search and Compare Process Executions - XQL Engine
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "14"
scriptarguments:
HuntingTimeFrame:
complex:
root: inputs.HuntingTimeFrame
Processes:
complex:
root: inputs.Processes
StringSimilarityThreshold:
complex:
root: inputs.StringSimilarityThreshold
separatecontext: true
continueonerrortype: ""
loop:
iscommand: false
exitCondition: ""
wait: 1
max: 100
view: |-
{
"position": {
"x": 870,
"y": 220
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: true
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 385,
"width": 1210,
"x": 40,
"y": 80
}
}
}
inputs:
- key: Processes
value: {}
required: false
description: |-
Process name to search and command-line argument to compare. This input should receive an array that contains the following keys:
- value: *process name*
- commands: *command-line arguments*
playbookInputQuery:
- key: HuntingTimeFrame
value:
simple: 7 days
required: false
description: 'Time in relative date or range format (for example: "1 day", "3 weeks ago", "between 2021-01-01 12:34:56 +02:00 and 2021-02-01 12:34:56 +02:00"). The default is the last 24 hours.'
playbookInputQuery:
- key: StringSimilarityThreshold
value:
simple: "0.5"
required: false
description: StringSimilarity automation threshold. A number between 0 and 1, where 1 represents the most similar results of string comparisons. The automation will output only the results with a similarity score equal to or greater than the specified threshold.
playbookInputQuery:
- key: SearchXDRAlerts
value: {}
required: false
description: Set to "True" if you want to hunt for processes that are part of XDR alerts
playbookInputQuery:
outputs:
- contextPath: StringSimilarity
description: StringSimilarity automation results.
type: unknown
- contextPath: Findings
description: Suspicious process executions found.
type: unknown
tests:
- No tests (auto formatted)
fromversion: 6.9.0