Skip to content

Commit a6d6dcc

Browse files
[PR #3416] modified rule: Spam: Mastercard promotional content with image-based body
1 parent 9b462ff commit a6d6dcc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

detection-rules/3416_spam_mastercard_promo.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ type: "rule"
44
severity: "low"
55
source: |
66
type.inbound
7+
and length(attachments) == 0
8+
and not subject.is_forward
79
and any(ml.nlu_classifier(beta.ocr(file.message_screenshot()).text).topics,
810
.name == "Financial Communications"
911
)
@@ -50,4 +52,4 @@ detection_methods:
5052
id: "e5402e0a-54d4-58da-89d4-13862a5c29dc"
5153
og_id: "5f2cb559-0db6-5aa0-b8ee-496d688eafa0"
5254
testing_pr: 3416
53-
testing_sha: f3bf3bc5e2773630150b9b3bac56e8b2e74335d5
55+
testing_sha: 32cbdb03573c78ba826aa0ff64d58b5535ac81fc

0 commit comments

Comments
 (0)