forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-EmailDomainSquattingReputation-Test.yml
317 lines (317 loc) · 6.55 KB
/
playbook-EmailDomainSquattingReputation-Test.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
id: EmailDomainSquattingReputation-Test
version: -1
name: EmailDomainSquattingReputation-Test
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 381ba71b-1e72-4dce-8791-a571b43e5fd0
type: start
task:
id: 381ba71b-1e72-4dce-8791-a571b43e5fd0
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
"1":
id: "1"
taskid: f8f187b9-ade2-48da-8e7f-d80e8c518c4c
type: regular
task:
id: f8f187b9-ade2-48da-8e7f-d80e8c518c4c
version: -1
name: DeleteContext
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
scriptarguments:
all:
simple: "yes"
index: {}
key: {}
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 230
}
}
note: false
timertriggers: []
ignoreworker: false
"2":
id: "2"
taskid: d6d9c4de-72df-4038-8aa4-0a994a4695f2
type: regular
task:
id: d6d9c4de-72df-4038-8aa4-0a994a4695f2
version: -1
name: Domain Squatting - Single Domain
description: Check if an email address's domain is trying to squat other domain
using Levenshtein distance algorithm
scriptName: EmailDomainSquattingReputation
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
domain:
simple: test1.com
email:
simple: test@test.com
threshold: {}
reputationcalc: 1
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 430
}
}
note: false
timertriggers: []
ignoreworker: false
"3":
id: "3"
taskid: d85a9a7a-8354-4436-85d1-f5737002f38a
type: condition
task:
id: d85a9a7a-8354-4436-85d1-f5737002f38a
version: -1
name: Verify Context
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "4"
Valid:
- "5"
separatecontext: false
conditions:
- label: Valid
condition:
- - operator: isEqualString
left:
value:
simple: Account.Email.Distance.Value
iscontext: true
right:
value:
simple: "1"
view: |-
{
"position": {
"x": 450,
"y": 620
}
}
note: false
timertriggers: []
ignoreworker: false
"4":
id: "4"
taskid: 4593cb27-a734-4455-88fb-04fa185379fe
type: regular
task:
id: 4593cb27-a734-4455-88fb-04fa185379fe
version: -1
name: Verification Failed
description: Prints an error entry with a given message
scriptName: PrintErrorEntry
type: regular
iscommand: false
brand: ""
scriptarguments:
message:
simple: Failed verifying context
separatecontext: false
view: |-
{
"position": {
"x": 1050,
"y": 1500
}
}
note: false
timertriggers: []
ignoreworker: false
"5":
id: "5"
taskid: 6c85d542-0ffe-4d5e-8990-1b93de492a67
type: regular
task:
id: 6c85d542-0ffe-4d5e-8990-1b93de492a67
version: -1
name: Delete Context
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "6"
scriptarguments:
all:
simple: "yes"
index: {}
key: {}
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 895
}
}
note: false
timertriggers: []
ignoreworker: false
"6":
id: "6"
taskid: 0f54289b-b383-4cbe-8b94-123538351abd
type: regular
task:
id: 0f54289b-b383-4cbe-8b94-123538351abd
version: -1
name: Domain Squatting - Array with empty
description: Check if an email address's domain is trying to squat other domain
using Levenshtein distance algorithm
scriptName: EmailDomainSquattingReputation
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
domain:
simple: ${.=['test1.com','','test2.com']}
email:
simple: test@test.com
threshold: {}
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 1090
}
}
note: false
timertriggers: []
ignoreworker: false
"7":
id: "7"
taskid: ed1bc9f1-b2a4-4cee-8dda-a3ec23198560
type: condition
task:
id: ed1bc9f1-b2a4-4cee-8dda-a3ec23198560
version: -1
name: Verify Context
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "4"
"yes":
- "8"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
complex:
root: Account
accessor: Email.Distance.Domain
transformers:
- operator: uniq
- operator: count
iscontext: true
right:
value:
simple: "2"
view: |-
{
"position": {
"x": 450,
"y": 1320
}
}
note: false
timertriggers: []
ignoreworker: false
"8":
id: "8"
taskid: 3320c596-f2aa-41bf-8d3b-d09aa1c64b9a
type: regular
task:
id: 3320c596-f2aa-41bf-8d3b-d09aa1c64b9a
version: -1
name: Close
description: commands.local.cmd.close.inv
script: Builtin|||closeInvestigation
type: regular
iscommand: true
brand: Builtin
scriptarguments:
assetid: {}
closeNotes: {}
closeReason: {}
id: {}
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 1600
}
}
note: false
timertriggers: []
ignoreworker: false
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 1645,
"width": 980,
"x": 450,
"y": 50
}
}
}
inputs: []
outputs: []