You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: "Link: Office document hosted on suspicious file sharing service"
2
+
description: "Detects messages containing links with office document file extensions in the display text that are hosted on Telegram Bot API, free file hosts, or free subdomain hosts, excluding SharePoint."
3
+
type: "rule"
4
+
severity: "medium"
5
+
source: |
6
+
type.inbound
7
+
and length(body.links) < 20
8
+
9
+
// message contains a link with office file extension in display text
10
+
and any(body.current_thread.links,
11
+
// display text suggests an office document
12
+
regex.icontains(.display_text,
13
+
'\.(pdf|doc|docx|xls|xlsx|ppt|pptx|csv)$'
14
+
)
15
+
// and it's hosted on Telegram Bot API
16
+
and (
17
+
(
18
+
.href_url.domain.root_domain == "telegram.org"
19
+
and strings.istarts_with(.href_url.path, '/file/bot')
20
+
)
21
+
// or it's a free file host
22
+
or (
23
+
.href_url.domain.root_domain in $free_file_hosts
24
+
and .href_url.domain.root_domain != "sharepoint.com"
25
+
)
26
+
or .href_url.domain.root_domain in $free_subdomain_hosts
27
+
// or it's a mimecast rewrite linking to the above
0 commit comments