Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions detection-rules/service_abuse_sendgrid_impersonation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ source: |
)
and (
sender.display_name is null
or strings.ilike(strings.replace_confusables(subject.base),
'*sendgrid*'
)
or strings.ilike(strings.replace_confusables(subject.base), '*sendgrid*')
)
)
or any(ml.logo_detect(file.message_screenshot()).brands,
Expand All @@ -29,13 +27,16 @@ source: |
and any(headers.domains,
strings.icontains(.domain, 'outbound-mail.sendgrid.net')
)
// new senders only
and profile.by_sender_email().prevalence == "new"

// not common senders with valid domains
// this catches cases where the domain is invalid and senders become common
and not (
profile.by_sender_email().prevalence == "common" and sender.email.domain.valid
)

// negate legit sendgrid messages
and not (
sender.email.domain.domain == "sendgrid.com"
and coalesce(headers.auth_summary.dmarc.pass, false)
sender.email.domain.domain == "sendgrid.com"
and coalesce(headers.auth_summary.dmarc.pass, false)
)

attack_types:
Expand Down
Loading