Detection rules › Sublime MQL

Open redirect: Google Ad Services

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

Message contains use of the Google Ad Services open redirect, but the sender is not Google. 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 any(body.links,
        .href_url.domain.root_domain == 'googleadservices.com'
        and .href_url.path =~ '/pagead/aclk'
        and strings.icontains(.href_url.query_params, "adurl=")
)
and sender.email.domain.root_domain != 'google.com'

Detection logic

Scope: inbound message.

Message contains use of the Google Ad Services open redirect, but the sender is not Google. This has been exploited in the wild.

  1. inbound message
  2. any of body.links where all hold:
    • .href_url.domain.root_domain is 'googleadservices.com'
    • .href_url.path is '/pagead/aclk'
    • .href_url.query_params contains 'adurl='
  3. sender.email.domain.root_domain is not 'google.com'

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

Indicators matched (3)

FieldMatchValue
body.links[].href_url.domain.root_domainequalsgoogleadservices.com
body.links[].href_url.pathequals/pagead/aclk
strings.icontainssubstringadurl=