-
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.
Create spam_sus_pdf_name.yml by @aidenmitchell #965 Source SHA 5c598ba Triggered by @morriscode
- Loading branch information
Sublime Rule Testing Bot
committed
Mar 7, 2024
1 parent
a34299c
commit 81eb0b6
Showing
1 changed file
with
44 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,44 @@ | ||
name: "Spam: Multiple recipients, PDF attachment, and suspicious file name" | ||
description: "Message is addressed to many recipients and has a PDF attachment with a suspicious file name. The file name patterns listed here are consistant with mass spam, usually containing sexual imagery." | ||
type: "rule" | ||
severity: "low" | ||
source: | | ||
type.inbound | ||
and length(recipients.to) > 3 | ||
and all(attachments, .file_extension == "pdf") | ||
and ( | ||
(length(headers.references) == 0 and headers.in_reply_to is null) | ||
or ( | ||
not any(headers.hops, any(.fields, strings.ilike(.name, "In-Reply-To"))) | ||
and not any(headers.hops, strings.ilike(.signature.headers, "*:reply-to")) | ||
) | ||
) | ||
and ( | ||
any(attachments, | ||
strings.ilike(.file_name, | ||
"*#*", | ||
"*home*", | ||
"*portrait*", | ||
"*private*", | ||
"*view*", | ||
"*photo*", | ||
"*vid*", | ||
"*image*", | ||
"*pics*", | ||
"*movie*" | ||
) | ||
) | ||
or any(attachments, strings.ilevenshtein(.file_name, subject.subject) < 5) | ||
) | ||
attack_types: | ||
- "Spam" | ||
tactics_and_techniques: | ||
- "Evasion" | ||
- "PDF" | ||
- "Social engineering" | ||
detection_methods: | ||
- "File analysis" | ||
- "Header analysis" | ||
id: "ec470180-dbc7-574d-8a07-50ec54f6ce89" | ||
testing_pr: 965 | ||
testing_sha: 5c598ba31f2d76d3f4a2f7214c9213a9b2783b2a |