Google Notification alert link from non-Google sender

This rule detects messages that leverage a link to notifications.google.com not from google and from an untrusted sender. Commonly abused in salesforce phishing campaigns.

Sublime rule (View on GitHub)

 1name: "Google Notification alert link from non-Google sender"
 2description: "This rule detects messages that leverage a link to notifications.google.com not from google and from an untrusted sender. Commonly abused in salesforce phishing campaigns. "
 3type: "rule"
 4references:
 5  - "https://www.reddit.com/r/Scams/comments/15oilcr/meta_business_suite_messenger_phishing_scam_can/"
 6severity: "medium"
 7source: |
 8  type.inbound
 9  // ignore messages from google[.]com unlesss they fail DMARC authentication
10  and (
11    (
12      sender.email.domain.root_domain in ("google.com", "youtube.com", "nest.com")
13      and not headers.auth_summary.dmarc.pass
14    )
15    or sender.email.domain.root_domain not in ("google.com", "youtube.com", "nest.com")
16  )
17  and any(body.links,
18          .href_url.domain.domain == "notifications.google.com"
19          and strings.starts_with(.href_url.path, "/g/p/")
20  )
21  and (
22    any($suspicious_subjects, strings.icontains(subject.subject, .))
23    or strings.ilike(subject.subject, '*verification*')
24  )
25  and (
26    (
27      profile.by_sender().prevalence in ("new", "outlier")
28      and not profile.by_sender().solicited
29    )
30    or (
31      profile.by_sender().any_messages_malicious_or_spam
32      and not profile.by_sender().any_false_positives
33    )
34    // we've observed salesforce abuse
35    or sender.email.domain.root_domain == "salesforce.com"
36    or headers.return_path.domain.root_domain == "salesforce.com"
37  )
38  and not profile.by_sender().any_false_positives  
39attack_types:
40  - "Credential Phishing"
41tactics_and_techniques:
42  - "Social engineering"
43detection_methods:
44  - "Content analysis"
45  - "Header analysis"
46  - "Sender analysis"
47  - "URL analysis"
48id: "a1c1acfd-9b3b-58a7-81f1-b2c631b02985"
to-top