Detection rules › Sublime MQL
Open redirect: YouTube --> Google Redirection Chain
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).
| Category | Values |
|---|---|
| Attack types | Credential Phishing |
| Tactics and techniques | Open redirect |
Event coverage
| Message attribute |
|---|
| body |
| body.links (collection) |
| type |
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.
- inbound message
any of
body.linkswhere 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)
| Field | Match | Value |
|---|---|---|
body.links[].href_url.domain.root_domain | equals | youtube.com |
strings.icontains | substring | logout |
strings.icontains | substring | continue= |
regex.icontains | regex | &continue=(?:https?)?(?:(?:%3a|\:)?(?:\/|%2f){2})?google\.com[^\&]*\/+amp\/+s\/+ |