Skip to content

Commit e0eb741

Browse files
Create attachment_pdf_object_hash_partial_match.yml
1 parent 2044a59 commit e0eb741

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Attachment: PDF with specific object hash pattern"
2+
description: "Detects PDF attachments containing a specific object hash string pattern. This may indicate similar build characteristics or templated features."
3+
type: "rule"
4+
severity: "medium"
5+
source: |
6+
type.inbound
7+
and any(filter(attachments, .file_type == "pdf"),
8+
any(file.explode(.),
9+
strings.contains(.scan.pdf_obj_hash.hash_string, "Catalog|Pages|Page|Filter|Font/TrueType|FontDescriptor|ExtGState|ExtGState|Font/Type0|None|Font/CIDFontType2|Ordering|FontDescriptor|Font/TrueType|FontDescriptor|Subtype|Subtype|Font/Type0|None|Font/CIDFontType2|Ordering|FontDescriptor|")
10+
)
11+
)
12+
13+
attack_types:
14+
- "Malware/Ransomware"
15+
tactics_and_techniques:
16+
- "Evasion"
17+
- "PDF"
18+
detection_methods:
19+
- "File analysis"

0 commit comments

Comments
 (0)