X (Twitter) impersonation with credential phishing motives

This rule is designed to identify impersonation attempts by analyzing the display name or sender's local part for the solitary use of "X" provided the email doesn't originate from twitter.com or x.com. Natural Language Understanding (NLU) is used to check for credential theft requiring a medium-to-high confidence level for flagging.

Sublime rule (View on GitHub)

 1name: "X (Twitter) impersonation with credential phishing motives"
 2description: |
 3  This rule is designed to identify impersonation attempts by analyzing the display name or sender's
 4  local part for the solitary use of "X" provided the email doesn't originate from twitter.com or x.com.
 5  Natural Language Understanding (NLU) is used to check for credential theft requiring a medium-to-high confidence level for flagging.  
 6type: "rule"
 7severity: "medium"
 8source: |
 9  type.inbound
10  and sender.display_name =~ "x"
11  and sender.email.domain.root_domain not in ("twitter.com", "x.com")
12  and (
13    any(attachments,
14        .file_type in~ $file_types_images
15        and any(file.explode(.),
16                any(ml.nlu_classifier(.scan.ocr.raw).intents,
17                    .name == "cred_theft" and .confidence != "low"
18                )
19        )
20    )
21    or any(ml.nlu_classifier(body.current_thread.text).intents,
22           .name == "cred_theft" and .confidence != "low"
23    )
24  )
25
26  // negate highly trusted sender domains unless they fail DMARC authentication
27  and (
28    (
29      sender.email.domain.root_domain in $high_trust_sender_root_domains
30      and not headers.auth_summary.dmarc.pass
31    )
32    or sender.email.domain.root_domain not in $high_trust_sender_root_domains
33  
34    // salesforce has been abused for x/twitter phishing campaigns repeatedly 
35    or sender.email.domain.root_domain == "salesforce.com"
36  )  
37attack_types:
38  - "Credential Phishing"
39tactics_and_techniques:
40  - "Impersonation: Brand"
41  - "Social engineering"
42detection_methods:
43  - "Computer Vision"
44  - "File analysis"
45  - "Header analysis"
46  - "Optical Character Recognition"
47  - "Natural Language Understanding"
48  - "Sender analysis"
49id: "0b60dca6-db2d-5718-94d8-fdbfd06bd081"
to-top