Detection rules › Sublime MQL

Link to a domain with punycode characters

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

The body contains a link to a domain with Punycode characters to hide the true URL destination, or contains non-printable ASCII content.

Threat classification

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

CategoryValues
Attack typesCredential Phishing
Tactics and techniquesEvasion, Lookalike domain, Punycode

Event coverage

Rule body MQL

type.inbound
and (
  any(body.links,
      .href_url.domain.punycode is not null and .href_url.domain.valid == true
  )
  or any(body.links, strings.starts_with(.href_url.domain.domain, "xn--"))
)

Detection logic

Scope: inbound message.

The body contains a link to a domain with Punycode characters to hide the true URL destination, or contains non-printable ASCII content.

  1. inbound message
  2. any of:
    • any of body.links where all hold:
      • .href_url.domain.punycode is set
      • .href_url.domain.valid is True
    • any of body.links where:
      • .href_url.domain.domain starts with 'xn--'

Inspects: body.links, body.links[].href_url.domain.domain, body.links[].href_url.domain.punycode, body.links[].href_url.domain.valid, type.inbound. Sensors: strings.starts_with.

Indicators matched (1)

FieldMatchValue
strings.starts_withprefixxn--