Skip to content

Commit 99cde04

Browse files
[Shared Samples] [PR #4586] modified rule: PR# 4586 - BEC: Tax document request
1 parent c0fdeac commit 99cde04

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

detection-rules/4586_tax_w2_impersonation.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,13 @@ source: |
4949
and any(ml.nlu_classifier(body.current_thread.text).entities,
5050
.name == "request"
5151
)
52-
and not (
53-
strings.ilike(sender.display_name,
54-
"*Excel*",
55-
"*SharePoint*",
56-
"*PowerPoint*",
57-
"*OneNote*",
58-
"*Microsoft*"
59-
)
52+
and sender.email.domain.root_domain not in (
53+
"excel.com",
54+
"sharepoint.com",
55+
"sharepointonline.com",
56+
"powerpoint.com",
57+
"onenote.com",
58+
"microsoft.com"
6059
)
6160
and not any(ml.nlu_classifier(body.current_thread.text).intents,
6261
.name == "benign" and .confidence == "high"

0 commit comments

Comments
 (0)