Skip to content

Commit fc29e56

Browse files
[PR #3044] modified rule: Link: Single file sharing link with minimal content from unknown sender
1 parent b2edba4 commit fc29e56

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

detection-rules/3044_link_single_file_share_unkown_sender.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,26 @@ type: "rule"
44
severity: "high"
55
source: |
66
type.inbound
7-
and length(body.current_thread.text) < 1000
7+
and length(body.current_thread.text) < 800
8+
and length(body.previous_threads) == 0
89
and strings.icount(body.current_thread.text, "\n") < 20
9-
// there are few links
10-
and length(body.current_thread.links) < 10
11-
// contains a link to free_file_host
10+
11+
// there are few distinct domains in links
12+
and length(distinct(body.current_thread.links, .href_url.domain.root_domain)) < 3
13+
14+
// contains a link to free_file_host/self_service_create_platform
1215
and any(body.current_thread.links,
1316
.href_url.domain.domain in $free_file_hosts
17+
or .href_url.domain.domain in $self_service_creation_platform_domains
18+
or .href_url.domain.root_domain in $self_service_creation_platform_domains
1419
)
15-
// is the only link to limewire
20+
// only a single link to a free_file_host/self_service_create_platform
1621
and length(filter(body.current_thread.links,
1722
.href_url.domain.domain in $free_file_hosts
23+
or .href_url.domain.domain in $self_service_creation_platform_domains
24+
or .href_url.domain.root_domain in $self_service_creation_platform_domains
1825
)
1926
) == 1
20-
and length(body.previous_threads) == 0
2127
// negate highly trusted sender domains unless they fail DMARC authentication
2228
and (
2329
(
@@ -26,10 +32,12 @@ source: |
2632
)
2733
or sender.email.domain.root_domain not in $high_trust_sender_root_domains
2834
)
35+
// the sender is new or it hass been awhile since they've contacted the recipient org
2936
and (
3037
profile.by_sender_email().prevalence == "new"
3138
or profile.by_sender_email().days_since.last_contact > 60
3239
)
40+
and not profile.by_sender_email().any_messages_benign
3341
tags:
3442
- "Attack surface reduction"
3543
attack_types:
@@ -45,4 +53,4 @@ detection_methods:
4553
id: "cf9bb3aa-4dd9-5104-a058-1d4f14c28537"
4654
og_id: "e560a504-23e3-5371-b71a-a8a694a359a6"
4755
testing_pr: 3044
48-
testing_sha: 6f7d78fa84833c4ca9e74b01c0725a5a0f0b247b
56+
testing_sha: 2dda82b7eacd3c415f930808fe6554489bfd3c3d

0 commit comments

Comments
 (0)