EXPLORE
← Back to Explore
sublimehighRule

Attachment: HTML file with excessive padding and suspicious patterns

Attached HTML file contains excessive line breaks and suspicious Javascript patterns.

Detection Query

type.inbound
and any(attachments,
        (
          .content_type == "text/html"
          or .file_extension in~ ("html", "htm", "shtml", "dhtml")
          or .file_type == "html"
        )
        and any(file.explode(.),
                any(.scan.yara.matches, .name == "HTML_EXCESSIVE_PADDING")
        )
)

Data Sources

Email MessagesEmail HeadersEmail Attachments

Platforms

email
Raw Content
name: "Attachment: HTML file with excessive padding and suspicious patterns"
description: |
  Attached HTML file contains excessive line breaks and suspicious Javascript patterns.
type: "rule"
severity: "high"
source: |
  type.inbound
  and any(attachments,
          (
            .content_type == "text/html"
            or .file_extension in~ ("html", "htm", "shtml", "dhtml")
            or .file_type == "html"
          )
          and any(file.explode(.),
                  any(.scan.yara.matches, .name == "HTML_EXCESSIVE_PADDING")
          )
  )
attack_types:
  - "Credential Phishing"
  - "Malware/Ransomware"
tactics_and_techniques:
  - "Evasion"
  - "HTML smuggling"
detection_methods:
  - "File analysis"
  - "HTML analysis"
  - "YARA"
id: "0a6aee1e-df58-5f1e-8f49-477ed61babe5"