Detection rules › Sublime MQL

URI protocol handler: search-ms

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

Detects HTML attachments using the search-ms URI protocol handler, a technique observed ITW to deliver malicious payloads. This rule can be updated to analyze links in PDF attachments and message bodies

Threat classification

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

CategoryValues
Attack typesMalware/Ransomware
Tactics and techniquesEvasion

Event coverage

Rule body MQL

type.inbound
and any(attachments,
        .file_type == "html"
        and any(file.explode(.),
                any(.scan.strings.strings,
                    regex.contains(., 'search-ms:query.*location:\\\\')
                )
        )
)

Detection logic

Scope: inbound message.

Detects HTML attachments using the search-ms URI protocol handler, a technique observed ITW to deliver malicious payloads. This rule can be updated to analyze links in PDF attachments and message bodies

  1. inbound message
  2. any of attachments where all hold:
    • .file_type is 'html'
    • any of file.explode(.) where:
      • any of .scan.strings.strings where:
        • . matches 'search-ms:query.*location:\\\\\\\\'

Inspects: attachments[].file_type, type.inbound. Sensors: file.explode, regex.contains.

Indicators matched (2)

FieldMatchValue
attachments[].file_typeequalshtml
regex.containsregexsearch-ms:query.*location:\\\\