Skip to content

Commit

Permalink
Sync from PR#965
Browse files Browse the repository at this point in the history
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.
44 changes: 44 additions & 0 deletions detection-rules/spam_sus_pdf_name.yml
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

0 comments on commit 81eb0b6

Please sign in to comment.