Skip to content

Commit 685f474

Browse files
[PR #3416] added rule: Spam: Mastercard promotional content with image-based body
1 parent e39e181 commit 685f474

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: "Spam: Mastercard promotional content with image-based body"
2+
description: "Detects messages promoting untrustworthy Mastercard credit cards that contain both financial communications and promotional content topics, with the message body primarily consisting of image content rather than text. Excludes legitimate payment-related Mastercard communications and applies additional scrutiny to high-trust sender domains that fail DMARC authentication."
3+
type: "rule"
4+
severity: "low"
5+
source: |
6+
type.inbound
7+
and any(ml.nlu_classifier(beta.ocr(file.message_screenshot()).text).topics,
8+
.name == "Financial Communications"
9+
)
10+
and any(ml.nlu_classifier(beta.ocr(file.message_screenshot()).text).topics,
11+
.name == "Advertising and Promotions"
12+
)
13+
14+
// mastercard mention
15+
and strings.icontains(beta.ocr(file.message_screenshot()).text, "mastercard")
16+
and not strings.icontains(beta.ocr(file.message_screenshot()).text,
17+
"paying with mastercard"
18+
)
19+
20+
// body is image
21+
and (
22+
length(beta.ocr(file.message_screenshot()).text) / length(body.current_thread.text
23+
)
24+
) > 10
25+
and length(body.previous_threads) == 0
26+
27+
// negate highly trusted sender domains unless they fail DMARC authentication
28+
and (
29+
(
30+
sender.email.domain.root_domain in $high_trust_sender_root_domains
31+
and not headers.auth_summary.dmarc.pass
32+
)
33+
or sender.email.domain.root_domain not in $high_trust_sender_root_domains
34+
)
35+
36+
attack_types:
37+
- "Credential Phishing"
38+
- "Spam"
39+
tactics_and_techniques:
40+
- "Image as content"
41+
- "Impersonation: Brand"
42+
- "Social engineering"
43+
detection_methods:
44+
- "Computer Vision"
45+
- "Content analysis"
46+
- "Header analysis"
47+
- "Natural Language Understanding"
48+
- "Optical Character Recognition"
49+
- "Sender analysis"
50+
id: "e5402e0a-54d4-58da-89d4-13862a5c29dc"
51+
og_id: "5f2cb559-0db6-5aa0-b8ee-496d688eafa0"
52+
testing_pr: 3416
53+
testing_sha: f3bf3bc5e2773630150b9b3bac56e8b2e74335d5

0 commit comments

Comments
 (0)