@@ -4,20 +4,26 @@ type: "rule"
4
4
severity : " high"
5
5
source : |
6
6
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
8
9
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
12
15
and any(body.current_thread.links,
13
16
.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
14
19
)
15
- // is the only link to limewire
20
+ // only a single link to a free_file_host/self_service_create_platform
16
21
and length(filter(body.current_thread.links,
17
22
.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
18
25
)
19
26
) == 1
20
- and length(body.previous_threads) == 0
21
27
// negate highly trusted sender domains unless they fail DMARC authentication
22
28
and (
23
29
(
@@ -26,10 +32,12 @@ source: |
26
32
)
27
33
or sender.email.domain.root_domain not in $high_trust_sender_root_domains
28
34
)
35
+ // the sender is new or it hass been awhile since they've contacted the recipient org
29
36
and (
30
37
profile.by_sender_email().prevalence == "new"
31
38
or profile.by_sender_email().days_since.last_contact > 60
32
39
)
40
+ and not profile.by_sender_email().any_messages_benign
33
41
tags :
34
42
- " Attack surface reduction"
35
43
attack_types :
@@ -45,4 +53,4 @@ detection_methods:
45
53
id : " cf9bb3aa-4dd9-5104-a058-1d4f14c28537"
46
54
og_id : " e560a504-23e3-5371-b71a-a8a694a359a6"
47
55
testing_pr : 3044
48
- testing_sha : 6f7d78fa84833c4ca9e74b01c0725a5a0f0b247b
56
+ testing_sha : 2dda82b7eacd3c415f930808fe6554489bfd3c3d
0 commit comments