Skip to content

Commit 1c37aed

Browse files
[Test Rules] [PR sublime-security#4285] added rule: Self-sender with email and display name in subject
1 parent ce9ccae commit 1c37aed

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Self-sender with email and display name in subject"
2+
description: "Detects messages where the sender emails themselves with both their email address and display name present in the subject line, while the email address differs from the display name. This pattern is commonly used in social engineering attacks to create false legitimacy or test delivery mechanisms."
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 sender.email.email == recipients.to[0].email.email
12+
)
13+
and strings.contains(subject.subject, sender.email.email)
14+
and strings.contains(subject.subject, sender.display_name)
15+
and sender.email.email != sender.display_name
16+
// negating listservs
17+
and not (
18+
any(headers.hops, any(.fields, .name == "List-Unsubscribe"))
19+
and (
20+
strings.contains(sender.display_name, "via")
21+
or strings.icontains(subject.subject, "monitor")
22+
)
23+
)
24+
attack_types:
25+
- "BEC/Fraud"
26+
- "Spam"
27+
tactics_and_techniques:
28+
- "Social engineering"
29+
- "Spoofing"
30+
detection_methods:
31+
- "Header analysis"
32+
- "Sender analysis"
33+
- "Content analysis"
34+
id: "5b485f71-0d35-5d31-9193-dc4e85ff557f"
35+
og_id: "f51a5025-71f6-5626-a292-3e75dda0a1e7"
36+
testing_pr: 4285
37+
testing_sha: 504f9e99003634db003cd9526e2e9cd49381e024

0 commit comments

Comments
 (0)