Link: Free Subdomain host with undisclosed recipients
Detects messages with undisclosed recipients, containing links to free subdomain hosts
Sublime rule (View on GitHub)
1name: "Link: Free Subdomain host with undisclosed recipients"
2description: |
3 Detects messages with undisclosed recipients, containing links to free subdomain hosts
4type: "rule"
5severity: "medium"
6source: |
7 type.inbound
8 and any(body.links,
9 .href_url.domain.root_domain in $free_subdomain_hosts
10 and .href_url.domain.subdomain is not null
11 and .href_url.domain.subdomain != "www"
12 and not (
13 .href_url.domain.root_domain == "googleusercontent.com"
14 and strings.istarts_with(.href_url.path, "/mail-sig")
15 )
16 )
17 and (length(recipients.to) == 0 or all(recipients.to, .display_name == "Undisclosed recipients"))
18 and length(recipients.cc) == 0
19 and length(recipients.bcc) == 0
20
21 // negate listmailers & benign threads
22 and not (
23 any(headers.hops, any(.fields, .name == "List-Unsubscribe"))
24 or any(ml.nlu_classifier(body.current_thread.text).intents,
25 .name == "benign" and .confidence == "high"
26 )
27 )
28 and (
29 profile.by_sender().prevalence in ("new", "outlier")
30 or profile.by_sender().any_messages_malicious_or_spam
31 )
32 and not profile.by_sender().any_false_positives
33
34tags:
35 - "Attack surface reduction"
36tactics_and_techniques:
37 - "Free subdomain host"
38detection_methods:
39 - "Header analysis"
40 - "URL analysis"
41id: "c23d979d-de80-599d-b0ca-c7fef217885e"