Detection rules › Sublime MQL

Open Redirect: asemailmgmteu.com

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

Message contains use of the asemailmgmteu.com open redirect. This has been exploited in the wild.

Threat classification

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

CategoryValues
Attack typesCredential Phishing, Malware/Ransomware
Tactics and techniquesOpen redirect

Event coverage

Rule body MQL

type.inbound
and 0 < length(body.links) < 10
and any(body.links,
        .href_url.domain.root_domain == "asemailmgmteu.com"
        and strings.icontains(.href_url.query_params, 'redirect=')
        and .display_text != "unsubscribe"
        // negate use of the redirect by asemailmgmteu.com
        and not any(.href_url.query_params_decoded["redirect"],
                    strings.parse_url(.).domain.root_domain == sender.email.domain.root_domain
                    or strings.parse_url(.).domain.root_domain == "asemailmgmteu.com"
        )
)
// negate highly trusted sender domains unless they fail DMARC authentication
and (
  (
    sender.email.domain.root_domain in $high_trust_sender_root_domains
    and not headers.auth_summary.dmarc.pass
  )
  or sender.email.domain.root_domain not in $high_trust_sender_root_domains
)

Detection logic

Scope: inbound message.

Message contains use of the asemailmgmteu.com open redirect. This has been exploited in the wild.

  1. inbound message
  2. all of:
    • length(body.links) > 0
    • length(body.links) < 10
  3. any of body.links where all hold:
    • .href_url.domain.root_domain is 'asemailmgmteu.com'
    • .href_url.query_params contains 'redirect='
    • .display_text is not 'unsubscribe'
    • not:
      • any of .href_url.query_params_decoded['redirect'] where any holds:
        • strings.parse_url(.).domain.root_domain is sender.email.domain.root_domain
        • strings.parse_url(.).domain.root_domain is 'asemailmgmteu.com'
  4. any of:
    • all of:
      • sender.email.domain.root_domain in $high_trust_sender_root_domains
      • not:
        • headers.auth_summary.dmarc.pass
    • sender.email.domain.root_domain not in $high_trust_sender_root_domains

Inspects: body.links, body.links[].display_text, body.links[].href_url.domain.root_domain, body.links[].href_url.query_params, body.links[].href_url.query_params_decoded['redirect'], headers.auth_summary.dmarc.pass, sender.email.domain.root_domain, type.inbound. Sensors: strings.icontains, strings.parse_url. Reference lists: $high_trust_sender_root_domains.

Indicators matched (2)

FieldMatchValue
body.links[].href_url.domain.root_domainequalsasemailmgmteu.com
strings.icontainssubstringredirect=