Skip to content

Commit 9254729

Browse files
[PR #3742] added rule: Link: Self-sent message with suspicious link containing sender identifiers
1 parent 5e1afd0 commit 9254729

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: "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+
and
20+
// display text is contained in the subject
21+
strings.icontains(body.current_thread.links[0].display_text, subject.base)
22+
// path has sender elements in it
23+
and (
24+
strings.icontains(body.current_thread.links[0].href_url.path,
25+
sender.email.local_part
26+
)
27+
or (
28+
strings.icontains(body.current_thread.links[0].href_url.path,
29+
sender.email.domain.sld
30+
)
31+
and not strings.icontains(body.current_thread.links[0].href_url.path,
32+
'registration'
33+
)
34+
)
35+
)
36+
attack_types:
37+
- "Credential Phishing"
38+
- "BEC/Fraud"
39+
tactics_and_techniques:
40+
- "Social engineering"
41+
- "Evasion"
42+
detection_methods:
43+
- "URL analysis"
44+
- "Sender analysis"
45+
id: "6025ccef-f6ca-534d-b637-0a989ec50fea"
46+
og_id: "4f1b23f7-65e9-580c-bde4-b7f2b780af01"
47+
testing_pr: 3742
48+
testing_sha: a00dfda22a7f76b351d103c167bdd0eec656f31e

0 commit comments

Comments
 (0)