Link: Romance/Sexual Language With Suspicious Link

Detects messages containing romantic or adult-themed language, combined with links to newly registered domains or suspicious reply-to addresses.

Sublime rule (View on GitHub)

 1name: "Link: Romance/Sexual Language With Suspicious Link"
 2description: "Detects messages containing romantic or adult-themed language, combined with links to newly registered domains or suspicious reply-to addresses."
 3type: "rule"
 4severity: "low"
 5source: |
 6  type.inbound
 7  and length(body.previous_threads) == 0
 8  and (
 9    any(ml.nlu_classifier(body.current_thread.text).topics,
10        .name in ("Romance", "Sexually Explicit Messages")
11        and .confidence == "high"
12    )
13    or (
14      length(body.current_thread.links) < 5
15      and any(body.links,
16              any(ml.nlu_classifier(ml.link_analysis(., mode="aggressive").final_dom.display_text
17                  ).topics,
18                  .name in ("Romance", "Sexually Explicit Messages")
19                  and .confidence == "high"
20              )
21      )
22    )
23  )
24  and 1 of (
25    any(body.links, network.whois(.href_url.domain).days_old < 30),
26    any(body.links, .href_url.domain.root_domain in $url_shorteners),
27    any(body.links, .href_url.domain.domain in $free_subdomain_hosts),
28    any(body.links,
29        .href_url.domain.tld in ('ru', 'app', 'digital', 'click', 'garden')
30    ),
31    any(headers.reply_to, network.whois(.email.domain).days_old < 30),
32    any(body.links,
33        length(.href_url.domain.subdomain) > 3
34        and (
35          strings.iends_with(.href_url.path,
36                             strings.concat('/', .href_url.domain.subdomain)
37          )
38        )
39    )
40  )
41  and all(body.links,
42          .href_url.domain.root_domain != sender.email.domain.root_domain
43  )  
44
45attack_types:
46  - "Spam"
47tactics_and_techniques:
48  - "Social engineering"
49detection_methods:
50  - "Content analysis"
51  - "Header analysis"
52  - "URL analysis"
53  - "Whois"
54id: "d5694cae-bee8-588e-8123-2c3e3459118b"
to-top