Detection rules › Sublime MQL

Link: Base64 encoded recipient address in URL fragment with subject hash

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

Detects messages containing an alphanumeric string that is between 32 and 64 characters in the subject line that corresponds to a URL fragment containing the recipient's email address encoded in base64. This technique is commonly used to personalize malicious links and evade detection by embedding the target's email address within the URL structure.

Threat classification

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

CategoryValues
Attack typesCredential Phishing
Tactics and techniquesEncryption, Evasion, Social engineering

Event coverage

Rule body MQL

type.inbound
and any(regex.iextract(subject.subject,
                       '[^a-z0-9](?P<string>[a-z0-9]{32,64})(?:$|[^a-z0-9])'
        ),
        any(body.links,
            strings.contains(.href_url.fragment, ..named_groups["string"])
            and any(strings.scan_base64(.href_url.fragment),
                    strings.contains(., recipients.to[0].email.email)
            )
        )
)

Detection logic

Scope: inbound message.

Detects messages containing an alphanumeric string that is between 32 and 64 characters in the subject line that corresponds to a URL fragment containing the recipient's email address encoded in base64. This technique is commonly used to personalize malicious links and evade detection by embedding the target's email address within the URL structure.

  1. inbound message
  2. any of regex.iextract(subject.subject) where:
    • any of body.links where all hold:
      • strings.contains(.href_url.fragment)
      • any of strings.scan_base64(.href_url.fragment) where:
        • strings.contains(.)

Inspects: body.links, body.links[].href_url.fragment, recipients.to[0].email.email, subject.subject, type.inbound. Sensors: regex.iextract, strings.contains, strings.scan_base64.

Indicators matched (1)

FieldMatchValue
regex.iextractregex[^a-z0-9](?P<string>[a-z0-9]{32,64})(?:$|[^a-z0-9])