Skip to content

Commit 48a12e4

Browse files
[PR sublime-security#3742] added rule: PR# 3742 - Link: Self-sent message with suspicious link containing sender identifiers
1 parent 1b017ba commit 48a12e4

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "PR# 3742 - Link: Self-sent message with suspicious link containing sender identifiers"
2+
description: "Detects messages where the sender emails themselves with a single suspicious link that contains the sender's local part or domain in the URL path and the link display text matches the subject line."
3+
type: "rule"
4+
severity: "medium"
5+
source: |
6+
type.inbound
7+
// self sender
8+
and (
9+
length(recipients.to) == 1
10+
and length(recipients.cc) == 0
11+
and length(recipients.bcc) == 0
12+
and sender.email.email == recipients.to[0].email.email
13+
)
14+
// first link is not related to the sender via sld (to account for orgs that have multiple tlds)
15+
and (
16+
body.current_thread.links[0].href_url.domain.sld != sender.email.domain.sld
17+
and body.current_thread.links[0].href_url.domain.domain != 'aka.ms'
18+
)
19+
// display text is contained in the subject
20+
and strings.icontains(body.current_thread.links[0].display_text, subject.base)
21+
// path has sender elements in it
22+
and (
23+
strings.icontains(body.current_thread.links[0].href_url.path,
24+
sender.email.local_part
25+
)
26+
or (
27+
strings.icontains(body.current_thread.links[0].href_url.path,
28+
sender.email.domain.sld
29+
)
30+
and not strings.icontains(body.current_thread.links[0].href_url.path,
31+
'registration'
32+
)
33+
)
34+
)
35+
attack_types:
36+
- "Credential Phishing"
37+
- "BEC/Fraud"
38+
tactics_and_techniques:
39+
- "Social engineering"
40+
- "Evasion"
41+
detection_methods:
42+
- "URL analysis"
43+
- "Sender analysis"
44+
id: "6025ccef-f6ca-534d-b637-0a989ec50fea"
45+
tags:
46+
- created_from_open_prs
47+
- rule_status_added
48+
- pr_author_D-Bolton
49+
references:
50+
- https://github.com/sublime-security/sublime-rules/pull/3742

0 commit comments

Comments
 (0)