Detection rules › Sublime MQL

Attachment: HTML smuggling with embedded base64-encoded ISO

Severity
high
Type
rule
Source
github.com/sublime-security/sublime-rules

HTML attachment contains a base-64 encoded ISO. This is a known TTP for multiple threat actors.

Threat classification

Sublime's own taxonomy (not MITRE ATT&CK).

CategoryValues
Attack typesCredential Phishing, Malware/Ransomware
Tactics and techniquesEvasion, HTML smuggling, ISO

Event coverage

Rule body MQL

type.inbound
and any(attachments,
        (
          .file_extension in~ ("html", "htm")
          or .file_extension in~ $file_extensions_common_archives
          or .file_type == "html"
        )
        and any(file.explode(.),
                any(.scan.strings.strings,
                    strings.ilike(.,
                                  // Base64 encoded ISOs
                                  "*SVNPIDk2NjAvSEZT*",
                                  "*MTk5MyBFLllPVU5HREFMRQ*",
                                  // Reversed base64 encoded ISOs
                                  "*TZESvAjN2kDIPNVS*",
                                  "*QRMFERH5UVPllLFByM5kTM*"
                    )
                )
        )
)

Detection logic

Scope: inbound message.

HTML attachment contains a base-64 encoded ISO. This is a known TTP for multiple threat actors.

  1. inbound message
  2. any of attachments where all hold:
    • any of:
      • .file_extension in ('html', 'htm')
      • .file_extension in $file_extensions_common_archives
      • .file_type is 'html'
    • any of file.explode(.) where:
      • any of .scan.strings.strings where:
        • . matches any of 4 patterns
          • *SVNPIDk2NjAvSEZT*
          • *MTk5MyBFLllPVU5HREFMRQ*
          • *TZESvAjN2kDIPNVS*
          • *QRMFERH5UVPllLFByM5kTM*

Inspects: attachments[].file_extension, attachments[].file_type, type.inbound. Sensors: file.explode, strings.ilike. Reference lists: $file_extensions_common_archives.

Indicators matched (7)

FieldMatchValue
attachments[].file_extensionmemberhtml
attachments[].file_extensionmemberhtm
attachments[].file_typeequalshtml
strings.ilikesubstring*SVNPIDk2NjAvSEZT*
strings.ilikesubstring*MTk5MyBFLllPVU5HREFMRQ*
strings.ilikesubstring*TZESvAjN2kDIPNVS*
strings.ilikesubstring*QRMFERH5UVPllLFByM5kTM*