Skip to content

Commit 0b052a9

Browse files
authored
Resolve FNs for sengrid impersonation (#3454)
1 parent 3ad349c commit 0b052a9

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

detection-rules/brand_impersonation_sendgrid.yml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,42 @@ source: |
4646
)
4747
)
4848
)
49+
// SendGrid content from non-SendGrid marketing platforms
50+
or (
51+
sender.email.domain.root_domain in (
52+
"selfcast.com",
53+
"mailchimp.com",
54+
"constantcontact.com",
55+
"hubspot.com",
56+
"klaviyo.com",
57+
"mailgun.com"
58+
)
59+
and (
60+
(
61+
(
62+
strings.icontains(body.current_thread.text, "sendgrid")
63+
or strings.icontains(subject.subject, "sendgrid")
64+
)
65+
and 3 of (
66+
strings.icontains(body.current_thread.text, "webhook"),
67+
strings.icontains(body.current_thread.text, "endpoint"),
68+
strings.icontains(body.current_thread.text, "api"),
69+
strings.icontains(body.current_thread.text, "delivery"),
70+
strings.icontains(body.current_thread.text, "event notification")
71+
)
72+
)
73+
and (
74+
// Look for SendGrid-related content with non-SendGrid tracking links
75+
any(body.links,
76+
strings.icontains(.href_url.url, "selfcast.com")
77+
or (
78+
.display_url.url is not null
79+
and strings.icontains(.display_url.url, "sendgrid.com")
80+
)
81+
)
82+
)
83+
)
84+
)
4985
)
5086
and (
5187
// Content analysis using ML/NLU
@@ -54,7 +90,8 @@ source: |
5490
"Security and Authentication",
5591
"Secure Message",
5692
"Reminders and Notifications",
57-
"Software and App Updates"
93+
"Software and App Updates",
94+
"Customer Service and Support"
5895
)
5996
and .confidence in ("medium", "high")
6097
)
@@ -63,7 +100,8 @@ source: |
63100
"Security and Authentication",
64101
"Secure Message",
65102
"Reminders and Notifications",
66-
"Software and App Updates"
103+
"Software and App Updates",
104+
"Customer Service and Support"
67105
)
68106
and .confidence in ("medium", "high")
69107
)

0 commit comments

Comments
 (0)