-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Rule: Reply-to/Sender Mismatch with suspicious TLD by @morriscode #782 Source SHA 6cb6d80 Triggered by @morriscode
- Loading branch information
Sublime Rule Testing Bot
committed
Sep 8, 2023
1 parent
04d5296
commit a05b81a
Showing
1 changed file
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: "Reply-to/Sender Mismatch with suspicious TLD" | ||
description: | | ||
This rule detects a mismatch between the reply-to and the sender email addresses, and one or both of them are from suspicious TLDs | ||
type: "rule" | ||
severity: "medium" | ||
source: | | ||
type.inbound | ||
and ( | ||
any(headers.reply_to, | ||
.email.email != sender.email.email | ||
and any([.email.domain.tld, sender.email.domain.tld], | ||
// https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/spam-tlds-ublock.txt | ||
. in ( | ||
"ae", | ||
"agency", | ||
"asia", | ||
"autos", | ||
"bar", | ||
"beauty", | ||
"bid", | ||
"bio", | ||
"biz", | ||
"boats", | ||
"boston", | ||
"boutique", | ||
"buzz", | ||
"cf", | ||
"cfd", | ||
"cn", | ||
"cyou", | ||
"dad", | ||
"dance", | ||
"degree", | ||
"discount", | ||
"esq", | ||
"fit", | ||
"foo", | ||
"fun", | ||
"fyi", | ||
"gdn", | ||
"gq", | ||
"guru", | ||
"hair", | ||
"haus", | ||
"in", | ||
"jp", | ||
"live", | ||
"loan", | ||
"loans", | ||
"makeup", | ||
"market", | ||
"ml", | ||
"mom", | ||
"monster", | ||
"mov", | ||
"name", | ||
"nexus", | ||
"okinawa", | ||
"ooo", | ||
"phd", | ||
"prof", | ||
"pw", | ||
"quest", | ||
"rest", | ||
"review", | ||
"ru", | ||
"sbs", | ||
"skin", | ||
"space", | ||
"surf", | ||
"tk", | ||
"tokyo", | ||
"top", | ||
"uno", | ||
"voto", | ||
"website", | ||
"wiki", | ||
"work", | ||
"wtf", | ||
"xyz", | ||
"zip", | ||
"zone" | ||
) | ||
) | ||
) | ||
) | ||
tactics_and_techniques: | ||
- "Evasion" | ||
detection_methods: | ||
- "Header analysis" | ||
- "Sender analysis" | ||
id: "a5f5b25a-0b7d-5ecc-8cf8-295a8433bad1" | ||
testing_pr: 782 | ||
testing_sha: 6cb6d80dadb1c649790026ac7a291629fb539604 |