-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathanalyze-urls-for-fraud-and-abuse.json
More file actions
309 lines (309 loc) · 9.53 KB
/
analyze-urls-for-fraud-and-abuse.json
File metadata and controls
309 lines (309 loc) · 9.53 KB
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
{
"schema_version": 4,
"name": "Analyze URLS for fraud and abuse",
"description": "Mitigate fraud risk by extracting URL images found on a public page, e.g. a Pinterest board, and analyzing each one for fraud and abuse using the OCR API. Then create a Zendesk ticket where an analyst can automatically flag content deemed as malicious.\n\ntags: Zendesk, Fraud, Abuse, Pinterest, Analyze, Beginner\nicons: 🔗,🔬,zendesk\nvisibility: public",
"guid": "3a0e56b54502ee4af9ba6e9c43159e50",
"slug": "analyze_urls_for_fraud_and_abuse",
"exported_at": "2022-07-11T17:26:11Z",
"agents": [
{
"type": "Agents::HTTPRequestAgent",
"name": "OCR an Image using OCR.Space",
"disabled": false,
"guid": "d13cd104199c4cea67af06393392df1f",
"options": {
"url": "https://api.ocr.space/parse/imageurl",
"content_type": "json",
"method": "get",
"payload": {
"apikey": "<<CREDENTIAL.ocr_space>>",
"url": "<<explode_image_urls.individual_image_url>>"
}
},
"reporting": {
"time_saved_value": 0,
"time_saved_unit": "minutes"
},
"monitoring": {
"monitor_all_events": false,
"monitor_failures": false,
"monitor_no_events_emitted": null
},
"schedule": null
},
{
"type": "Agents::WebhookAgent",
"name": "Webhook Agent",
"disabled": false,
"guid": "31419eb60a264877b32ec587399f13af",
"options": {
"secret": "60f795f88dadf7b0bcdd1df97d0c939f",
"verbs": "get,post",
"path": "56f481e828c3681448b7a55e73c794b1"
},
"reporting": {
"time_saved_value": 0,
"time_saved_unit": "minutes"
},
"monitoring": {
"monitor_all_events": false,
"monitor_failures": false,
"monitor_no_events_emitted": null
}
},
{
"type": "Agents::HTTPRequestAgent",
"name": "Get URL",
"disabled": false,
"guid": "2724a6b1d03cf3fb9045648c0f4232e6",
"options": {
"url": "<<webhook_agent.body.url>>",
"content_type": "json",
"method": "get",
"payload": {},
"headers": {}
},
"reporting": {
"time_saved_value": 0,
"time_saved_unit": "minutes"
},
"monitoring": {
"monitor_all_events": false,
"monitor_failures": false,
"monitor_no_events_emitted": null
},
"schedule": null
},
{
"type": "Agents::EventTransformationAgent",
"name": "Extract Images",
"disabled": false,
"guid": "f1e76ee0601da2aa6b7e4aacea570206",
"options": {
"mode": "extract",
"matchers": [
{
"path": "=get_url.body",
"regexp": "https://i.pinimg.com/originals/[A-Za-z0-9\\-_:%&;\\?\\#\\/.=]+",
"to": "urls"
}
]
},
"reporting": {
"time_saved_value": 0,
"time_saved_unit": "minutes"
},
"monitoring": {
"monitor_all_events": false,
"monitor_failures": false,
"monitor_no_events_emitted": null
},
"schedule": null
},
{
"type": "Agents::EventTransformationAgent",
"name": "Explode Image URLs",
"disabled": false,
"guid": "96fe9088196dd0a75dff84fb7a446deb",
"options": {
"mode": "explode",
"path": "=extract_images.urls",
"to": "individual_image_url"
},
"reporting": {
"time_saved_value": 0,
"time_saved_unit": "minutes"
},
"monitoring": {
"monitor_all_events": false,
"monitor_failures": false,
"monitor_no_events_emitted": null
},
"schedule": null
},
{
"type": "Agents::HTTPRequestAgent",
"name": "Create a Zendesk Ticket",
"disabled": false,
"guid": "01921c353be3a4a99582044b1efe26bd",
"options": {
"url": "https://<<RESOURCE.zendesk_domain>>/api/v2/tickets.json",
"content_type": "json",
"method": "post",
"payload": {
"ticket": {
"subject": "New Pinterest Board Report",
"comment": {
"body": "New Board Reported\n\nBoard URL: <<webhook_agent.body.url>>\nReported By: <<webhook_agent.headers.email>>\n\nImage Text Output\n<%for image in implode_images%><<explode_image_urls.individual_image_url>>:\n\n```\n\n<<image.ocr_an_image_using_ocr_space.body.ParsedResults.first.ParsedText>>\n\n```\n<%endfor%>\n\nTo Remove these Images click [here](<<PROMPT(\"remove\")>>)\nTo Disable the account click [here](<<PROMPT(\"disable\")>>)"
}
}
},
"basic_auth": [
"<<user_email>>/token",
"<<CREDENTIAL.zendesk>>"
]
},
"reporting": {
"time_saved_value": 0,
"time_saved_unit": "minutes"
},
"monitoring": {
"monitor_all_events": false,
"monitor_failures": false,
"monitor_no_events_emitted": null
},
"schedule": null
},
{
"type": "Agents::EventTransformationAgent",
"name": "Implode Images",
"disabled": false,
"guid": "b8311b1f1b24450c0e91fc6041230fff",
"options": {
"mode": "implode",
"guid_path": "=explode_image_urls.guid",
"size_path": "=LIQUID_SIZE(explode_image_urls, \"dot_notation\")"
},
"reporting": {
"time_saved_value": 0,
"time_saved_unit": "minutes"
},
"monitoring": {
"monitor_all_events": false,
"monitor_failures": false,
"monitor_no_events_emitted": null
},
"schedule": null
},
{
"type": "Agents::TriggerAgent",
"name": "Trigger if Remove Content Clicked",
"disabled": false,
"guid": "a219b208b7eeb09378a8dc5ca185a1e0",
"options": {
"rules": [
{
"type": "regex",
"value": "remove",
"path": "<<create_a_zendesk_ticket.prompt.status>>"
}
]
},
"reporting": {
"time_saved_value": 0,
"time_saved_unit": "minutes"
},
"monitoring": {
"monitor_all_events": false,
"monitor_failures": false,
"monitor_no_events_emitted": null
}
},
{
"type": "Agents::EmailAgent",
"name": "Email Action",
"disabled": false,
"guid": "5377c73339199524567f16d7dab06016",
"options": {
"recipients": [
"<<support_email>>"
],
"subject": "Fraudulent Content Found",
"body": "New Board Reported<br><br>\n\nBoard URL: <<webhook_agent.body.url>>\nReported By: <<webhook_agent.headers.email>>\n"
},
"reporting": {
"time_saved_value": 0,
"time_saved_unit": "minutes"
},
"monitoring": {
"monitor_all_events": false,
"monitor_failures": false,
"monitor_no_events_emitted": null
},
"schedule": null
}
],
"diagram_notes": [
{
"content": "https://image-uploads.tines.com/fraud-illustration.png\n\n# Description\n\nEnter a URL at using the [form](./form)\n\nA sample Story that analyses URLs images found on a page for fraud abuse. This is not looking for phishing, rather account takeovers on sites capable of hosting content.\n\nThis Story uses a Pinterest board as an example - it will extract all images, analyze all of them using an OCR API, and create a Zendesk ticket where a fraud analyst can automatically flag content deemed as malicious",
"position": [
555.0,
30.0
],
"guid": "315086de803ee199bee0f8a75a1728ce",
"width": null
},
{
"content": "# Requirements\n\nThis story uses a free API key from [ocr.space](https://ocr.space/) - this should be added as a credential `ocr_space`\n\nIt also creates tickets in Zendesk for review - if this is needed you should add a `zendesk` credential too",
"position": [
555.0,
525.0
],
"guid": "5a78603ad1dd08e32263974396c4df92",
"width": null
}
],
"links": [
{
"source": 0,
"receiver": 6
},
{
"source": 1,
"receiver": 2
},
{
"source": 2,
"receiver": 3
},
{
"source": 3,
"receiver": 4
},
{
"source": 4,
"receiver": 0
},
{
"source": 5,
"receiver": 7
},
{
"source": 6,
"receiver": 5
},
{
"source": 7,
"receiver": 8
}
],
"diagram_layout": "{\"d13cd104199c4cea67af06393392df1f\":[285,375],\"31419eb60a264877b32ec587399f13af\":[285,30],\"2724a6b1d03cf3fb9045648c0f4232e6\":[285,120],\"f1e76ee0601da2aa6b7e4aacea570206\":[285,195],\"96fe9088196dd0a75dff84fb7a446deb\":[285,285],\"01921c353be3a4a99582044b1efe26bd\":[285,600],\"b8311b1f1b24450c0e91fc6041230fff\":[285,495],\"a219b208b7eeb09378a8dc5ca185a1e0\":[285,720],\"5377c73339199524567f16d7dab06016\":[285,825]}",
"send_to_story_enabled": false,
"entry_agent_guid": null,
"exit_agent_guids": [],
"exit_agent_guid": null,
"send_to_stories": [],
"form": {
"name": "Submit Pinterest Board",
"description": "",
"fields": [
{
"name": "URL",
"description": "Enter the pinterest board url e.g.\n\nhttps://www.pinterest.ie/hollowelldavey67/netflix-gift-code/",
"required": false,
"type": "URL",
"multi_select": false,
"options": [
"Option 1",
"Option 2"
],
"ranking": 0,
"max_characters": null,
"tenant_id": 8687
}
],
"visibility": "tenant",
"agent_guid": "31419eb60a264877b32ec587399f13af",
"success_message": "Thank you for your submission"
}
}