Skip to content

Commit

Permalink
Negate FP: link_credential_phishing_voicemail_language.yml
Browse files Browse the repository at this point in the history
Negating automatic replies.
  • Loading branch information
morriscode authored Sep 20, 2023
1 parent fdf9156 commit 5b75f1f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion detection-rules/link_credential_phishing_voicemail_language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ source: |
all(body.links,
.href_url.domain.root_domain != sender.email.domain.root_domain
and .href_url.domain.root_domain not in $org_domains
and .href_url.domain.root_domain not in ("unitelvoice.com", "googleapis.com", "dialmycalls.com")
and .href_url.domain.root_domain not in (
"unitelvoice.com",
"googleapis.com",
"dialmycalls.com"
)
)
),
(
Expand All @@ -34,6 +38,20 @@ source: |
),
)
and sender.email.domain.root_domain not in ("magicjack.com", "unitelvoice.com")
// negating legit replies
and not (
(
strings.istarts_with(subject.subject, "RE:")
// out of office auto-reply
// the NLU model will handle these better natively soon
or strings.istarts_with(subject.subject, "Automatic reply:")
)
and (
length(headers.references) > 0
or any(headers.hops, any(.fields, strings.ilike(.name, "In-Reply-To")))
)
)
and (
(
sender.email.domain.root_domain in $free_email_providers
Expand Down

0 comments on commit 5b75f1f

Please sign in to comment.