Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions detection-rules/attachment_embedded_pdf_icon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Attachment: Embedded PDF icon with inline image reference"
description: "Detects messages containing HTML with PDF icons that reference inline images using Content-ID (CID) patterns, commonly used to create misleading PDF attachment appearances without actual PDF files."
type: "rule"
severity: "medium"
source: |
type.inbound
and length(html.xpath(body.html, '//img').nodes) == 1
and any(html.xpath(body.html, '//img[@alt="PDF"]').nodes,
regex.contains(.raw, 'src="cid:image[0-9]{3}\.png@')
)
attack_types:
- "Credential Phishing"
- "BEC/Fraud"
tactics_and_techniques:
- "Evasion"
- "Image as content"
detection_methods:
- "HTML analysis"
- "Content analysis"
id: "118751f2-9ce2-5a04-9c7d-d42c32d504fb"