Skip to content
Open
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
28 changes: 28 additions & 0 deletions detection-rules/headers_mailer_contains_hidden_content.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Headers: Microsoft CDO or PHPMailer with hidden HTML content"
description: "Detects messages sent via Microsoft CDO for Windows 2000 or PHPMailer that contain HTML paragraph elements with transparent text or hidden content styling, commonly used to evade content analysis."
type: "rule"
severity: "low"
source: |
type.inbound
and (
headers.mailer == 'Microsoft CDO for Windows 2000'
or strings.ilike(headers.mailer, "PHPMailer*")
)
and any(html.xpath(body.html, '//p').nodes,
.display_text == ''
and .inner_text == ''
and regex.icontains(.raw,
'[^-]color\s*:\s*transparent|mso-hide\s*:\s*all'
)
)

attack_types:
- "Credential Phishing"
- "Spam"
tactics_and_techniques:
- "Evasion"
detection_methods:
- "Content analysis"
- "Header analysis"
- "HTML analysis"
id: "550f1cff-6203-543a-9aa4-54717148bca9"
Loading