Skip to content

Commit e59d4ac

Browse files
author
Sublime Rule Testing Bot
committed
Sync from PR#2916
Create spam_financial_preapproval_link.yml by @aidenmitchell #2916 Source SHA 4f7338c Triggered by @aidenmitchell
1 parent 513db88 commit e59d4ac

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: "Spam: Financial Pre-Approval Language With Link"
2+
description: "Detects suspicious financial communications containing pre-approval language and links with capitalized display text from untrusted or DMARC-failing senders who have no prior benign message history."
3+
type: "rule"
4+
severity: "medium"
5+
source: |
6+
type.inbound
7+
and (
8+
(
9+
any(beta.ml_topic(body.current_thread.text).topics,
10+
.name == "Financial Communications" and .confidence != "low"
11+
)
12+
and regex.icontains(body.current_thread.text,
13+
'\bpre-approved\b',
14+
'\blimit\b'
15+
)
16+
)
17+
or (
18+
any(beta.ml_topic(beta.ocr(beta.message_screenshot()).text).topics,
19+
.name == "Financial Communications" and .confidence != "low"
20+
)
21+
and regex.icontains(beta.ocr(beta.message_screenshot()).text,
22+
'\bpre-approved\b',
23+
'\blimit\b'
24+
)
25+
)
26+
)
27+
and any(body.links, regex.match(.display_text, '[A-Z ]+'))
28+
// negate highly trusted sender domains unless they fail DMARC authentication
29+
and (
30+
(
31+
sender.email.domain.root_domain in $high_trust_sender_root_domains
32+
and not headers.auth_summary.dmarc.pass
33+
)
34+
or sender.email.domain.root_domain not in $high_trust_sender_root_domains
35+
)
36+
and not profile.by_sender().any_messages_benign
37+
tags:
38+
- "Attack surface reduction"
39+
attack_types:
40+
- "BEC/Fraud"
41+
- "Spam"
42+
tactics_and_techniques:
43+
- "Social engineering"
44+
- "Impersonation: Brand"
45+
detection_methods:
46+
- "Computer Vision"
47+
- "Content analysis"
48+
- "Header analysis"
49+
- "Natural Language Understanding"
50+
- "Optical Character Recognition"
51+
- "Sender analysis"
52+
id: "bd235d3b-f2c1-52f7-21ae-ed11d7ad9feb"
53+
og_id: "f6fefa07-1eb6-5573-b57e-a3333a480ac6"
54+
testing_pr: 2916
55+
testing_sha: 4f7338c6d7c5d2585fd83301895b88c7560e1e39

0 commit comments

Comments
 (0)