Detection rules › Sublime MQL

Open redirect: YouTube --> Google Redirection Chain

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

Message contains use of a redirect chain which involves YouTube and Google amp. This has been exploited in the wild.

Threat classification

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

CategoryValues
Attack typesCredential Phishing
Tactics and techniquesOpen redirect

Event coverage

Rule body MQL

type.inbound
and any(body.links,
        (
          .href_url.domain.root_domain == "youtube.com"
          and strings.icontains(.href_url.path, 'logout')
          // the redirect field
          and strings.icontains(.href_url.query_params, "continue=")
          and regex.icontains(.href_url.query_params,
                              '&continue=(?:https?)?(?:(?:%3a|\:)?(?:\/|%2f){2})?google\.com[^\&]*\/+amp\/+s\/+'
          )
        )
)

Detection logic

Scope: inbound message.

Message contains use of a redirect chain which involves YouTube and Google amp. This has been exploited in the wild.

  1. inbound message
  2. any of body.links where all hold:
    • .href_url.domain.root_domain is 'youtube.com'
    • .href_url.path contains 'logout'
    • .href_url.query_params contains 'continue='
    • .href_url.query_params matches '&continue=(?:https?)?(?:(?:%3a|\\:)?(?:\\/|%2f){2})?google\\.com[^\\&]*\\/+amp\\/+s\\/+'

Inspects: body.links, body.links[].href_url.domain.root_domain, body.links[].href_url.path, body.links[].href_url.query_params, type.inbound. Sensors: regex.icontains, strings.icontains.

Indicators matched (4)

FieldMatchValue
body.links[].href_url.domain.root_domainequalsyoutube.com
strings.icontainssubstringlogout
strings.icontainssubstringcontinue=
regex.icontainsregex&continue=(?:https?)?(?:(?:%3a|\:)?(?:\/|%2f){2})?google\.com[^\&]*\/+amp\/+s\/+