Skip to content

Commit 719f5a8

Browse files
[Shared Samples] [PR #4308] added rule: PR# 4308 - Body HTML: Hidden conversation thread indicators in HTML
1 parent 583030c commit 719f5a8

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "PR# 4308 - Body HTML: Hidden conversation thread indicators in HTML"
2+
description: "Detects messages instances of email header fields (From, To, Date) and recipient email addresses hidden within the HTML source code that are not visible in the displayed text, potentially indicating thread hijacking or conversation spoofing."
3+
type: "rule"
4+
severity: "medium"
5+
source: |
6+
type.inbound
7+
and strings.icontains(body.html.inner_text, 'from:')
8+
and strings.icontains(body.html.inner_text, 'to:')
9+
and strings.icontains(body.html.inner_text, 'date:')
10+
and strings.icount(body.html.inner_text,
11+
strings.concat('<', recipients.to[0].email.email, '>')
12+
) >= 2
13+
and not (
14+
strings.icontains(body.html.display_text, 'from:')
15+
and strings.icontains(body.html.display_text, 'to:')
16+
and strings.icontains(body.html.display_text, 'date:')
17+
)
18+
and strings.icount(body.html.display_text,
19+
strings.concat('<', recipients.to[0].email.email, '>')
20+
) == 0
21+
and not coalesce(headers.return_path.domain.subdomain == 'gerritcodereview.bounces',
22+
false
23+
)
24+
attack_types:
25+
- "BEC/Fraud"
26+
- "Credential Phishing"
27+
tactics_and_techniques:
28+
- "Evasion"
29+
- "HTML smuggling"
30+
- "Social engineering"
31+
detection_methods:
32+
- "Content analysis"
33+
- "HTML analysis"
34+
id: "de0cf949-e38e-5a1a-b927-96cd1e6b4531"
35+
tags:
36+
- created_from_open_prs
37+
- rule_status_added
38+
- pr_author_D-Bolton
39+
references:
40+
- https://github.com/sublime-security/sublime-rules/pull/4308

0 commit comments

Comments
 (0)